Secunia CSI7
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading
Moderately critical

PHP-Nuke Multiple Vulnerabilities

-

Release Date:  2008-01-23    Last Update:  2011-04-19    Views:  13,128

Secunia Advisory SA28624

Where:

From remote

Impact:

Cross Site Scripting, Manipulation of data, Exposure of sensitive information

Solution Status:

Unpatched

Software:

CVE Reference(s):

Description


Some vulnerabilities have been discovered in PHP-Nuke, which can be exploited by malicious users to conduct SQL injection attacks and disclose potentially sensitive information and by malicious people to conduct SQL injection, cross-site scripting, and cross-site request forgery 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.

3) Input passed to the "url" parameter through modules.php to modules/Downloads/index.php (when "d_op" is set to "Add") is not properly sanitised before being used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation of this vulnerability requires valid user credentials.

4) Input passed via the "Referer" HTTP header to index.php 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 of this vulnerability requires that "magic_quotes_gpc" is disabled.

5) Input passed to the "theme" parameter when changing the theme using the "Your_Account" module is not properly verified before being stored and used. This can be exploited to include arbitrary files from local resources via directory traversal attacks.

Successful exploitation requires a valid user account.

6) Input passed via the "mood" and "status" parameters when adding a new journal entry 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 of this vulnerability requires valid user credentials.

7) Input passed via the "check_num" parameter through modules.php (if "name" is set to "Your_Account" and "op" is set to "activate") to modules/Your_Account/index.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

8) Input passed via the "url" parameter through modules.php (if "name" is set to "Web_Links" and "l_op" is set to "Add") to modules/Web_Links/index.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

This is related to:
SA14866

9) Input passed via the "query" parameter to modules.php (when "name" is set to "Search") is not properly sanitised in modules/Search/index.php before being returned to the user.

For more information see vulnerability #1 in:
SA12083

10) Input passed via the "sender_name" and "sender_email" POST parameters to modules.php (when "name" is set to "Feedback" and "opi" is set to "ds") 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.

11) Input passed via the "chng_uid" POST parameter to admin.php (when the "op" POST parameter is set to "modifyUser") is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

12) The application allows users to perform certain actions via HTTP requests without making proper validity checks to verify the requests. This can be exploited to e.g. add an administrative user by tricking an administrator into visiting a malicious web site while being logged-in to the application.

13) Input passed to the "query" POST parameter in modules.php (when "name" is set to "Downloads" and "d_op" is set to "search") is not properly sanitised in modules/Downloads/index.php 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.

Successful exploitation of this vulnerability requires that "magic_quotes_gpc" is disabled.

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 and verified, do not browse untrusted web sites or follow untrusted links while being logged-in to the application, or use another product.

Provided and/or discovered by:
1) Foster & 1dt.w0lf
2, 13) MustLive
3) Sina Yazdanmehr
4) Gerendi Sandor Attila
5) Inj3ct0r
6) Michael Brooks
7) yawn
10, 11, 12) Aung Khant, YGN Ethical Hacker Group

Original Advisory:
1) http://milw0rm.com/exploits/4965
2) http://websecurity.com.ua/2119/
4) http://packetstorm.linuxsecurity.com/0905-exploits/phpnuke80ref-sql.txt
5) http://packetstormsecurity.org/0909-exploits/phpnuke80-sqlexec.txt
7) http://www.exploit-db.com/exploits/14319/
http://www.exploit-db.com/exploits/14320/
8) http://www.exploit-db.com/exploits/14316/
10) http://yehg.net/lab/pr0js/advisories/[phpnuke-8.x]_cross_site_scripting
11) http://yehg.net/lab/pr0js/advisories/[phpnuke-8.x]_sql_injection
12) http://yehg.net/lab/pr0js/advisories/[phpnuke-8.x]_cross_site_request_forgery
13) http://websecurity.com.ua/5009/

Deep Links:
Links available to Secunia VIM customers

Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to vuln@secunia.com

Subject: PHP-Nuke Multiple Vulnerabilities

No posts yet

-

You must be logged in to post a comment.



 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


 
© 2002-2014 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability