Skip to content
File upload Disclosed report Beginner

Unauthenticated arbitrary file upload on the https://█████/ (█████.mil)

An upload endpoint on a .mil website accepted files and exposed them at a predictable path, potentially leading to stored XSS, hosting content or code execution.

sp1d3rs Follow

Originally disclosed on HackerOne

  • Triaged in 1 hour
  • Fixed in 48 days
  • Disclosed after 4.8 years

##Description I was able to identify unsafe upload endpoint on the https://██████/upload.php

##POC

  1. Go to the https://██████/upload.php
  2. Upload some test file.

You will see success message, leaking some internal paths 3) Visit https://██████████/delete.me and you will see your uploaded file there

I uploaded example image file there: █████

Impact

Arbitrary file upload, may lead to the Stored XSS, hosting attacker's content and code execution.

The original report as published on HackerOne, by sp1d3rs. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the upload script stored files in a web-accessible location, allowing arbitrary content to be served.

Impact

Arbitrary file upload could lead to stored XSS, hosting attacker content, and code execution.

What the attacker needed

Access to the upload page

How it was found

  1. Go to the upload page.
  2. Upload a test file and observe a success message that leaks internal paths.
  3. Visit the delete.me path to see the uploaded file.

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 report has not been written yet. The Original tab links to the source.

A website had a page for uploading files. Anyone could send a file and then open it at a known web address. That could let an attacker host content or run code.

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.

More by sp1d3rs

View all

62 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.