Description
WordPress Plugin oQey Gallery is prone to an SQL injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query. Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database. Successful exploitation requires that "magic_quotes" directive is set to "Off". WordPress Plugin oQey Gallery version 0.4.8 is vulnerable; prior versions may also be affected.
Remediation
Update to the latest version
References
http://www.securityfocus.com/bid/49451/exploit
http://www.exploit-db.com/exploits/17779/
http://packetstormsecurity.com/files/view/104792/wpoqey048-sql.txt