Skip to content
File upload Disclosed report Beginner

[█████] Bug Reports allow for Unrestricted File Upload

The bug report submission page did not validate the extension or size of attached files on the server. An attacker could attach a malicious file with a disallowed extension, and if a support agent opened it, malware could execute on the agent's system.

b911bade858ce8e6a0f50f8 Follow

Originally disclosed on HackerOne

  • Triaged in 39 hours
  • Fixed in 10 days
  • Disclosed after 27 days

The web page https://███████/ allows for users to submit bug reports. Users are allowed to attach a file to a bug report. The extension and size of files are not validated by the web server.

Impact

An attacker can attach a malicious file to a bug report. If a support agent opened the malicious file, malware would be executed on the support agent's system.

System Host(s)

████████

Affected Product(s) and Version(s)

Version: 3.4 Build: 35 Revision: 1

CVE Numbers

Steps to Reproduce

  1. Navigate to the following web page: https://████████/
  2. Create an account
  3. Log in to the account that you created
  4. Click on the text that reads Report a Bug
  5. Enter any text in to the Description input field
  6. Attach a file with an allowed file extension to the bug report
  7. Click on the text that reads Submit
  8. Intercept the HTTP request and change the extension of the attached file to one that is not allowed

Observe that the bug report was successfully submitted. This should not be the case, as the attached file has a file extension that is not allowed. The same method can be used to attach a file whose size is greater than 5 megabytes.

Suggested Mitigation/Remediation Actions

Ensure that the extension and size of a file are validated by the web server.

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

Impact

An attacker could attach a malicious file; if a support agent opened it, malware could execute on the agent's system.

What the attacker needed

A free account; victim opens the malicious file

The fix

The server should validate the extension and size of uploaded files.

How it was found

  1. Navigate to the bug report web page.
  2. Create an account and log in.
  3. Click 'Report a Bug' and enter text in the Description field.
  4. Attach a file with an allowed extension and submit.
  5. Intercept the HTTP request and change the file extension to a disallowed one.
  6. Observe that the bug report is submitted successfully despite the disallowed extension.

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.

When you upload a file to a website, the server should check what kind of file it is and how big it is. Here, the server did not check, so someone could upload a dangerous file disguised with a different extension. If a support person later opened that file, it could run harmful software on their computer.

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.

More by b911bade858ce8e6a0f50f8

View all

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

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.