Secunia Logo
Netsikker nu! 2008
 
PHP-Nuke SQL Injection and Cross-Site Scripting
Secunia Advisory: SA28624
Release Date: 2008-01-23
Last Update: 2008-06-25
Popularity: 5,422 views

Critical:
Moderately critical
Impact: Manipulation of data
Exposure of sensitive information
Cross Site Scripting
Where: From remote
Solution Status: Unpatched

Software:PHP-Nuke 8.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2008-0461


Description:
Some vulnerabilities have been discovered in PHP-Nuke, which can be exploited by malicious people to conduct SQL injection and cross-site scripting attacks.

1) Input passed to the "sid" parameter through modules.php to modules/Search/index.php (when "type" is set to "comments") is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation allows e.g. retrieving the administrator password hash, but requires that "magic_quotes_gpc" is disabled - not the value recommended by the installer - and having knowledge of the database table prefix.

2) Input passed to the "gfx_check" and "random_number" parameter in modules.php (when "name" is set to "Your_Account") is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

The vulnerabilities are confirmed in version 8.0. Other versions may also be affected.

Solution:
Edit the source code to ensure that input is properly sanitised.

Set "magic_quotes_gpc" in php.ini to On.

Use another product.

Provided and/or discovered by:
1) Foster & 1dt.w0lf
2) mustlive

Changelog:
2008-02-04: Added CVE reference.
2008-06-25: Added vulnerability #2.

Original Advisory:
1) http://milw0rm.com/exploits/4965
2) http://websecurity.com.ua/2119/


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

7th Oct, 2008
New advisories: 19
New vulnerabilities: 68
Updated advisories: 62

Moderately // 353 views
Debian update for php5
Moderately // 282 views
Atarone CMS Multiple Vulnerabilities
Moderately // 310 views
Debian update for squid
Less // 309 views
SUSE update for mercurial
Moderately // 359 views
SUSE update for openssh
Less // 289 views
Fedora update for mediawiki

Solutions | More...  


Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Zeroboard Multiple Vulnerabilities // 44 views
2. phpBB BBcode "url" Script Insertion Vulnerability // 41 views
3. phpBB "url" bbcode Script Insertion Vulnerability // 38 views
4. Zeroboard Two Vulnerabilities // 35 views
5. Juniper Products Neighbor Discovery Protocol Neighbor Solicitation Vulnerability // 35 views
6. HP-UX NFS/ONCplus Denial of Service Vulnerability // 29 views
7. D-Bus "_dbus_validate_signature_with_reason()" Denial of Service // 24 views
8. SUSE update for openssh // 20 views
9. CMME Information Disclosure Security Issues // 19 views
10. Debian update for php5 // 19 views