Multiple SQL injection vulnerabilities in mcGallery PRO 2.2 and earlier allow remote attackers to execute arbitrary SQL commands via the (1) id, (2) start, and (3) rand parameters to show.php, and the (4) album parameter to index.php.
http://www.vupen.com/english/advisories/2005/2886
http://secunia.com/advisories/18039
http://pridels0.blogspot.com/2005/12/mcgallery-pro-vuln.html