Multiple SQL injection vulnerabilities in Instant Photo Gallery 1 and earlier allow remote attackers to execute arbitrary SQL commands via the (1) cat_id parameter in portfolio.php and (2) cid parameter in content.php.
https://exchange.xforce.ibmcloud.com/vulnerabilities/23350
http://www.vupen.com/english/advisories/2005/2670
http://www.securityfocus.com/bid/15659
http://secunia.com/advisories/17841
http://pridels0.blogspot.com/2005/11/instant-photo-gallery-sql-inj-vuln.html