Skip to content
File upload Write-up Intermediate

eFront <= 3.6.10 (filesystem.class.php) Unrestricted File Upload Vulnerability

The eFront application's filesystem library did not properly verify or sanitise files that users uploaded. A remote attacker could therefore upload and run arbitrary PHP code on the server.

karmainsecurity.com

Published on karmainsecurity.com

eFront contains a flaw related to the libraries/filesystem.class.php script which does not properly verify or sanitize user-uploaded files. This allows a remote attacker to upload and execute arbitrary PHP code.

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 upload handling in the filesystem library trusted the uploaded file's type or name instead of validating and restricting it, so a PHP file could be stored and executed.

Impact

A remote attacker could upload and execute arbitrary PHP code, potentially taking over the server.

What the attacker needed

Remote access to the application; an upload feature reachable by the attacker

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.

When a website lets people upload files, it must check what kind of file it is. Here the check was missing or weak, so someone could upload a file that the server then runs as a program, giving them control of the site.

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.