Description
EGallery version 1.2 contains an unauthenticated arbitrary file upload vulnerability in the uploadify.php script. The application fails to validate file types or enforce authentication, allowing remote attackers to upload malicious PHP files directly into the web-accessible egallery/ directory. This results in full remote code execution under the web server context.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| EGallery | EGallery | 1.2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
EGallery PHP File Upload Vulnerability
exploit/unix/webapp/egallery_upload_exec
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/webapp/egallery_upload_exec.rb exploit
- https://www.exploit-db.com/exploits/20029 exploit
- http://web.archive.org/web/20170128123244/http://www.opensyscom.fr/Actualites/egallery-arbitrary-file-upload-vulnerability.html technical-description exploit
- https://sourceforge.net/projects/e-gallery/ product
- https://www.vulncheck.com/advisories/egallery-arbitrary-php-file-upload third-party-advisory