# HackerOne Code: a live password reset token reaches Datadog RUM, and the same session records the account it unlocks

Password reset token in URL query string was captured verbatim by Datadog RUM (no beforeSend redaction, sampleRate 100) and correlated to the account via shared session_id.

- Payout: $200
- Severity: low
- Program: HackerOne
- Found by: sujitjaunjal
- Disclosed: 2026-10-08
- Write-up quality: 8/10
- Original: https://hackerone.com/reports/4071670
- Library page: https://bugbountylibrary.com/r/h1%3A4071670
- Tags: area:web domain:web impact:ato impact:data-leak kind:bounty platform:hackerone sev:low tech:rest technique:incomplete-fix technique:js-analysis vuln:account-takeover vuln:info-disclosure vuln:secrets-leak

**Target:** app.pullrequest.com password-reset page / Datadog RUM browser SDK 4.14.0
**Root cause:** Reset token is passed as a bare query-string key in the reset URL, and the Datadog RUM SDK is initialised without a beforeSend callback, so view.url is recorded verbatim with sampleRate 100 on every route.
**Steps:**
1. Request password reset for controlled account on app.pullrequest.com
2. Open emailed link `https://app.pullrequest.com/password-reset?<64hex>&utm_...` without submitting
3. Observe POSTs to `rum.browser-intake-datadoghq.com/api/v2/rum` returning 202
4. In console: `window.DD_RUM.getInternalContext().view.url.includes(TOKEN)` -> true; `typeof window.DD_RUM.getInitConfiguration().beforeSend` -> "undefined"; `window.DD_RUM.getInitConfiguration().sampleRate` -> 100
5. Complete reset and sign in; confirm `session_id` unchanged and authenticated view.url contains account handle
6. Server-side confirm via RUM Explorer query `service:pullrequest   @view.url:*password-reset*`
**How found:** Prior report #4000185 fixed the Segment sink with a path-scoped addSourceMiddleware scrub; researcher reasoned the fix was sink-specific and checked whether other telemetry SDKs on the same page (Datadog RUM) had equivalent redaction, finding beforeSend absent and sampleRate 100.
**Exploitation:** Anyone with Datadog RUM read access (or an API key/integration scoped to RUM, or who later obtains either) queries stored events for password-reset URLs, extracts live tokens from view.url, and pairs them with the account handle from the same session_id. Token plus email from the correlated session unlocks the account; token is single-use but valid ~15+ minutes after issue.
**Escalation:** Correlating token view and authenticated view under one session_id supplies the email required alongside the token at POST /api/v1/password-reset, removing the token-alone mitigation.
**Insight:** When a vendor fixes a secret-in-telemetry bug by scrubbing one SDK's pipeline, enumerate every other telemetry SDK loaded on the page (RUM, Sentry, Intercom) and check each one's own redaction hook (beforeSend, beforeSendTransaction) — path-scoped middleware fixes leave sibling sinks open.

## Proof of concept (copied exactly from the original report)

**Console check that live token is in RUM view.url**

```
> const TOKEN = '<the 64 hex characters from the reset link>';
> window.DD_RUM.getInternalContext().view.url.includes(TOKEN)
true

> window.DD_RUM.getInternalContext().view.url.length
231
```

**RUM init config showing beforeSend absent, sampleRate 100**

```
> Object.keys(window.DD_RUM.getInitConfiguration())
["applicationId","clientToken","site","service","env","version","sampleRate","trackInteractions"]

> typeof window.DD_RUM.getInitConfiguration().beforeSend
"undefined"

> window.DD_RUM.getInitConfiguration().sampleRate
100
```

**Reproduction console commands for token and session**

```
window.DD_RUM.getInternalContext().view.url.includes(TOKEN)   // true
   typeof window.DD_RUM.getInitConfiguration().beforeSend        // "undefined"
   window.DD_RUM.getInitConfiguration().sampleRate               // 100
   window.DD_RUM.getInternalContext().session_id                 // note this
```

