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.
- 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
- Go to the https://██████/upload.php
- 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.
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
- Go to the upload page.
- Upload a test file and observe a success message that leaks internal paths.
- 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.