Francesco "aScii" Ongaro has discovered some vulnerabilities and a security issue in PHP Web Statistik, which can be exploited by malicious people to disclose system information, cause a DoS (Denial of Service), and conduct cross-site scripting and script insertion attacks.
1) Input passed to the "lastnumber" parameter in "stat.php" isn't 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) The problem is that the configuration and log database files are insecurely stored inside the web root. This can be exploited to disclose certain configuration settings and logging information.
3) Input passed to the "lastnumber" parameter in "stat.php" isn't properly verified before being used in an loop statement. This can be exploited to consume a large amount of CPU resources on a vulnerable system via an overly large "lastnumber" parameter.
4) Input passed to the "referer" header isn't properly sanitised before being used. This can be exploited to inject arbitrary HTML and script code, which will be executed in a user's browser session in context of an affected site when the malicious user data is viewed.
It has also been reported that the program does not rotate the log database.
The vulnerabilities and the security issue have been confirmed in version 1.4.a and has also been reported in version 1.4. Other versions may also be affected.
Solution: Edit the source code to ensure that input is properly sanitised and verified. Move the configuration and log database files out of the web root.
Provided and/or discovered by: Francesco "aScii" Ongaro
Original Advisory: http://www.ush.it/2005/11/19/php-web-statistik/
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 Web Statistik Multiple Vulnerabilities and Security Issue
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.