Secunia - Stay Secure
Home Corporate Website Jobs Updated Mailing Lists RSS Blog  Online Shop Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


Php-Stats Multiple Vulnerabilities and Security Issue Advisory Available in Danish 

Secunia Advisory: SA19116  
Release Date: 2006-03-06
Last Update: 2006-03-30

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

CVE reference:CVE-2006-1083 (Secunia mirror)
CVE-2006-1084 (Secunia mirror)
CVE-2006-1085 (Secunia mirror)
CVE-2006-1087 (Secunia mirror)
CVE-2006-1088 (Secunia mirror)



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



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.

2 Related Secunia Security Advisories

1. Php-Stats Multiple Vulnerabilities
2. Php-Stats SQL Injections and PHP Code Execution


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.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
dotProject SQL Injection and Cross-Site Scripting
2.
Novell eDirectory Multiple Vulnerabilities
3.
Sun Solaris Kernel Covert Channel Security Bypass
4.
Red Hat update for libtiff
5.
HP TCP/IP Services for OpenVMS Finger Format String Vulnerability
6.
Ultra Office ActiveX Control Multiple Vulnerabilities
7.
Adium MSN SLP Message Integer Overflow Vulnerabilities
8.
Caudium "configvar" Insecure Temporary Files
9.
IBM WebSphere Application Server for z/OS HTTP Server mod_proxy_ftp Vulnerability
10.
GpsDrive "geo-code" Insecure Temporary Files





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia