Some vulnerabilities have been discovered in Php-Stats, which can be exploited by malicious people to conduct cross-site scripting attacks or SQL injection attacks, and by malicious users to compromise a vulnerable system.
1) Input passed to the "IP" parameter in whois.php and tracking.php 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.
2) Input passed to the "ip" parameter in php-stats.recjs.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 allows e.g. retrieving administrator password hashes, but requires knowledge of the database table prefix and that "magic_quotes_runtime" is disabled.
3) Input passed to the admin.php script is not properly sanitised before being stored in the options table. This can be exploited to execute arbitrary PHP code.
Successful exploitation of this vulnerability requires valid administrator credentials and knowledge of the database table prefix.
The vulnerabilities are confirmed in version 0.1.9.2. Other versions may also be affected.
Solution: Edit the source code to ensure that input is properly sanitised. Restrict access to admin.php (e.g. with ".htaccess").
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 email@example.com
Subject: Php-Stats Multiple Vulnerabilities
No posts yet
You must be logged in to post a comment.
Secunia Customer Login
Not a customer already?
Learn more about how our market leading Vulnerability Management solutions can help you manage risk and ensure compliance.