Chapter 9
Reporting file upload vulnerabilities
Structuring findings, demonstrating minimal proof, and cleanup procedures.
Triagers see dozens of noisy upload reports every week, mostly people uploading harmless .txt files and claiming RCE. Stand out by naming the exact station that failed, attaching minimal proof, and confirming you deleted your test file.
Severity ladder by mechanism
Section titled “Severity ladder by mechanism”Use these recommended report titles and severity ratings.
| Observed technical flaw | Recommended report title | Standard severity |
|---|---|---|
| Direct script execution | Unrestricted file upload leading to remote code execution | Critical |
| Archive directory traversal | Arbitrary file write via archive traversal leading to web shell | Critical |
| Image parser vulnerability | Remote code execution via vulnerable image library CVE | Critical |
| Deserialization in stream wrapper | Code execution via phar deserialization and gadget chain | Critical |
| SVG script execution | Stored cross-site scripting via avatar image upload | High |
| Missing nosniff header | Content-type confusion enabling stored script execution | High |
| Spreadsheet formula injection | Client-side command execution via CSV export formula | Medium |
| File object reference flaw | Insecure direct object reference enabling document access | Medium |
The minimal proof requirement
Section titled “The minimal proof requirement”When proving remote code execution on a target, adhere to these strict limits.
- Execute only read-only identification commands such as
idorwhoami. - Capture the command output in your report screenshot or video.
- Do not read sensitive application files or customer database records.
- Do not pivot across the internal network.
- Do not establish permanent persistence or backdoors.
- Delete test files from the remote server immediately after verification.
Include a dedicated cleanup confirmation section in your report. State the exact filename and path of the deleted test artifact.
Explaining parser vulnerabilities
Section titled “Explaining parser vulnerabilities”When an image parsing library causes the vulnerability, frame the finding clearly. State that the issue resides in the backend processing pipeline rather than the web upload form.
Title: Remote Code Execution via ExifTool CVE-2021-22204 in Attachment Processing
Summary:The profile attachment endpoint processes uploaded images using an unpatched versionof ExifTool. Uploading a crafted JPEG file with DjVu metadata triggers arbitrarycommand execution during thumbnail generation. No direct script upload is required.
Verification:The attached proof demonstrates execution of the id command, returning uid=33(www-data).The test file test_proof.jpg was deleted from the server immediately after testing.Next, run the checklist to confirm you covered every station before you submit.
Related reporting guides
Section titled “Related reporting guides”- Compare structure and severity framing in Writing Reports, IDOR reporting, and Reports that get accepted.
Open local graph around this page
File UploadFor authorized testing only.