Secunia Logo  
 
Php-Stats Multiple Vulnerabilities and Security Issue
Secunia Advisory: SA19116
Release Date: 2006-03-06
Last Update: 2006-03-30
Popularity: 6,723 views

Critical:
Highly critical
Impact: Manipulation of data
Exposure of system information
Exposure of sensitive information
System access
Where: From remote
Solution Status: Partial Fix

Software:Php-Stats 0.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-1083
CVE-2006-1084
CVE-2006-1085
CVE-2006-1087
CVE-2006-1088


Description:
rgod has reported some vulnerabilities and a security issue in Php-Stats, which can be exploited by malicious people to conduct SQL injection attacks, disclose system and sensitive information, and compromise a vulnerable system.

1) Input passed to the "option[language]" and "option[template]" parameters in "admin.php" isn't properly verified, before it is used to include files. This can be exploited to include arbitrary files from local resources.

Successful exploitation requires that "magic_quotes_gpc" is disabled.

2) Input passed to the "option[prefix]" parameter in "admin.php" and the "PC_REMOTE_ADDR" HTTP header in "click.php" isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation requires that "magic_quotes_gpc" is disabled (except for the "option[prefix]" parameter).

3) An input validation error in "admin.php" can be exploited to inject arbitrary PHP code in "config.php".

4) The problem is that it is possible to disclose database table prefixes by accessing the "checktables.php" script.

The vulnerabilities and the security issue have been reported in version 0.1.9.1 and prior. Other versions may also be affected.

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

4) Update to version 0.1.9.1b.
http://www.phpstats.net/?Downloads

Provided and/or discovered by:
rgod

Changelog:
2006-03-14: Added CVE references.
2006-03-24: Updated "Solution" section.
2006-03-30: Updated "Description" and "Solution" sections.

Original Advisory:
http://retrogod.altervista.org/php_stats_0191_adv.html


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

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. Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability // 109 views
2. OpenSSL DSA / ECDSA "EVP_VerifyFinal()" Spoofing Vulnerability // 77 views
3. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 54 views
4. Symantec Mail Security for SMTP Response Handling Denial of Service // 48 views
5. Red Hat update for openssl // 47 views
6. Sun Java JDK / JRE Multiple Vulnerabilities // 35 views
7. Internet Explorer Data Binding Memory Corruption Vulnerability // 31 views
8. vBulletin Personal Sticky Threads Add-on Security Bypass Vulnerability // 31 views
9. Red Hat update for xterm // 30 views
10. TSC2 Help Desk CTab ActiveX Control Caption List Buffer Overflow // 29 views