Wordpress Zingiri Web Shop <= 2.2.3 PHP Code Injection Vulnerability
The Zingiri Web Shop WordPress plugin's Ajax File Manager module allowed remote attackers to inject arbitrary PHP code into a data file by manipulating the selected document through its AJAX endpoints. An attacker could then execute that injected code on the server.
karmainsecurity.com
Published on karmainsecurity.com
Static code injection vulnerability in ajaxsavename.php in the Ajax File Manager module in the tinymce plugin used in the Zingiri Web Shop plugin for WordPress allows remote attackers to inject arbitrary PHP code into data.php via the selected document, as demonstrated by a call to ajaxfilecut.php and then to…
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 missing validation and sanitisation of the document name or content passed to the AJAX save function, allowing PHP code to be written into a file.
Impact
A remote attacker could inject and execute arbitrary PHP code on the WordPress server, potentially taking full control of the site.
What the attacker needed
Zingiri Web Shop plugin <= 2.2.3 installed; network access to the WordPress site
How it was found
- Call the ajax_file_cut.php endpoint to select or move a document.
- Call the ajax_save_name.php endpoint with a crafted document value to write PHP code into data.php.
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.
This is a WordPress plugin that let users rename or move files through web requests. Because it did not properly check what was being saved, an attacker could make it write PHP code into a file that the web server would later run. That means the attacker could run their own code on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.