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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PostNuke Input Validation Flaw in 'NS-Your_Account' Module Lets Remote Users Inject SQL Commands
|
|
SecurityTracker Alert ID: 1009801
|
|
SecurityTracker URL: http://securitytracker.com/id?1009801
|
|
CVE Reference: GENERIC-MAP-NOMATCH
(Links to External Site)
|
|
OSVDB Reference: 5368
, 5369
(Links to External Site)
|
Updated: Sep 3 2004
|
Original Entry Date: Apr 15 2004
|
Impact: Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information, User access via network
|
Fix Available: Yes
Exploit Included: Yes
Vendor Confirmed: Yes
|
Advisory: SCAN Associates
|
Version(s): 0.726 and prior versions
|
Description: An input validation vulnerability was reported in PostNuke. A remote authenticated user can inject SQL commands on the target system.
pokleyzz of SCAN Associates reported that several modules do not properly validate user-supplied input.
It is reported that the
'sid' variable in the NS-Comments module is not properly filtered. A remote user can reportedly inject SQL commands. A remote
user can also create insert specially crafted text into a comment so that that when the comment is viewed by a target user, arbitrary
scripting code will be executed by the target user's browser. The code will originate from the site running the PostNuke software
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.
It is also reported that the 'timezoneoffset' variable in the NS-Your_Account
module permits a remote authenticated user to supply a specially crafted value to inject SQL commands to be executed by the underlying
SQL database. A remote authenticated user can change account information for a target user (e.g., change the administrator's password).
A
demonstration exploit is available at:
http://www.scan-associates.net/papers/post_nuker.php.txt
The vendor was reportedly
notified on February 5, 2004 without response.
|
Impact: A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the
PostNuke software, 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 remote user can inject SQL commands. This can be exploited, for example, to change the password of a target
user.
|
Solution: The vendor has issued a fix (as of .726-2), available at:
http://downloads.postnuke.com/
|
Vendor URL: www.postnuke.com/ (Links to External Site)
|
Cause: Input validation error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
Reported By: pokley <pokleyzz@scan-associates.net>
|
Message History:
None.
|
Source Message Contents
|
Date: Thu, 15 Apr 2004 02:18:31 +0800
From: pokley <pokleyzz@scan-associates.net>
Subject: [Full-Disclosure] [SCAN Associates Sdn Bhd Security Advisory] Postnuke v 0.726 and below SQL injection
|
Products: Postnuke v 0.726 (http://www.postnuke.com)
Date: 15 April 2004
Author: pokleyzz <pokleyzz_at_scan-associates.net>
Contributors:sk_at_scan-associates.net
shaharil_at_scan-associates.net
munir_at_scan-associates.net
URL: http://www.scan-associates.net
Summary: Postnuke v 0.726 and below SQL injection
Description
===========
Postnuke is Web Content Management System written in PHP and using mysql
as database backend.
Details
=======
We have found multiple vulnerabilities in Postnuke v 0.726 as described
below.
SQL Injection in NS-Comments module
-----------------------------------
There is SQL injection in INSERT statement for variable "sid" in file
modules/NS-Comments/index.php line 1142:
VALUES ($nextid, ".pnVarPrepForStore($pid).",
".pnVarPrepForStore($sid).", now(), '".pnVarPrepForStore($uname)."',
'".pnVarPrepForStore($email)."',
'".pnVarPrepForStore($url)."',
'".pnVarPrepForStore($ip)."', '".pnVarPrepForStore($subject)."',
'".pnVarPrepForStore($comment)."', '".pnVarPrepForStore($score)."', 0)");
This will allow Postnuke user with permission to post comment include any
character in their comment and perform XSS attack to steal other user
cookies.
SQL Injection in NS-Your_Account module
----------------------------------------
There is SQL injection in UPDATE statement for variable "timezoneoffset"
in file modules/NS-Your_Account/user/modules/changeinfo.php php line 334
and 354:
$column[timezone_offset]=" . pnVarPrepForStore($timezoneoffset) . "
This will allow Postnuke user to change information for other user account
including Administrator password.
Workaround
==========
1) modules/NS-Comments/index.php
VALUES ($nextid, '".pnVarPrepForStore($pid)."',
'".pnVarPrepForStore($sid)."', now(), '".pnVarPrepForStore($uname)."',
'".pnVarPrepForStore($email)."',
'".pnVarPrepForStore($url)."',
'".pnVarPrepForStore($ip)."', '".pnVarPrepForStore($subject)."',
'".pnVarPrepForStore($comment)."', '".pnVarPrepForStore($score)."', 0)");
2)modules/NS-Your_Account/user/modules/changeinfo.php
$column[timezone_offset]='" . pnVarPrepForStore($timezoneoffset) . "'
Proof of concept
================
[http://www.scan-associates.net/papers/post_nuker.php.txt]
Vendor Response
===============
05 February 2004 - security@postnuke.com contacted through email. no
response.
07 April 2004 - security@postnuke.com contacted through email. no
response.
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html
|
|
Go to the Top of This SecurityTracker Archive Page
|