ISPConfig <= 3.2.11 (language_edit.php) PHP Code Injection Vulnerability
The records POST parameter in language_edit.php is not properly sanitised before being used to generate PHP code, allowing an administrator to inject and execute arbitrary PHP code on the server.
karmainsecurity.com
Published on karmainsecurity.com
User input passed through the “records” POST parameter to /admin/languageedit.php is not properly sanitized before being used to dynamically generate PHP code that will be executed by the application. This can be exploited by malicious administrator users to inject and execute arbitrary PHP code on the web server.
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 application writes user-supplied data into a generated PHP file without escaping or validating it, so the data becomes executable code.
Impact
A malicious administrator could execute arbitrary PHP code on the web server.
What the attacker needed
Administrator access to ISPConfig
The fix
Upgrade to version 3.2.12 or later.
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.
A web application takes input from a form and writes it directly into a PHP file that it later runs. Because the input is not cleaned, someone who can access the admin area can add their own PHP commands, which the server will then execute.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.