Skip to content

Chapter 9

Reporting file upload vulnerabilities

Structuring findings, demonstrating minimal proof, and cleanup procedures.

2 min readFile Upload

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.

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

When proving remote code execution on a target, adhere to these strict limits.

  1. Execute only read-only identification commands such as id or whoami.
  2. Capture the command output in your report screenshot or video.
  3. Do not read sensitive application files or customer database records.
  4. Do not pivot across the internal network.
  5. Do not establish permanent persistence or backdoors.
  6. 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.

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 version
of ExifTool. Uploading a crafted JPEG file with DjVu metadata triggers arbitrary
command 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.

Connections2 backlinks · 3 outgoing · 4 cross-guideFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

File UploadFor authorized testing only.