Reading list
Learn File upload from real reports
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.
12 reports, easiest first.
-
From a Payment Receipt Upload to Full Server Compromise: An Arbitrary File Upload Case Study
An authenticated user could upload a PHP web shell as a payment receipt because the endpoint accepted any file type and stored it under a web-served directory with its original extension. Requesting the stored file executed it, giving arbitrary command execution and access to secrets such as database and payment-gateway credentials.
A file upload feature let users send a receipt image, but the site did not check what kind of file it was. The attacker sent a small program written in PHP instead of a picture, and because the site saved it in a place it also serves to visitors, opening that file made the server run the program. That let the attacker run commands on the server and read sensitive configuration files.
The lesson. The upload endpoint lacked file-type validation, stored files inside the web root, and left script execution enabled in the upload directory.
-
Arbitrary File Upload via “External Files” feature allows cli
The External Files upload feature only enforced file type and size restrictions in the browser, so an attacker could upload a malicious .hta file that executes code when downloaded and opened. This allowed any authenticated user to distribute executable content within the platform.
The website checked file types only in your browser, not on the server. So someone could change the file name and content to upload a dangerous file that runs code when opened. This is like a bouncer who only checks IDs at the front door but lets anyone in through the back.
The lesson. The server trusted client-side validation and did not independently verify file extension, MIME type, or content.
-
Persistent PHP Payloads In PNGs: How To Inject PHP Code In An Image – And Keep It There !
A PHP application allowed users to upload PNG images that were stored with the original filename, so an attacker could name the file with a .php extension and embed PHP code in the image. When the file was requested, the server executed the PHP code, leading to remote code execution.
When you upload a picture, the website usually saves it with a name you provide. If the website also runs PHP code, an attacker can name the picture something ending in .php and hide PHP code inside the picture file. When someone visits that file, the server runs the hidden code instead of just showing the picture.
-
100$ Bug — The Hidden Cost of “Unsigned” Uploads: Explo
The application used an unsigned Cloudinary upload preset, allowing anyone to upload files directly to the company's storage without authentication. An attacker could exhaust storage and bandwidth budgets, host phishing content on a trusted domain, and enumerate existing assets by checking for existing public IDs.
When you upload a profile picture, the website usually checks that you are logged in before saving the file. Here, the website skipped that check and let anyone send files straight to its cloud storage service. That means a stranger could fill up the company's paid storage or host fake login pages on a trusted web address.
The lesson. The application used an unsigned upload preset, so the third-party storage service accepted files without any backend authentication or authorisation check.
-
Wrong Variable Name Leads To RCE | CVE-2025–52130
The application's file upload validation checked the wrong request parameter names, so the mime-type checks were applied to non-existent fields. An authenticated attacker could upload a PHP file and execute commands on the server by browsing to it.
When you upload a file, the website is supposed to check what kind of file it is. Here, the check looked at the wrong name in the request, so it never actually inspected the uploaded file. That let the author upload a PHP script, which the server then ran, giving command execution.
The lesson. The validation rules referenced parameter names that did not match the actual form field names, so the mime-type checks were never applied to the uploaded files.
-
From a 2008 Web Server to Every Customer Record: How One Upload Took Down an Entire Hosting Business
The employment form's file upload checked only the browser-supplied MIME type, so an attacker could upload a PHP file disguised as a PDF and get it executed by the web server. This gave unauthenticated remote code execution, exposing eight databases, customer records, credentials and backups.
A website let people upload files, such as job applications, but it decided whether a file was safe by trusting a label the browser sends. An attacker could change that label so a harmful program was accepted and then run on the server. Once a program runs on the server, the attacker can read everything stored there.
The lesson. The upload filter trusted the client-supplied MIME type instead of validating the file extension or content server-side.
-
CVE-2026–38526 Deep Dive: Unrestricted PHP Upload RCE in Krayin CRM
The TinyMCE image upload endpoint in Krayin CRM did not validate uploaded files, so an authenticated low-privileged user could upload a PHP file that was stored in a publicly executable directory and then run it by requesting its URL. This allowed arbitrary command execution with the web server's privileges.
A file upload feature let a logged-in user send any file, including a script, to a folder the web server runs as code. When the attacker later opened that file's web address, the server executed the script, giving the attacker control over the server.
The lesson. The upload handler trusted the client-supplied filename and content type, applied no extension or content validation, and stored files in a web-accessible directory where PHP is executed.
-
Exploiting File Upload Functionality in Unique Way.
The careers page file upload accepted any file type and stored files in the same CloudFront root folder as user profile pictures and product images, without renaming them. An attacker could upload a file with the same name as a victim's profile picture or a product image, overwriting it and changing the displayed image.
A website let people upload CVs on a careers page, but it did not check what kind of file was uploaded. Those files were saved in the same online storage folder as profile pictures and shop product images, and the original file name was kept. By uploading a file with the same name as someone else's picture, the attacker replaced that picture with their own.
-
CVE-2025–7847 — Arbitrary File Upload in AI Engine WordP
The AI Engine WordPress plugin allowed any logged-in Subscriber to upload arbitrary files, including PHP scripts, when the Public API setting was enabled. An attacker could then access the uploaded file to execute server-side code, leading to remote code execution and full site compromise.
A WordPress plugin let any logged-in user, even with the lowest permissions, upload any file type to the website. Because the plugin did not check what kind of file was being uploaded, someone could upload a malicious script that runs on the server, giving them control over the site.
The lesson. The plugin's file upload endpoint lacked file-type validation and relied on a permission check that returned true for any logged-in user when the Public API was enabled.
-
Product: eGain Chat (Version 15.0.3)
The eGain Chat file upload feature only validated file extensions on the client side, allowing an attacker to bypass restrictions and upload malicious files with any extension. When an agent downloaded these files, they retained the malicious extensions, enabling potential code execution or other attacks.
The chat product let customers send files to support agents, but it only checked the file type in the browser, not on the server. An attacker could change the file extension after the check and upload dangerous files like scripts or viruses. When the agent downloaded the file, it could harm their computer.
The lesson. Likely the application relied solely on client-side validation for file uploads, with no server-side checks on file type or content.
-
From Source Code to Exploit: Understanding CVE-2026–67206
The Wolf CMS file manager plugin allowed authenticated users to create files with any extension and write arbitrary content to them, without validating the extension or scanning the content. An attacker with valid credentials could create a PHP file, write a web shell into it, and execute commands on the server.
A content management system (CMS) is software for building websites. Its file manager lets logged-in users create and edit files on the server. Here it did not check what kind of file was being made, so someone with a login could create a file that the server runs as a program, and use it to run their own commands.
The lesson. The file creation and save functions did not validate file extensions against a whitelist and did not scan file contents, so any file type and any content could be written into the web-accessible directory.
-
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.
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.
The lesson. 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.