Skip to content
Access control Disclosed report Beginner

Able to view hackerone reports attachments

The reporter discovered that attachments from HackerOne reports, including those for non-public reports, were accessible without authentication by directly visiting a predictable URL path. An attacker could view proofs of concept for unpatched vulnerabilities, potentially enabling exploitation.

sateeshn Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 2 hours
  • Fixed in 32 days
  • Paid in 2 hours
  • Disclosed after 22 months

Summary by the program

The reporter found a way to get access to all attachments imported from HackerOne reports with our automation. This included proofs of concept for unpatched vulnerabilities and was rewarded as a critical severity finding given the possibility of leaking unpatched critical severity vulnerabilities.

Note that it is intended that https://gitlab.com/gitlab-org/gitlab/-/issues?label_name%5B%5D=HackerOne still shows many fixed vulnerabilities as well as unfixed issues that were deemed low severity enough to be made public. You can learn more about this in the Disclosure section of our bug bounty program's policy.

The report

Summary

(Hi team,

I accidentally found this bug. While reading one of hackerone public report (https://hackerone.com/reports/446238) about gitlab, I found a link posted by gitlab member which is related to internal tracking of the report. I clicked that link (https://gitlab.com/gitlab-org/gitlab-foss/-/issues/54220) and found one of the attachment. I am able to view all the attachments by directly visiting the attachment domain.)

Steps to reproduce

  1. Open https://h1.sec.gitlab.net/a/ (you will able to view all the attachments) and copy any content key
  2. Paste key infront of https://h1.sec.gitlab.net/a/ (ex: https://h1.sec.gitlab.net/a/copied_key.jpg) (you will able to view attachment)

To view nonpublic hackerone report attachment, find the hackerone report key from the above link > copy and paste infront of https://h1.sec.gitlab.net/a/

Try to view this hackerone report you will see access denied https://hackerone.com/reports/446237

but still you can able to view the report attachment by visiting https://h1.sec.gitlab.net/a/█████

Impact

As attachments consist of researcher attached POC images and videos. So attacker can directly exploit by using these information.

Attachments

gitlab-h1-attachments-poc.PNG
gitlab-h1-attachments-poc.PNG From the original on HackerOne

The original report as published on HackerOne, by sateeshn. 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 attachment storage server lacked any access control, allowing anyone to list and retrieve files by their keys.

Impact

An attacker could view proofs of concept for unpatched vulnerabilities, potentially enabling exploitation.

What the attacker needed

No authentication required; knowledge of attachment keys

How it was found

  1. Open the attachment directory URL to list all attachments.
  2. Copy any content key from the listing.
  3. Append the key to the directory URL to view the attachment.
  4. Find a HackerOne report key from a public issue link and use it to access non-public report attachments.

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 company stored files from bug reports on a web server without checking who was asking for them. Anyone who guessed or found a file name could open it, even if the original report was private. This exposed secret proof-of-concept files that could show how to break the software.

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 sateeshn

View all

1 more disclosed report, best first.

More from GitLab

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.