Directory traversal vulnerability in index.php in Scry Gallery 1.1 allows remote attackers to read arbitrary files via ".." sequences in the p parameter, which is not properly sanitized due to an rtrim function call with the arguments in the wrong order.
https://exchange.xforce.ibmcloud.com/vulnerabilities/25991
http://www.vupen.com/english/advisories/2006/1490
http://www.securityfocus.com/bid/17668
http://www.securityfocus.com/archive/1/431716/100/0/threaded
http://securityreason.com/securityalert/784