SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com






Category:   Application (Forum/Board/Portal)  >   PostNuke Vendors:   postnuke.com
PostNuke Input Validation Holes in News Module Permits SQL Injection and in 'admin.php' and 'user.php' Permit Cross-Site Scripting Attacks
SecurityTracker Alert ID:  1013670
SecurityTracker URL:  http://securitytracker.com/id/1013670
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Apr 9 2005
Impact:   Disclosure of authentication information, Disclosure of system information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
Exploit Included:  Yes  
Version(s): 0.760-RC3
Description:   Diabolic Crab reported vulnerabilities in PostNuke. A remote user can inject SQL commands, conduct cross-site scripting attacks, and determine the installation path.

The 'admin.php' script does not properly validate user-supplied input in the 'module' parameter. The 'user.php' script does not properly validate the 'op' parameter. 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 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.

Some demonstration exploit URLs are provided:

http://[target]/admin.php?module="><script>alert(document.cookie)</script>&op=main&POSTNUKESID=355776cfb62&

http://[target]/user.php?op="><script>alert(document.cookie)</script>&module=NS-NewUser&POSTNUKESID=355776cfb62

The News module does not properly validate user-supplied input in the 'sid' parameter. A remote user can supply a specially crafted parameter value to execute SQL commands on the underlying database. A demonstration exploit URL is provided:

http://[target]/modules.php?op=modload&name=News&file=article&sid='SQL_INJECTION&POSTNUKESID=355776cfb622466924a7096d4471a480

A remote user can supply a specially crafted 'id' parameter value to the Reviews module to cause the system to display the installation path. A demonstration exploit URL is provided:

http://[target]/modules.php?op=modload&name=Reviews&file=index&req=showcontent&id='&POSTNUKESID=355776cfb622466924a7096d4471a480

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 execute SQL commands on the underlying database.

A remote user can determine the installation path.

Solution:   No solution was available at the time of this entry.
Vendor URL:  www.postnuke.com/ (Links to External Site)
Cause:   Access control error, Input validation error
Underlying OS:   Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Date:  8 Apr 2005 02:36:02 -0000
Subject:  Sql injection, xss and path disclosure vulnerabilities in




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dcrab 's Security Advisory
[Hsc Security Group] http://www.hackerscenter.com/
[dP Security] http://digitalparadox.org/

Get Dcrab's Services to audit your Web servers, scripts, networks, etc. Learn more at http://www.digitalparadox.org/services.ah

GET INFORMED FIRST ABOUT MY ADVISORIES http://www.digitalparadox.org

Severity: Medium
Title: Sql injection, xss and path disclosure vulnerabilities in PostNuke 0.760-RC3
Date: 08/04/2005

Vendor: PostNuke
Vendor Website: http://www.postnuke.com
Summary: There are, sql injection, xss and path disclosure vulnerabilities in postnuke 0.760-rc3.


Proof of Concept Exploits: 

http://localhost/admin.php?module="><script>alert(document.cookie)</script>&op=main&POSTNUKESID=355776cfb622466924a7096d4471a480
Pops cookie


http://localhost/modules.php?op=modload&name=News&file=article&sid='SQL_INJECTION&POSTNUKESID=355776cfb622466924a7096d4471a480
SQL INJECTION (look wayyy on the bottom of the page)

DB Error: getArticles: 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version
 for 
the right syntax to use near '\'SQL_INJECTION' at line 23


http://localhost/modules.php?op=modload&name=Reviews&file=index&req=showcontent&id='&POSTNUKESID=355776cfb622466924a7096d4471a480
Server Path disclosure

Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/localhost/httpdocs/modules/Reviews/index.php on line
 976


http://localhost/user.php?op="><script>alert(document.cookie)</script>&module=NS-NewUser&POSTNUKESID=355776cfb622466924a7096d4471a480
Pops cookie


Possible Fixes: The usage of htmlspeacialchars(), mysql_escape_string(), mysql_real_escape_string() and other functions for input
 
validation before passing user input to the mysql database, or before echoing data on the screen, would solve these problems.

Keep your self updated, Rss feed at: http://digitalparadox.org/rss.ah

Author: 
These vulnerabilties have been found and released by Diabolic Crab, Email: dcrab[AT|NOSPAM]hackerscenter[DOT|NOSPAM]com, please feel
 
free to contact me regarding these vulnerabilities. You can find me at, http://www.hackerscenter.com or http://digitalparadox.org/.
 
Lookout or my soon to come out book on Secure coding with php.

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1 - not licensed for commercial use: www.pgp.com

iQA/AwUBQlXvwyZV5e8av/DUEQKa2QCgiDjVDkjyVdrXhbww/3zI8ksr8/EAnikN
BDxd/CIvzHYmLQAyb5suDR8K
=7MBl
-----END PGP SIGNATURE-----

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

Copyright 2012, SecurityGlobal.net LLC