Some vulnerabilities have been reported in MyWeight, which can be exploited by malicious people to conduct cross-site scripting attacks and by malicious users to compromise a vulnerable system.
1) Input passed via the "date" parameter in user_addfood.php, the "info" parameter in user_forgot_pwd_form.php and user_login.php, and the "return" parameter in user_login.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) The user_controller.php script allows the upload of files with arbitrary extensions to a folder inside the webroot. This can be exploited to execute arbitrary PHP code by uploading arbitrary PHP files.
The vulnerabilities are reported in version 1.0. Other versions may also be affected.
Solution: Edit the source code to ensure that input is properly sanitised.
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: MyWeight Cross-Site Scripting and Arbitrary File Upload
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.