Skip to content
Access control Disclosed report Beginner

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.

0r10nh4ck Follow

Originally disclosed on HackerOne

  • 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:

  1. Use a browser to navigate to: https://█████/debug.
  2. Click on choose file button.
  3. Set the file path in the location field
  4. Click on the upload files button.

5.See the file uploaded on the list.

For Read File

  1. Select the file.
  2. Click and Read File Content.
  3. See the content file.

For delete file:

  1. Select the file.
  2. Click on the Delete ENC Files button.

Suggested Mitigation/Remediation Actions

  • Implement access control on the page.

The original report as published on HackerOne, by 0r10nh4ck. 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 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

  1. Open the debug page in a browser.
  2. Choose a file and set its path in the location field.
  3. Upload the file and see it listed.
  4. Select a file and read its content.
  5. 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.

More by 0r10nh4ck

View all

6 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.

Broken access control

The lesson behind this report.

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.