HTTP PUT method enabled
The web server accepted HTTP PUT requests, allowing an attacker to upload arbitrary files. An attacker could place a file on the server and access it via a URL.
- Triaged in under an hour
- Fixed in 2 hours
- Disclosed after 6 months
Hi security team,
Summary: It is possible to upload files to the server using the PUT method
Steps To Reproduce:
- I used the following request:
PUT /emitrani.txt HTTP/1.1
Host: ratelimited.me
Content-Length: 10
Connection: close
emitrani POC
Now a file exists at https://ratelimited.me/emitrani.txt with contents of the put request.
Impact
Anyone can upload files to the server.
Regards, Eray
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
Impact
Anyone can upload files to the server.
What the attacker needed
None
How it was found
- Send a PUT request to the target server with a chosen filename and content.
- Access the uploaded file via its URL to confirm it exists.
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.
Web servers use different HTTP methods like GET to fetch pages and POST to submit forms. The PUT method is meant for uploading or replacing files, but if it is left enabled without authentication, anyone can write files to the server. This report shows that a simple PUT request created a new text file that could then be viewed online.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.