Attachment disclosure via summary report
An Insecure Direct Object Reference (IDOR) in HackerOne's report summary editing allowed an attacker to change an attachment ID to that of another user and view the file in the markdown preview. This could expose sensitive proof-of-concept files belonging to other users.
- Triaged in 4 days
- Fixed in 5 days
- Paid in 5 days
- Disclosed after 29 days
Summary by the program
A critical vulnerability was discovered in the HackerOne platform that allowed an attacker to gain unauthorized access to attachments belonging to other users through the report summary editing functionality. By manipulating attachment IDs in the request, an attacker could view sensitive files that should have been restricted. The core issue was an Insecure Direct Object Reference (IDOR) vulnerability (CWE-639) where attachment access was not properly validated across user accounts when editing summary reports. This posed a serious risk to the confidentiality of user data and could lead to disclosure of sensitive attack details and exploitation information and also loss of it.
Fortunately, this vulnerability was responsibly disclosed through our bug bounty program and remediated before it could be maliciously exploited or cause any data exposure.
Upon validation, the HackerOne team promptly implemented a fix to correctly validate attachment IDs and prevent unauthorized cross-user access via summary report editing.
HackerOne maintains a strong commitment to security and transparency. We are grateful to the ethical hacker community for their invaluable contributions in identifying vulnerabilities before malicious exploitation can occur.
Summary by the researcher
Here if you want to read the story behind me finding this vulnerability!
ID: https://blog.tegalsec.org/hackerone-got-hacked-how-can-i-steal-your-poc EN: https://medium.com/@kresec/hackerone-got-hacked-how-can-i-steal-your-poc-01a9132c5aeb
Writeups are very useful for bug hunters for learning / reference material. For developers: it is useful to make secure applications earlier by learning from bug hunter findings, even though you have tried but the application is getting bigger, more routes, you may miss it.
.
The report
Summary:
Hackerone provides a form for reporting vulnerabilities to various programs. where the form supports uploading files & previews (images or videos) but is not allowed to use file ids belonging to other accounts. but with the sumary report feature I as a hacker can reveal files belonging to other users just changing the id. this is very severe.
Description:
I have tried to call files belonging to other accounts through the submit report, edit report form but it doesn't work it always gets the response "was_successful":false,. but fortunately I can find another endpoint that is able to read files belonging to other accounts, namely in the sumary report feature.
Steps To Reproduce
If you look at the video I attached, there I made the scenario "failed to read other account files" & "successfully read other account files" as for the steps as follows: note : left victim right attacker
- the attacker creates a report either draft or existing, then creates a Hacker summary
- then edit the summary and give the file to.
- intercept with intercept change the attacker file id to the victim file id
- boom file read in markdown preview.
POC
I don't know, uploading large files takes too long in attacth, I just put the poc via yt. : https://████ (private video) or in gdrive, if yt can't be seen yet : https://███████
Optional: Supporting Material/References (Screenshots)
####raw text in video :
attachment leaked via add sumary report :
victim file id :
3155239
I WILL CHANGE F3155244 TO 3155239
ATTACKER file :
3155241
3155242
"was_successful":true, (IF FILE FROM ATTACKER) I WILL CHANGE TO VICTIM FILE
"was_successful":false, WILL FALSE
trying leak via content : false positive
leak via sumary : successful
endpoint affected (attachment_ids)
PUT /reports/████/summaries/███████ HTTP/2
Host: hackerone.com
.....all header ...
Content-Length: 908
Origin: https://hackerone.com
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Te: trailers
{"id":████████,"category":"researcher","content":"TESTEDIT\n\n ","updated_at":"2024-03-30T17:16:29.625Z","user":{"id":█████,"username":"█████","name":"██████████████","bio":"please see pdfx","cleared":false,"verified":false,"website":null,"location":"","created_at":"2024-03-29T11:27:50.077Z","url":"https://hackerone.com/██████████","hackerone_triager":false,"hackerone_employee":false,"user_type":"hacker","profile_picture_urls":{"small":"/assets/avatars/default-█████.png","medium":"/assets/avatars/default-███████.png","xtralarge":"/assets/avatars/default-███████.png"}},"can_view?":true,"can_create?":true,"attachments":[],"action_type":"publish","attachment_ids":[
3155239]}
Impact
This is very bad especially the id form is only numeric in order. I can just add all the file ids of the hackerone account. I can see other people's pocs if it's a video.
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 summary report endpoint accepted arbitrary attachment IDs without verifying that the attachment belonged to the requesting user.
Impact
An attacker could view other users' attachments, potentially disclosing sensitive proof-of-concept files, though the report notes the issue was fixed before malicious exploitation.
What the attacker needed
A HackerOne account; ability to create or edit a report summary; knowledge of a victim's attachment ID
The fix
The endpoint was fixed to correctly validate attachment IDs and prevent cross-user access.
How it was found
- The attacker creates a report and a Hacker summary.
- The attacker edits the summary and adds a file.
- The attacker intercepts the request and changes the attacker's file ID to the victim's file ID.
- The file is read in the markdown preview.
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, it gets a unique number (ID). The website should check that you own that file before showing it to you. Here, the summary editing feature did not check ownership, so changing the number let someone see another person's uploaded file.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.