Document Title: =============== Zenario v7.6 - Persistent Cross Site Scripting Vulnerability References (Source): ==================== Release Date: ============= 2017-03-16 Vulnerability Laboratory ID (VL-ID): ==================================== 2044 Common Vulnerability Scoring System: ==================================== 3.4 Product & Service Introduction: =============================== Zenario is a web-based content management system for sites with one or many languages. It's designed to grow with your site, adding extranet, online database and custom functionality when you need it. Zenario 7.2 has a new feature to add CSS styles and media queries, thereby allowing you to make mobile-friendly "responsive" email newsletters. (Copy of the Homepage: ) Abstract Advisory Information: ============================== The vulnerability laboratory core research team discovered a persistent validation vulnerability in the official Zenario v7.6 CMS. Vulnerability Disclosure Timeline: ================================== 2017-03-13: Researcher Notification & Coordination (Benjamin Kunz Mejri - Evolution Security GmbH) 2017-03-14: Vendor Notification (Zenraio - Security Department) 2017-03-15: Vendor Response/Feedback (Zenraio - Security Department) 2017-03-16: Security Acknowledgements (Zenraio - Security Department) 2017-03-16: Vendor Fix/Patch (Zenraio Service Developer Team) 2017-03-16: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Zenario Product: Zenario - Content Management System (Web-Application) 7.6 Zenario Product: Zenario - Content Management System (Web-Application) 7.5 Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ A persistent cross site scripting web vulnerability has been discovered in the official Zenario v7.6 content management system. The persistent validation vulnerability allows remote attacker to inject own malicious script code via persistent attack vector. The security vulnerability is located in the `Browser title` and `Description meta tag` parameters of the `Editing metadata` module. Remote attackers with privilege web-application user accounts are able to inject own malicious script code to the application-side of the vulnerable module. The validation of the `Search engine results preview` is broken and allows to execute any injected code by the `Browser title` and `Description meta tag` input fields. First the content is client-side included via POST and after the save the content is saved permanently in the database management system. Thus allows a privileged application user account like a translator or limited admin to inject malicious script codes. The execution occurs on each preview of the malicious injected item. The security risk of the xss vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.4. Exploitation of the persistent web vulnerability requires a privileged web-application user account and only low user interaction. Successful exploitation of the xss web vulnerability results in persistent phishing attacks, session hijacking, persistent external redirect to malicious sources and persistent manipulation of affected or connected web module context. Request Method(s): [+] POST Vulnerable Modules(s): [+] Forms - Categories - Properties - Metadata & Content Vulnerable Input Field(s): [+] Browser title [+] Description meta tag Affected Modules(s): [+] Editing metadata on review [+] Search engine results preview Proof of Concept (PoC): ======================= The persistent input validation web vulnerability can be exploited by remote attackers with privileged web-application user account and low user interaction. For security demonstration or to reproduce the issue follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Download and step the newst application version 2. Setup a full admin account and a restricted admin account 3. Login with a restricted administrator account to the web-application 4. Now move to the Forms - Categories - Properties - Metadata & Content Note: Restricted admins are allowed to edit on this part of the forms module the meta data 5. Now inject to the vulnerable input fields a script code payload with for example a cross site request 6. The first execute takes place as self-xss, click the popup and move to the save button (page buttom) 7. Save the content and logout as restricted administrator 8. Login as full admin and move to the forms module 9. Open the new entry of the restricted admin to edit or preview 10. The execution takes place within the formular were the Search engine results preview is visible 11. Successful reproduce of the persistent vulnerability! PoC: Vulnerable Source (Execution Point) ---


