source: http://www.securityfocus.com/bid/28587/info
mcGallery is prone to multiple cross-site scripting vulnerabilities because it fails to sufficiently sanitize user-supplied data.
An attacker may leverage these issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.
mcGallery 1.1 is vulnerable; other versions may also be affected.
http://www.example.com/[path]/sess.php?lang=<script>alert(document.c-o-o-k-i-e)</script