HexBrain

U.S. Dept Of Defense · Report #1714767

Upload and delete files in debug page without access control.

Validstatus
highseverity
10upvotes
24 Feb 2023disclosed

How it was found

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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original