Skip to content
File upload Write-up Intermediate

CMS Made Simple <= 1.2.4 Unrestricted File Upload Vulnerability

The FileManager module's javaUpload.php used an incomplete blacklist that failed to block several executable file extensions. A remote attacker could upload a file with one of those extensions and then request it directly to run arbitrary code on the server.

karmainsecurity.com

Published on karmainsecurity.com

Incomplete blacklist vulnerability in javaUpload.php in Postlet in the FileManager module in CMS Made Simple 1.2.4 and earlier allows remote attackers to execute arbitrary code by uploading a file with a name ending in (1) .jsp, (2) .php3, (3) .cgi, (4) .dhtml, (5) .phtml, (6) .php5, or (7) .jar, then accessing it via…

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 check relied on a blacklist of forbidden extensions rather than an allowlist, so unlisted executable extensions slipped through.

Impact

An attacker could execute arbitrary code on the server, potentially taking full control of the application and host.

What the attacker needed

Remote access to the upload feature; no authentication stated

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 file upload feature tried to stop dangerous files by blocking a list of extensions, but the list was incomplete. An attacker could upload a file with an extension the list missed, then open it in the browser so the server ran it as code. This gives the attacker control over the web 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.