Upload and delete files in debug page without access control.
A debug page was exposed without any access control, letting anyone upload, read and delete files through it. An attacker could use it to delete files exposed by the application.
- Triaged in 8 hours
- Fixed in 6 days
- Disclosed after 5 months
I found a debug page with no access control that allows:
- Uploading files.
- Reading files if they are in JSON format.
- Delete files.
Impact
- Insufficient access control.
- An attacker can delete files exposed by the application.
System Host(s)
████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
For upload file:
- Use a browser to navigate to: https://█████/debug.
- Click on choose file button.
- Set the file path in the location field
- Click on the upload files button.
5.See the file uploaded on the list.
For Read File
- Select the file.
- Click and Read File Content.
- See the content file.
For delete file:
- Select the file.
- Click on the Delete ENC Files button.
Suggested Mitigation/Remediation Actions
- Implement access control on the page.
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 debug page was deployed to production without any authentication or authorisation check.
Impact
An attacker could delete files exposed by the application, and could also upload and read JSON files through the page.
What the attacker needed
Reachable debug page; no login required
How it was found
- Open the debug page in a browser.
- Choose a file and set its path in the location field.
- Upload the file and see it listed.
- Select a file and read its content.
- Select a file and delete it.
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 debug page had no login check, so anyone who found the address could upload, read or delete files through it.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.