Skip to content
File upload Write-up Intermediate

FLABER <= 1.1 (update_xml.php) Arbitrary File Overwrite Vulnerability

The update_xml.php script in FLABER 1.1 and earlier lets a remote attacker choose any target filename through the target_file parameter and overwrite that file. By overwriting a PHP file, an attacker could achieve code execution.

karmainsecurity.com

Published on karmainsecurity.com

function/updatexml.php in FLABER 1.1 and earlier allows remote attackers to overwrite arbitrary files by specifying the target filename in the targetfile parameter. NOTE: this can be leveraged for code execution by overwriting a PHP file, as demonstrated using function/uploadfile.php.

The author, on karmainsecurity.com

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 update_xml.php script takes the target_file parameter from the request and uses it directly as the write destination without validating or restricting the path.

Impact

An attacker could overwrite arbitrary files and, by overwriting a PHP file, could execute code on the server.

What the attacker needed

Network access to the FLABER instance

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 software has a script that saves data to a file, but it lets the person making the request decide which file to write to. Because there is no check on that choice, someone can make the program overwrite important files on the server. If they overwrite a file that the server later runs as code, they can take control of 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.