SQL injection vulnerability in account.asp in Active Photo Gallery 6.2 allows remote attackers to execute arbitrary SQL commands via the (1) username and (2) password parameters.
https://www.exploit-db.com/exploits/7299
http://www.vupen.com/english/advisories/2008/3297