Skip to content
File upload Write-up Intermediate

JAKCMS PRO <= 2.2.5 Unrestricted File Upload Vulnerability

The JAKCMS PRO file upload script does not properly verify or sanitize uploaded files, allowing a remote attacker to upload and execute arbitrary PHP code.

karmainsecurity.com

Published on karmainsecurity.com

JAKCMS contains a flaw related to the js/editor/plugins/jakadminexplorer/php/action.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 handler in the admin explorer plugin fails to validate file type or extension before saving uploaded files to a web-accessible location.

Impact

A remote attacker could upload and execute arbitrary PHP code on the server, potentially taking full control of the site.

What the attacker needed

Access to the upload endpoint

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 in this content management system accepted files without checking what they were. An attacker could upload a PHP script, which is code the web server runs, and then trigger it to run on the server. That gives the attacker control over the website's 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.