Zenphoto <= 1.4.1.4 (ajax_create_folder.php) PHP Code Injection Vulnerability
A static code injection flaw in the Ajax File and Image Manager component used by Zenphoto and other products lets a remote attacker inject arbitrary PHP code into a data file through crafted parameters. The injected code could then be executed by the server.
karmainsecurity.com
Published on karmainsecurity.com
Static code injection vulnerability in inc/function.base.php in Ajax File and Image Manager before 1.1, as used in tinymce before 1.4.2, phpMyFAQ 2.6 before 2.6.19 and 2.7 before 2.7.1, and possibly other products, allows remote attackers to inject arbitrary PHP code into data.php via crafted parameters.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the folder-creation handler passed user-supplied parameter values into a PHP data file without sanitising them, allowing code to be written and later executed.
Impact
A remote attacker could inject and execute arbitrary PHP code on the server, potentially taking full control of the affected installation.
What the attacker needed
Network access to the affected application
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Some web software lets users create folders through an AJAX request. The code handling that request did not clean the input properly, so an attacker could slip PHP code into a file the server later runs. That means the attacker could make the server execute their own instructions.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.