# Private draft report exposure in a program a user is added as a viewer to

Adding a user as a program viewer auto-subscribed them to draft reports, leaking draft titles, comments, and creation times via notifications and GraphQL.

- Payout: $2,500
- Severity: medium
- Program: HackerOne
- Found by: jay
- Disclosed: 2024-09-17
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/2552205
- Library page: https://bugbountylibrary.com/r/h1%3A2552205
- Tags: area:web domain:web impact:data-leak impact:internal-access kind:bounty platform:hackerone sev:medium tech:graphql vuln:access-control vuln:info-disclosure

**Target:** Program viewer subscription / draft report notifications (GraphQL)
**Root cause:** Adding a user as a program viewer incorrectly subscribes them to draft reports in that program, so they receive notifications for every comment on drafts they should not see.
**Steps:**
1. Add a user as a viewer to a program containing draft reports.
2. Post a comment on a draft report in that program.
3. Observe the viewer receives a notification for the comment.
4. Query the GraphQL response to read comment content, report title, and draft creation time.
**Exploitation:** A program viewer, who should not access draft reports, is auto-subscribed and receives notifications for every comment on drafts. Each notification plus the GraphQL response exposes comment content, report title, and draft creation time, enabling disclosure of private draft reports and comments at scale in large programs.
**Escalation:** In large programs the auto-subscription could cause mass disclosure of private draft reports and user comments.
**Insight:** Check whether role/permission changes (e.g. adding a viewer) silently create subscriptions to objects the role cannot read; notification pipelines often bypass the authorization check applied to direct reads.

