File Upload Restriction Bypass
The logo upload feature accepted an arbitrary value in the imgnum parameter instead of only the ten expected slots, so a user could store unlimited images on the server. An attacker could fill the server's disk and cause an application denial of service.
Originally disclosed on HackerOne
- Triaged in 45 hours
- Fixed in 5 months
- Disclosed after 2.7 years
Summary: A file upload function allows users to specify their own file name on the server, which allows a user to upload as many images as they would like, potentially causing an Application Denial of Service.
Description: The listserv 16.0 server at http://████████ allows users to upload their own logos for their own newsletter. The user can upload up to 10 logos. If you capture the request in a proxy such as Burp Suite Pro, you can examine the POST request and see that imgnum parameter is set at 1-10 based on what logo the user specified. It is possible to modify that parameter to whatever you want. For example; any word or number and that image can be retrieved by browsing to the link provided after it is uploaded. This would allow a user to upload as many images/logos as they want to potentially causing a Application Denial of Service if they were able to fill up the server hard drive.
Impact
Denial of Service
Step-by-step Reproduction Instructions
- Navigate to http://█████████ and create an account.
- Go to Preferences after you login and choose the "Newsletter Profile" tab.
- On the logos option, keep the default "Slot 1" selected and hit browse to choose an image to upload.
- No go to the bottom and choose Update.
- In your proxy tool, replay the request with the imgnum paramter changed to "cow" or 50 or whatever you want.
- Append the same value to the end of the image data (logo parameter) in the POST request.
- Replay the modified request.
- Navigate to http://█████/scripts/wa.cgi?VL&Y=9e44b517&imgnum=<INSERT MODIFIED VALUE HERE>
- For example, if you used "cow", you would navigate to http://█████████/scripts/wa.cgi?VL&Y=9e44b517&imgnum=cow
- To verify, download the image and look at the image in a text editor, you should see the appended value at the end of the image file.
You many need to change the Y parameter in the URI for your account, this will be displayed after you upload your logo through the web interface.
Product, Version, and Configuration (If applicable)
LISTSERV 16.0
Suggested Mitigation/Remediation Actions
Only allow values 1-10 for the imgnum parameter and overwrite images if there is one with that number already.
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 server trusted the client-supplied imgnum parameter as the storage slot identifier without validating it against the allowed range of 1 to 10.
Impact
A user could upload unlimited images and potentially fill the server's hard drive, causing an application denial of service.
What the attacker needed
A free account on the site; a proxy tool to edit requests
The fix
The imgnum parameter should be restricted to the values 1 to 10 and an existing image with that number should be overwritten.
How it was found
- Create an account on the site and open the Newsletter Profile tab under Preferences.
- Upload an image into the default logo slot and submit the update.
- In a proxy, change the imgnum parameter to an arbitrary value and append the same value to the logo data.
- Replay the modified request.
- Request the logo URL with the modified imgnum value to confirm the image was stored.
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 web application lets each user upload a small number of logo images, and the server decides which slot each image goes into from a number sent in the request. The server never checked that number, so a user could keep sending new numbers and store far more images than allowed. Filling the disk this way can stop the whole application from working.
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.