# HackerOne Code sends live password-reset tokens to Segment in automatic page events

HackerOne Code's password-reset page auto-sent the live 64-char reset token to Segment via analytics.page(), leaking valid credentials to telemetry.

- Payout: $200
- Severity: low
- Program: HackerOne
- Found by: 1rhino2
- Disclosed: 2026-09-24
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/4000185
- Library page: https://bugbountylibrary.com/r/h1%3A4000185
- Tags: area:web domain:web impact:ato impact:data-leak kind:bounty platform:hackerone sev:low tech:payment technique:js-analysis vuln:info-disclosure vuln:secrets-leak

**Target:** Password-reset page analytics (Segment page event)
**Root cause:** Client calls analytics.page() on the reset page without stripping the secret-bearing query parameter, so the token lands in context.page.search/url and properties.search/url.
**Steps:**
1. Open reset link in persistent profile with proxy; set `X-Bug-Bounty: HackerOne-1rhino2`
2. Complete one reset, record Segment identify event with email, user ID, anonymousId
3. Request new reset link, open it without submitting
4. Inspect automatic Segment page event: full token in `context.page.search`, `context.page.url`, `properties.search`, `properties.url`; anonymousId matches prior identify
5. Submit reset: HTTP 200; old password 401; new password 200
6. Control: open `/password-reset` without query in fresh profile — page event sent but search fields empty
**How found:** Noticed the reset token is a query parameter and that the page fires an automatic analytics event on load; hypothesized the client would forward the full URL/query to Segment, then verified with fresh tokens and a queryless control.
**Exploitation:** Anyone with timely read access to the Segment source debugger or a downstream destination receiving both the identify and page events could join the token to the account email/user ID and reset the password within the token validity window.
**Insight:** On any password-reset or magic-link page, check whether client analytics (Segment, GA, etc.) fires on load and forwards `location.search`/URL — the token leaks before the form is even submitted; correlate anonymousId across identify and page events to link token to account.

