(0Day) CentOS Web Panel ajax_mod_security archivo Arbitrary File Write Remote Code Execution Vulnerability
The ajax_mod_security.php script in CentOS Web Panel takes a user-supplied path from the archivo parameter and uses it in file operations without validating it. An unauthenticated remote attacker could write arbitrary files and, because the service runs as root, execute code with root privileges.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to write arbitrary files on affected installations of CentOS Web Panel. Authentication is not required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the archivo parameter is passed into file write operations without validating or restricting the supplied path, allowing traversal outside the intended directory.
Impact
An unauthenticated attacker could write arbitrary files and execute code as root; the advisory offers no patch and recommends restricting access to trusted machines only.
What the attacker needed
Network access to the panel service; no authentication needed
The fix
No patch was available at disclosure; the advisory says the only practical mitigation is to limit access to the service to trusted machines via firewall rules or whitelisting.
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 report has not been written yet. The Original tab links to the source.
This is a web control panel for managing a server. One of its scripts accepted a file location from anyone on the internet and wrote a file there without checking it was allowed. Because the panel runs with the highest privileges on the machine, an attacker could plant a file that the server then runs as its own code.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.