Skip to content
File upload Write-up Beginner

Remote Code Execution (RCE) Vulnerability Report

The application allows authenticated users to upload arbitrary files, including PHP scripts, without proper validation, and stores them in a publicly accessible directory where they are executed by the server. An attacker can upload a malicious PHP file and execute it via the browser, leading to full server compromise.

medium.com

Published on medium.com

A critical Remote Code Execution (RCE) vulnerability was identified in the Client Database Management System (CDMS) . The application allows attackers to upload arbitrary files without proper validation.

Ravi Pipalwa, on medium.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 application lacks server-side validation of file type and extension, stores uploaded files in a web-accessible directory, and allows the web server to execute them.

Impact

Successful exploitation allows remote command execution, web shell deployment, database credential theft, privilege escalation, data exfiltration or destruction, and full server compromise.

What the attacker needed

Authenticated user account; access to Leads Generation module

The fix

The application should block executable file extensions, implement server-side MIME and content validation, disable directory listing, store uploads outside the web root, and rename uploaded files using random UUIDs.

How it was found

  1. Create a transaction if none exists.
  2. Navigate to Leads Generation, then View Details, then Update Transaction.
  3. Upload a file named profile.php.
  4. Complete the transaction update.
  5. Access the uploaded file directly via browser.
  6. The PHP file executes successfully on the server.

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 is a file upload vulnerability. The application lets you upload files but doesn't check what kind of file it is. If you upload a script that the server can run (like a PHP file), the server will execute it, giving an attacker control over 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.