# Team object in GraphQL disclosed private_comment

Unauthenticated GraphQL node query on SurveyRatingItem exposed private_comment and respondent username fields via inline fragment on a global ID.

- Payout: $2,500
- Severity: medium
- Program: HackerOne
- Found by: haxta4ok00
- Disclosed: 2020-09-10
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/978143
- Library page: https://bugbountylibrary.com/r/h1%3A978143
- Tags: area:web domain:api domain:web impact:data-leak impact:pii-leak kind:bounty platform:hackerone sev:medium tech:graphql technique:recon vuln:access-control vuln:info-disclosure

**Target:** GraphQL API node() resolver / SurveyRatingItem type
**Root cause:** The node(id:) interface resolver returned SurveyRatingItem objects without authorization checks, and the type exposed private_comment and respondent fields to any caller.
**Steps:**
1. POST to `https://hackerone.com/graphql` without auth
2. Send `{"query":"query { node(id: \"gid://hackerone/SurveyRatingItem/<id>\") { ... on SurveyRatingItem{_id,pentester{_id},team{_id},key,private_comment,public_comment,rating,recipient{username,email},subject{... on Report{_id}},survey_rating{_id,team{_id},state,respondent{_id,username,email,pentests{nodes{_id}}}}}}}","variables":{}}`
3. Observe `private_comment` and `respondent.username` returned for a completed survey rating
**How found:** Noticed the GraphQL node() interface exposed a SurveyRatingItem type and probed it with an inline fragment to see which fields were returned without auth.
**Exploitation:** Unauthenticated attacker enumerates SurveyRatingItem global IDs and reads private_comment plus respondent identity fields directly from the GraphQL response.
**Insight:** GraphQL node(id:) global-ID resolvers often bypass per-type authorization; enumerate every type reachable via node() with inline fragments and request sensitive fields like private_comment and nested user objects.