--- PoC Session Logs Inject) --- Status: 200[OK] POST http://zenario.localhost:8080/zenario/admin/admin_boxes.ajax.php?path=zenario_content&cType=&language=&layoutId=&refinerId=3&refinerName=form_id&refiner__form_id=3&id=html_25 Mime Type[text/javascript] Request Header: Host[zenario.localhost:8080] User-Agent[Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0] Content-Type[application/x-www-form-urlencoded; charset=UTF-8] X-Requested-With[XMLHttpRequest] Referer[http://zenario.localhost:8080/zenario/admin/organizer.php] Content-Length[7364] Cookie[__cfduid=d01157c2762731ca1bfcaaa3c144bbd02; PHPSESSID=; COOKIE_LAST_ADMIN_USER=; cookies_accepted=1] Connection[keep-alive] POST-Daten: _save[true] _confirm[] _box[%7B%22key%22%3A%7B%22id%22%3A%22html_25%22%2C%22cID%22%3A25%2C%22cType%22%3A%22html%22%2C%22cVersion%22%3A7%2C%22source_cID%22%3A25%2C%22source_cVersion%22%3A7%2C%22create_from_content_panel%22%3A%22%22%2C%22create_from_toolbar%22%3A%22%22%2C%22from_cID%22%3A%22%22%2C%22from_cType%22%3A%22%22%2C%22translate%22%3A%22%22%2C%22equivId%22%3A%22%22%2C%22id_is_menu_node_id%22%3A%22%22%2C%22id_is_parent_menu_node_id%22%3A%22%22%2C%22duplicate%22%3A%22%22%2C%22duplicate_from_menu%22%3A%22%22%2C%22target_cType%22%3A%22%22%2C%22target_title%22%3A%22%22%2C%22target_alias%22%3A%22%22%2C%22target_language_id%22%3A%22%22%2C%22target_template_id%22%3A%22%22%2C%22target_menu_title%22%3A%22%22%7D%2C%22tabs%22%3A%7B%22meta_data%22%3A%7B%22edit_mode%22%3A%7B%22on%22%3A1%7D%2C%22fields%22%3A%7B%22title%22%3A%7B%22current_value%22%3A%22test1-%5C%22%3E%3C[PERSISTENT SCRIPT CODE INJECT 1!][PERSISTENT SCRIPT CODE INJECT 2!]] Response Header: Server[Apache/2.4.23 (Ubuntu)] X-Frame-Options[SAMEORIGIN] Content-Length[208] Connection[Keep-Alive] Content-Type[text/javascript; charset=UTF-8] Reference(s): http://zenario.localhost:8080/ http://zenario.localhost:8080/zenario/ http://zenario.localhost:8080/zenario/admin/ http://zenario.localhost:8080/zenario/admin/organizer.php http://zenario.localhost:8080/zenario/admin/admin_boxes.ajax.php File: zenario/modules/zenario_common_features/tuix/admin_boxes/content.yaml if (title.length>65) { title = title.substring(0,65).split(' ').slice(0, -1).join(' ') + ' ...'; } $('#google_preview_title').html(title); $('#google_preview_title').text(title); if ($('#alias').val()) { $('#google_preview_url').html(zenario.htmlspecialchars(zenarioAB.value('domain_and_subdir_container') + $('#alias').val())); $('#google_preview_url').text(zenarioAB.value('domain_and_subdir_container') + $('#alias').val()); } post_field_html: |
Solution - Fix & Patch: ======================= The vulnerability can be resolved by an escape of the content that is displayed in the search preview of the edit meta data module. Disallow the usage of special chars and restrict the input fields to prevent further attacks via search preview module. Security Risk: ============== he security risk of the persistent cross site scripting vulnerability in the web-application is estimated as medium. (CVSS 3.4) Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri ( Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability Labs or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability mainly for incidental or consequential damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data. We have no need for criminal activities or membership requests. We do not publish advisories or vulnerabilities of religious-, militant- and racist- hacker/analyst/researcher groups or individuals. We do not publish trade researcher mails, phone numbers, conversations or anything else to journalists, investigative authorities or private individuals. Domains: - - Programs: - - Feeds: - - Social: - - Any modified copy or reproduction, including partially usages, of this file, resources or information requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or edit our material contact (admin@) to get an ask permission. Copyright A(c) 2017 | Vulnerability Laboratory - [Evolution Security GmbH]aC/ -- VULNERABILITY LABORATORY - RESEARCH TEAM SERVICE: # Iranian Exploit DataBase = http://IeDb.Ir [2017-05-07]