Secunia Logo
Netsikker nu! 2008
 
Php-Stats Multiple Vulnerabilities and Security Issue
Secunia Advisory: SA19116
Release Date: 2006-03-06
Last Update: 2006-03-30
Popularity: 6,538 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. phpBB "gen_rand_string()" Predictable RNG Weakness // 205 views
2. phpBB reveals user IPs // 75 views
3. Oracle Products Multiple Vulnerabilities // 47 views
4. Sun Solaris "sadmind" Buffer Overflow Vulnerability // 44 views
5. VLC Media Player XSPF Processing Memory Corruption Vulnerability // 37 views
6. BEA WebLogic Server Multiple Authorizers Security Bypass // 36 views
7. BEA WebLogic Server Multiple Vulnerabilities // 35 views
8. BEA WebLogic Workshop NetUI Pageflow Information Disclosure Vulnerability // 34 views
9. BEA WebLogic Workshop NetUI Tags Information Disclosure Vulnerability // 30 views
10. Elxis mod_language.php Cross-Site Scripting Vulnerability // 29 views