Description
WordPress Plugin Photo Gallery by 10Web-Mobile-Friendly Image Gallery is prone to a vulnerability that lets attackers upload arbitrary files because the application fails to properly sanitize user-supplied input. An attacker can exploit this vulnerability to upload arbitrary code and run it in the context of the webserver process. This may facilitate unauthorized access or privilege escalation; other attacks are also possible. WordPress Plugin Photo Gallery by 10Web-Mobile-Friendly Image Gallery version 1.2.5 is vulnerable; prior versions may also be affected.
Remediation
Update to plugin version 1.2.6 or latest
References
http://security.szurek.pl/photo-gallery-125-unrestricted-file-upload.html
http://www.exploit-db.com/exploits/35916/
http://packetstormsecurity.com/files/130104/Photo-Gallery-1.2.5-Shell-Upload.html