Magix bugbounty XSS writeup
A script on europe.magix.com accepted uploaded zip files, extracted them into a web-accessible directory and echoed the extracted file's full path, letting an attacker upload and run PHP code. The same script used values from an uploaded .ini file unfiltered in a SQL query, and a separate host allowed local file inclusion and cross-site scripting.
Published on rcesecurity.com
The German Magix Software GmbH rewarded me with a Hall of Fame listing and a free Magix Music Maker 2014 Premium license for my reports of several serious security issues in the online infrastructures of magix.com and xara.com, which could be used to break both sites entirely:
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 upload script extracted archives without validating their contents, stored them under the web root, and echoed debug output revealing the extracted path.
What the attacker needed
Ability to send HTTP POST requests; no account mentioned
The fix
The vulnerabilities were fixed by Magix within a few days of the report, with the XSS fix taking a bit longer.
How it was found
- Find a script on europe.magix.com that accepts zip uploads via an HTTP POST request.
- Build a zip file containing a PHP file with a custom payload.
- Upload the zip and read the debug output that discloses the full path of the extracted file.
- Request the extracted PHP file through the web server to execute it.
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 website let people upload a zip archive and then unpacked it into a folder that the public web server could serve. Because the site also printed where the unpacked file landed, someone could upload a small program written in PHP and then ask the server to run it. That gives the attacker control of the server, which is far worse than just seeing a page.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.