ahmadbady has discovered some vulnerabilities in PHP Weather, which can be exploited by malicious people to conduct cross-site scripting attacks and disclose sensitive information.
1) Input via the URL in config/make_config.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 the context of an affected site.
2) Input passed to the "language" parameter in test.php (when "metar" is set to a non-NULL value) 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.
These vulnerabilities are confirmed in version 2.2.2. 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: ahmadbady
Original Advisory: http://milw0rm.com/exploits/7451
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 firstname.lastname@example.org
Subject: PHP Weather 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.