Some vulnerabilities have been discovered in phpWebThings, which can be exploited by malicious people to disclose sensitive information or conduct SQL injection attacks.
1) Input passed to the "module" parameter in help.php is not properly verified before being used to include files. This can be exploited to include arbitrary files from local resources via directory traversal attacks and URL-encoded NULL bytes.
Successful exploitation requires that "magic_quotes_gpc" is disabled.
2) Input passed via the "id" parameter in fdown.php is not properly sanitised before being used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Successful exploitation allows retrieval of arbitrary files from an affected system using the privileges of the web server.
The vulnerabilities are confirmed in version 1.5.2 with the latest patch applied. Other versions may also be affected.
Solution: Edit the source code to ensure that input is properly verified and sanitised.
Provided and/or discovered by: 1) br0ly
Original Advisory: 1) http://milw0rm.com/exploits/8928
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: phpWebThings Local File Inclusion and SQL Injection
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.