Entrans Cross-Site Scripting and SQL Injection Vulnerabilities
Description
Some vulnerabilities have been discovered in Entrans, which can be exploited by malicious people to conduct cross-site scripting and SQL injection attacks.
1) Input passed to the "query" parameter in search.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) Input passed via the "parent_id" and "root" parameters to main.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.
3) Input passed via the "edit" parameter to list.php (when "category" is set) 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.
4) Input passed via the "query_lookup" parameter to lookup.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.
5) Input passed to the "query" parameter in search.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
6) Input passed via the "query_lookup" parameter to lookup.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 vulnerabilities #5 and #6 requires that "magic_quotes_gpc" is disabled.
The vulnerabilities are confirmed in version 0.3.2. Prior versions may also be affected.