Zenphoto
Zenphoto 1.4.1.4 can be vulnerable to unauthenticated remote code execution through the bundled TinyMCE ajax file manager path.
Discovery
Browse the discovered gallery:
http://TARGET/test/
RSS Feed | Archive View | Powered by zenPHOTOVersion Identification
View source on the gallery home page. The Zenphoto version can appear in an HTML comment:
view-source:http://TARGET/test/
<!-- zenphoto version 1.4.1.4 [8157] (Official Build) THEME: default (index.php) GRAPHICS LIB: PHP GD library 2.0 { memory: 128M } PLUGINS: class-video colorbox deprecated-functions hitcounter security-logger tiny_mce zenphoto_news zenphoto_sendmail zenphoto_seo -->Searchsploit shows an exact-version RCE:
ZenPhoto 1.4.1.4 - 'ajax_create_folder.php' Remote Code Execution | php/webapps/18083.phpCopy the exploit:
searchsploit -m php/webapps/18083.phpRemote Code Execution
Confirm the vulnerable TinyMCE ajax file manager path exists under the discovered Zenphoto base path:
Run the exploit against the target and Zenphoto path:
Successful command execution:
Reverse Shell
A Bash/nc stager worked from the Zenphoto exploit shell:
Download and execute it from the target:
Successful shell:
Zenphoto Database Credentials
From the web root, check zp-data/zp-config.php:
Observed credentials:
Useful database enumeration:
References
https://www.exploit-db.com/exploits/18083
Last updated