Flux CMS <= 1.5.0 (loadsave.php) Arbitrary File Overwrite Vulnerability
The loadsave.php script in Flux CMS 1.5.0 and earlier allows remote attackers to overwrite a PHP file in the webinc/bxe/scripts/ directory by supplying a filename in the XML parameter and PHP code in the request body. An attacker could then request the overwritten file directly to execute arbitrary code.
karmainsecurity.com
Published on karmainsecurity.com
webinc/bxe/scripts/loadsave.php in Flux CMS 1.5.0 and earlier allows remote attackers to execute arbitrary code by overwriting a PHP file in webinc/bxe/scripts/ via a filename in the XML parameter and PHP sequences in the request body, then making a direct request for this filename.
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
Impact
A remote attacker could execute arbitrary code on the server, potentially taking full control of the web application and its data.
What the attacker needed
Flux CMS 1.5.0 or earlier; Network access to the loadsave.php script
How it was found
- Send a request to loadsave.php with a filename in the XML parameter that points to a PHP file in webinc/bxe/scripts/.
- Include PHP code in the request body so that the file is overwritten with that code.
- Request the overwritten file directly to execute the code.
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 vulnerability in an old content management system called Flux CMS. The script loadsave.php lets someone save data to a file, but it does not check what filename is given or what content is written. An attacker can therefore replace a PHP file on the server with their own code, and when that file is opened in a browser, the code runs on the server.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.