EasyGallery SQL Injection and Cross-Site ScriptingSunday, 16 March 2008Description:
JosS has discovered some vulnerabilities in EasyGallery, which can be exploited by malicious people to conduct cross-site scripting and SQL injection attacks.
1) Input passed to the "catid" parameter in staticpages/easygallery/index.php (when "page" is set to "category") is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
2) Input passed to the "q" parameter (when "help" is set) and the URL in staticpages/easygallery/index.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.
The vulnerabilities are confirmed in version 5.00tr. Other versions may also be affected.
Solution:
Edit the source code to ensure that input is properly sanitised.
Provided and/or discovered by:
JosS
Original Advisory:
http://milw0rm.com/exploits/5247
http://secunia.com/advisories/29372/
Share this content:
|