Gazie "Login" Cross-Site Scripting and SQL Injection Vulnerabilities
Description
Gjoko Krstic has discovered two vulnerabilities in Gazie, which can be exploited by malicious people to conduct cross-site scripting and SQL injection attacks.
1) Input passed via the "Login" parameter to modules/root/login_admin.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 "Login" parameter to modules/root/login_admin.php (when "actionflag" is set) is not properly sanitised in library/include/mysql.lib.php before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
The vulnerabilities are confirmed in version 5.11. Other versions may also be affected.
Vulnerable Products
Vulnerable Software: Gazie 5.x
Solution
Update to version 5.20, which fixes vulnerability #2. Edit the source code to ensure that input is properly sanitised.