rgod has discovered two vulnerabilities in TCExam, which can be exploited by malicious people to conduct cross-site scripting attacks or to compromise a vulnerable system.
1) Input passed in the "SessionUserLang" cookie to public/code/index.php is not properly sanitised before it is written to the filename after the last slash. This can be exploited to execute arbitrary PHP code.
2) Input passed to the "_SERVER[SCRIPT_NAME]" parameter in public/code/index.php is not properly sanitised before it is 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.
The vulnerabilities are confirmed in version 4.0.011. Prior versions may also be affected.
Solution: Update to version 4.1.000.
Provided and/or discovered by: rgod
Original Advisory: http://milw0rm.com/exploits/3816
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: TCExam PHP Code Execution and Cross-Site Scripting
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.