Science Fair In A Box "type" Cross-Site Scripting and SQL Injection
Description
Some vulnerabilities have been discovered in Science Fair In A Box, which can be exploited by malicious people to conduct cross-site scripting and SQL injection attacks.
1) Input passed to the "type" parameter in winners.php is not properly sanitised before being displayed 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) Input passed to the "type" parameter in winners.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Successful exploitation of this vulnerability requires that "magic_quotes_gpc" is disabled.
The vulnerabilities are confirmed in version 2.2.0. Other versions may also be affected.
Vulnerable Products
Vulnerable Software: Science Fair In A Box 2.x
Solution
Edit the source code to ensure that input is properly sanitised.