Report Bulk endpoint "agree-on-going-public" action may reveal Report disclosure state for invite-only programs
The bulk endpoint accepted a cancel-disclosure-request for a report the user did not own, returning a success message even though the report was already public.
- Paid in 18 days
- Disclosed after 23 days
Hello, Hope you are doing well, SUMMARY ->In hackerone user doesn't have permission to do any action like "disclosing/undiclosing" in disclosed report. ->Here user can send the "cancel-disclosure-request" request to the server and server accepts the request gave 200ok response with "{"flash":"The request to disclose the report has been cancelled."}" ->Here server didn't validate the report ID, so that user can perform this action successfully.. ->But sadly the response was updated in disclosed report, but you can clearly see in the response "cancellation has been done " properly.
STEP TO REPRODUCE
1.Take a disclosed report in your account, 2.Basically you don't have permission to capture the "cancel-disclosure-report", 3.So that take an another report which wasn't disclosed, And now request for the disclosure and capture the request in burp repeater, 4.Now again request for "cancel-disclosure-request" and capture it send it to the repeater.. Cancel-disclosure-request POST /reports/bulk HTTP/1.1 Host: hackerone.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0 Accept: / Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://hackerone.com/bugs?subject=user&report_id=901468&view=pending_disclosure&filters%5B%5D=not-public&filters%5B%5D=going-public-user&filters%5B%5D=going-public-team&reported_to_team=&text_query=&program_states%5B%5D=2&program_states%5B%5D=3&program_states%5B%5D=4&program_states%5B%5D=5&sort_type=latest_activity&sort_direction=descending&limit=25&page=1 X-CSRF-Token: ██████ Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest Content-Length: 184 Origin: https://hackerone.com Connection: close Cookie: █████ Sec-GPC: 1
message=hi&reference=&add_reporter_to_original=true&reply_action=cancel-disclosure-request&mark_ineligible_for_bounty=false&reports_count=1&report_ids%5B%5D=1078081&bounty_currency=USD
5.Now go to repeater change the value "report_id" to already disclosed report_id, My disclosed report_id:1078081 6.And send it to the server.. as you can see server accepts the request and reuqested to cancellation of disclosure of that report. 7.So after that I've try to request for disclosure for that report, server response is report has been disclosed. 8.But when you try again for cancellation of disclosure server response is similar for older one(6th point).
Impact
-> By this user has escalated his privileges and Done some action which were not supposed to do. ->IN hacker one No one has permission to cancel the disclosure the report after disclosing it. ->But Here user bypassed it and requested for cancellation.. If I've done any mistake please be excuse my mistakes, And for better understanding I've attached Video POC and some pictures too.. Thank you. @clubbable
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
The server returned a cancellation success message for an already disclosed report, though the text does not show the disclosure state was actually changed.
What the attacker needed
A HackerOne account; a report you can request disclosure on; ability to intercept requests
How it was found
- Take a disclosed report in your account.
- Request disclosure on a second, undisclosed report and capture that request.
- Capture the cancel-disclosure-request and send it to the repeater.
- Change the report ID to the already disclosed report's ID.
- Send the request and observe the server accepting it with a cancellation message.
- Request disclosure again and note the server says the report is already disclosed, while cancellation still returns the same success message.
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 bulk report endpoint did not check that the sender owned the report being changed, and replied with a success message anyway.
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.