HackerOne Code: a live password reset token reaches Datadog RUM, and the same session records the account it unlocks
The reset page put the live token in the URL query string, and the Datadog RUM SDK had no beforeSend redaction, so the full URL was sent to Datadog on page load. Anyone able to read that RUM stream could obtain a live reset token together with the account handle recorded in the same session.
Originally disclosed on HackerOne
- Triaged in 2 days
- Fixed in 7 days
- Paid in 2 days
- Disclosed after 8 days
Asset URL
Summary
Opening a password reset link on app.pullrequest.com sends the complete, unused, 64 character
reset token to Datadog, before the reset form is submitted. The link carries the token as a bare
query string key, and the Datadog RUM browser SDK on that page records view.url verbatim.
The SDK is initialised with no beforeSend callback. The key is absent from the configuration
entirely, so no URL redaction is performed on any route. sampleRate is 100, so this is not a
sampled subset. Every reset performed by every user of this application is recorded.
Three things make this more than a secret written to a log.
- The token is live when it is transmitted. It is sent on page load, before the user submits the form, and the form renders normally at that point.
- The same RUM session records the account the token unlocks. The authenticated route places the
account handle in the URL path, and RUM groups both views under one
session_id. The reset endpoint requires token and email together, and that pairing is the thing this session supplies. - The defect is the RUM configuration, not the reset page. Any secret placed in any URL in this application is recorded the same way.
This is the same issue as #4000185, on a sink that fix did not cover
Report #4000185, "HackerOne Code sends live password-reset tokens to Segment in automatic page events", was filed against this same asset, triaged, fixed, and resolved at Low with a $200 bounty. It was disclosed on 24 September 2026. The mechanism there was the same one described here: opening the reset link put the live token into automatic page telemetry before the form was submitted.
The retest on that report records the fix that shipped:
The client now registers a Segment source middleware (
analytics.addSourceMiddleware) that runs on every event before send and scrubscontext.pageandproperties: on the/password-resetand/forgot-passwordpaths it strips the query string and fragment fromurlandreferrer(via a URL rewrite) and blanks thesearchfield.
analytics.addSourceMiddleware is a Segment API. It runs inside Segment's own event pipeline and
has no effect on any other SDK. Datadog RUM is a separate library with a separate transport and its
own redaction hook, beforeSend, which is not set. The fix is therefore sink specific by
construction, and path specific on top of that.
The retest on #4000185 establishes that the Segment half is closed, and my own observation is
consistent with it rather than a second confirmation of it: over the observation window this page
issued no request to api.segment.io, none to Intercom and none to Sentry, although analytics.js
is still loaded and initialised. Of the telemetry recipients this page loads, Datadog RUM was the
only one that received a request while the token was in the URL.
The Segment sink was closed. The same token still reaches Datadog.
Affected components
| Item | Value |
|---|---|
| Page | app.pullrequest.com/password-reset |
| Reset endpoint | POST /api/v1/password-reset, fields token, email, password |
| Telemetry SDK | Datadog RUM browser SDK 4.14.0 |
| RUM application | ████████ |
| Intake | rum.browser-intake-datadoghq.com/api/v2/rum |
| Tags | service:pullrequest, env:production |
The configuration
What the SDK does when it is not told otherwise
The RUM browser SDK records the full current URL into view.url on every view, query string
included. A beforeSend callback is the supported place to redact that field. Datadog's default
retention for RUM events is 30 days.
What this application configured
> 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
beforeSend is not set to a permissive value. It is not present. There is no redaction path on any
route, and nothing is sampled out.
The baseline this is measured against
The reset link issued to an account I control had this shape. The token is the bare key, with no value, ahead of the campaign parameters.
https://app.pullrequest.com/password-reset?<64 hex characters>&utm_swu=547&utm_source=account%20action%20emails&utm_campaign=Reset%20Password%20...&utm_medium=email
At the moment of every reading below, the form had not been submitted. The page rendered the Email Address, New Password and Confirm New Password fields normally, so the token was live and unused.
What came back, measured in the browser
1. The token is inside the field the SDK serialises
> 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
2. The SDK is transmitting, and the intake is accepting
POST https://rum.browser-intake-datadoghq.com/api/v2/rum
?ddsource=browser&ddtags=sdk_version:4.14.0,env:production,service:pullrequest...
&batch_time=1790747851585
-> HTTP 202
POST https://rum.browser-intake-datadoghq.com/api/v2/rum
...&batch_time=1790747881586
-> HTTP 202
Batches repeat at roughly 30 second intervals while the view is active. Wrapping
navigator.sendBeacon on an authenticated route captured a body of 863 bytes containing "url"
fields.
3. The same session records the account the token unlocks
view 1 /password-reset?<live token> session_id ████████...
view 2 /dash/scans/1/<account handle> session_id ████████...
The reset endpoint requires token and email. A token alone is not directly usable, and that is
the mitigation this finding removes. View 2 puts the account handle in the URL path and RUM files it
under the same session as view 1. A filter on one session_id returns the credential and the account
together.
4. The capture is global, not a property of the reset page
Demonstrated on an authenticated route with a dummy marker. No secret was used and no request was issued. The original URL was restored immediately.
> history.pushState({}, '', location.pathname + '?demo_param=' + MARK);
rum_tracked_the_spa_route_change true
RUM_CAPTURED_ARBITRARY_QUERY_VALUE true
session_id unchanged
5. Tokens are single use, and I measured that rather than assuming it
Submitting a consumed token to POST /api/v1/password-reset returns HTTP 422. The page still
renders for a consumed token, because the form is client side, and the rejection happens on
submission. A token was confirmed still valid roughly 15 minutes after issue. That is a measured
lower bound and not the time to live, which I did not determine.
6. What this cannot do
This does not read a session or bearer credential. Authenticated API requests on this application
carry their bearer token in a request header, not in a URL, so nothing in that path is recorded by
this mechanism. I did not find an authorisation code in a captured URL either. The OAuth callback at
/oauth/callback answers with a server side 302, so no page script runs on the code bearing URL.
This report is the reset token, the account correlation, and the configuration that produces both.
Scope of this report
I hold no access to the Datadog organisation for service:pullrequest, so I can show the client side
only. Everything above was read from the live page. The stored event is confirmable by the program in
one query, in Datadog, RUM, Explorer:
service:pullrequest @view.url:*password-reset*
Each event returned carries a real user's reset token in view.url. The same query sizes how many
tokens are already held and which of them are still inside their validity window.
Severity
Who the attacker is here, before anything else
The reader of this data is whoever holds RUM read access on the Datadog organisation, together with any API key or integration scoped to read RUM, and anyone who later obtains either. That population is normally much wider than the set of people entitled to handle account recovery material for customers, and it is not governed by the application's own authorisation model.
The token is a bearer credential. Whoever reads it can use it with no further authentication, no password, and no second factor. Nobody here is recovering their own account.
The band
The published table for app.pullrequest.com is $200 at Low and $1,000 at Medium. #4000185 was
resolved at Low, and its reporter rated it Low for a reason that applies here too: exploitation
needs access to the telemetry during the token's validity window. I am not going to argue that
point away.
I am asking for Medium on one difference, and I will state plainly what is not a difference.
Not a difference. #4000185 also correlated the token to an account, through an anonymousId
already tied to the account email and user ID. That correlation was at least as strong as the
session_id correlation in this report. Coverage is not a difference either; Segment page events
fired for every user, as RUM does here.
The difference. #4000185 was one analytics.page() call that failed to strip a secret, and it
was fixed by scrubbing two named paths inside one vendor's pipeline. This report is not a call
site. beforeSend is absent from the RUM initialisation entirely, so there is no redaction path on
any route, for any parameter, for any sink that SDK feeds. Section 4 above shows an arbitrary query
value on an unrelated authenticated route being recorded the same way. The reset token is the
instance I can demonstrate with a real credential. It is not the boundary of the defect.
That is why the remediation here is different in kind from the last one. A path-scoped scrub of the
RUM view.url would close this report and leave the cause in place for the next parameter that
carries a secret, exactly as the Segment middleware closed #4000185 and left this one open.
CVSS
This program's form offers CVSS 4.0 or a manual rating, so I have set the report to Medium
manually. I did not submit a 4.0 vector because that scale turns heavily on Privileges Required,
and scoring PR:High for "the reader needs Datadog access" measures the wrong thing here. The
population holding that access is not governed by this application's authorisation model, and the
token needs nothing further to use once read.
For reference, CVSS 3.1 AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N scores 5.9, Medium. I offer either
number as support rather than as the argument. The argument is the three facts above.
Suggested fix
- Take the token out of the URL. Accept it in the POST body, or exchange it server side on first
load for a short lived cookie and redirect to a clean path. This closes RUM, analytics,
Referer, browser history and any CDN or proxy log in one change, rather than one sink at a time. One sink at a time is what left this open after the Segment fix. - Until then, set
beforeSendon the RUM SDK to strip query strings. Given that the field is absent rather than misconfigured, prefer stripping by default and allowing known safe parameters through. - Purge stored RUM events matching
@view.url:*password-reset*, and treat any token still inside its validity window as exposed. - Consider a shorter time to live on reset tokens. Single use invalidation is already implemented and verified working, so it does not need revisiting.
- Set an explicit restrictive
Referrer-Policyon credential bearing pages. Current browser defaults already limit cross originReferer, so this is hardening.
Steps To Reproduce
-
Request a password reset for an account you control on
app.pullrequest.com. -
Open the emailed link. Do not submit the form.
-
Observe POSTs to
rum.browser-intake-datadoghq.com/api/v2/rumwithservice:pullrequest, answered with HTTP 202. -
In the console, with
TOKENset to the 64 hex characters from the link: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 -
Complete the reset and sign in. Read
session_idagain on an authenticated page. It is unchanged, and that view'sview.urlcontains the account handle. -
Confirm server side with the RUM Explorer query in Scope of this report.
verify.js in the attached rum-token-poc.zip performs steps 4 and 5 and prints a table.
Supporting Material/References
rum-token-poc.zip
verify.js, console script for the checks above, reads SDK state only and sends nothingglobal-capture.js, shows URL capture on any route using a dummy markerreplay-token.sh, checks that a consumed token is refused, expected 422
rum-token-evidence.zip
01-rum-init-configuration.txt, full SDK configuration,beforeSendabsent,sampleRate10002-token-in-view-url.txt, the live token inside the serialised field03-intake-transmission.txt, accepted intake POSTs and a captured beacon body04-session-correlation.txt, onesession_idacross the token view and the authenticated view05-capture-is-global.txt, capture on an unrelated route with a dummy marker06-server-side-verification.txt, the single query that confirms the chain in Datadog07-token-single-use.txt, the 422 on replay and what it bounds08-prior-report-and-fix-scope.txt, why the fix for #4000185 cannot reach the Datadog sink
Testing notes. All readings were taken on accounts controlled by me. No customer data and no third
party program data was accessed. Header X-Bug-Bounty: HackerOne-sujitjaunjal was sent on direct HTTP
testing traffic. Accounts used: sujitjaunjal and ████████. The account used on
app.pullrequest.com was ████████.
Impact
Anyone able to read the RUM stream for service:pullrequest obtains a live account recovery token
together with the identity of the account it belongs to, for any user of HackerOne Code who resets a
password and does not immediately complete the flow. The token is a bearer credential and needs no
further authentication to use.
The realistic case is the abandoned reset. A user who opens the link and does not finish, because they were interrupted, opened it on the wrong device, or remembered the password, leaves a valid token in third party telemetry until it expires. Nothing marks it as spent, and the user has no signal that the token was ever exposed.
Underneath the reset flow, the configuration itself is the finding. beforeSend is absent and
sampleRate is 100, so every URL in this application, on every route, is recorded into a third party
platform that is not built to hold secrets and that carries its own access control, retention and
export surface.
Context
HackerOne Code is served at https://app.pullrequest.com. The feature at the centre of this report is the password reset flow: a user requests a reset, receives an emailed link, opens it, and lands on /password-reset with a form asking for Email Address, New Password and Confirm New Password. The reset itself is submitted to POST /api/v1/password-reset with the fields token, email and password.
A link issued to an account the researcher controlled had this shape:
https://app.pullrequest.com/password-reset?<64 hex characters>&utm_swu=547&utm_source=account%20action%20emails&utm_campaign=Reset%20Password%20...&utm_medium=email
The page loads the Datadog RUM browser SDK, version 4.14.0, configured for the RUM application ████████, with tags service:pullrequest and env:production, sending to the intake rum.browser-intake-datadoghq.com/api/v2/rum.
Setup
All readings were taken on accounts controlled by the researcher. No customer data and no third party program data was accessed. Direct HTTP testing traffic carried the header X-Bug-Bounty: HackerOne-sujitjaunjal. The accounts used were sujitjaunjal and ████████; the account used on app.pullrequest.com was ████████.
The researcher holds no access to the Datadog organisation for service:pullrequest, so everything demonstrated is client side, read from the live page. The stored event is confirmable by the program with a single query in Datadog RUM Explorer.
Supporting material attached to the report:
rum-token-poc.zip
verify.js, console script for the checks below, reads SDK state only and sends nothingglobal-capture.js, shows URL capture on any route using a dummy markerreplay-token.sh, checks that a consumed token is refused, expected 422
rum-token-evidence.zip
01-rum-init-configuration.txt, full SDK configuration,beforeSendabsent,sampleRate10002-token-in-view-url.txt, the live token inside the serialised field03-intake-transmission.txt, accepted intake POSTs and a captured beacon body04-session-correlation.txt, onesession_idacross the token view and the authenticated view05-capture-is-global.txt, capture on an unrelated route with a dummy marker06-server-side-verification.txt, the single query that confirms the chain in Datadog07-token-single-use.txt, the 422 on replay and what it bounds08-prior-report-and-fix-scope.txt, why the fix for #4000185 cannot reach the Datadog sink
Finding it
Opening a password reset link on app.pullrequest.com sends the complete, unused, 64 character reset token to Datadog before the reset form is submitted. The link carries the token as a bare query string key, and the Datadog RUM browser SDK on that page records view.url verbatim.
The SDK is initialised with no beforeSend callback. The key is absent from the configuration entirely, so no URL redaction is performed on any route. sampleRate is 100, so this is not a sampled subset: every reset performed by every user of the application is recorded.
Three properties make this more than a secret written to a log:
- The token is live when it is transmitted. It is sent on page load, before the user submits the form, and the form renders normally at that point.
- The same RUM session records the account the token unlocks. The authenticated route places the account handle in the URL path, and RUM groups both views under one
session_id. The reset endpoint requires token and email together, and that pairing is the thing this session supplies. - The defect is the RUM configuration, not the reset page. Any secret placed in any URL in this application is recorded the same way.
The researcher also identified this as the same issue as report #4000185, "HackerOne Code sends live password-reset tokens to Segment in automatic page events", filed against the same asset, triaged, fixed and resolved at Low with a $200 bounty, disclosed on 24 September 2026. The mechanism there was the same: opening the reset link put the live token into automatic page telemetry before the form was submitted.
The retest on that report records the fix that shipped:
The client now registers a Segment source middleware (
analytics.addSourceMiddleware) that runs on every event before send and scrubscontext.pageandproperties: on the/password-resetand/forgot-passwordpaths it strips the query string and fragment fromurlandreferrer(via a URL rewrite) and blanks thesearchfield.
analytics.addSourceMiddleware is a Segment API. It runs inside Segment's own event pipeline and has no effect on any other SDK. Datadog RUM is a separate library with a separate transport and its own redaction hook, beforeSend, which is not set. The fix is therefore sink specific by construction, and path specific on top of that.
The retest on #4000185 establishes that the Segment half is closed. The researcher's own observation is consistent with it rather than a second confirmation: over the observation window this page issued no request to api.segment.io, none to Intercom and none to Sentry, although analytics.js is still loaded and initialised. Of the telemetry recipients this page loads, Datadog RUM was the only one that received a request while the token was in the URL.
Exploitation
Step 1: request a reset and open the link without submitting
Request a password reset for an account you control on app.pullrequest.com, then open the emailed link. Do not submit the form. The page renders the Email Address, New Password and Confirm New Password fields normally, so the token is live and unused at every reading below.
Step 2: confirm the token sits inside the field the SDK serialises
> 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
getInternalContext() exposes the SDK's current view state, and view.url is the field the SDK serialises into RUM events. The token is present in it, and the full URL is 231 characters long.
Step 3: confirm the SDK is transmitting and the intake is accepting
POST https://rum.browser-intake-datadoghq.com/api/v2/rum
?ddsource=browser&ddtags=sdk_version:4.14.0,env:production,service:pullrequest...
&batch_time=1790747851585
-> HTTP 202
POST https://rum.browser-intake-datadoghq.com/api/v2/rum
...&batch_time=1790747881586
-> HTTP 202
Batches repeat at roughly 30 second intervals while the view is active, and the intake answers HTTP 202. Wrapping navigator.sendBeacon on an authenticated route captured a body of 863 bytes containing "url" fields.
Step 4: confirm the same session records the account the token unlocks
view 1 /password-reset?<live token> session_id ████████...
view 2 /dash/scans/1/<account handle> session_id ████████...
The reset endpoint requires token and email. A token alone is not directly usable, and that is the mitigation this finding removes. View 2 puts the account handle in the URL path and RUM files it under the same session as view 1. A filter on one session_id returns the credential and the account together.
Step 5: show the capture is global, not a property of the reset page
Demonstrated on an authenticated route with a dummy marker. No secret was used and no request was issued. The original URL was restored immediately.
> history.pushState({}, '', location.pathname + '?demo_param=' + MARK);
rum_tracked_the_spa_route_change true
RUM_CAPTURED_ARBITRARY_QUERY_VALUE true
session_id unchanged
The arbitrary query value was captured and the session_id stayed unchanged.
Step 6: measure single use rather than assume it
Submitting a consumed token to POST /api/v1/password-reset returns HTTP 422. The page still renders for a consumed token, because the form is client side, and the rejection happens on submission. A token was confirmed still valid roughly 15 minutes after issue. That is a measured lower bound and not the time to live, which the researcher did not determine.
Step 7: establish what this cannot do
This does not read a session or bearer credential. Authenticated API requests on this application carry their bearer token in a request header, not in a URL, so nothing in that path is recorded by this mechanism. The researcher did not find an authorisation code in a captured URL either. The OAuth callback at /oauth/callback answers with a server side 302, so no page script runs on the code bearing URL.
The report is the reset token, the account correlation, and the configuration that produces both.
Step 8: confirm server side
The stored event is confirmable by the program in one query, in Datadog, RUM, Explorer:
service:pullrequest @view.url:*password-reset*
Each event returned carries a real user's reset token in view.url. The same query sizes how many tokens are already held and which of them are still inside their validity window.
Root cause
The RUM browser SDK records the full current URL into view.url on every view, query string included. A beforeSend callback is the supported place to redact that field. Datadog's default retention for RUM events is 30 days.
The application's initialisation was inspected directly:
> 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
beforeSend is not set to a permissive value. It is not present. There is no redaction path on any route, and nothing is sampled out.
The earlier fix did not stop this because it was sink specific and path specific, and had no effect on Datadog RUM. The Segment source middleware strips the query string and fragment from url and referrer and blanks search on two named paths, and has no effect on Datadog RUM, which has its own transport and its own redaction hook. The fix is sink specific by construction, and path specific on top of that.
Impact
Anyone able to read the RUM stream for service:pullrequest obtains a live account recovery token together with the identity of the account it belongs to, for any user of HackerOne Code who resets a password and does not immediately complete the flow. The token is a bearer credential and needs no further authentication to use.
The reader of this data is whoever holds RUM read access on the Datadog organisation, together with any API key or integration scoped to read RUM, and anyone who later obtains either. That population is normally much wider than the set of people entitled to handle account recovery material for customers, and it is not governed by the application's own authorisation model. Whoever reads the token can use it with no further authentication, no password and no second factor. Nobody here is recovering their own account.
The realistic case is the abandoned reset. A user who opens the link and does not finish, because they were interrupted, opened it on the wrong device, or remembered the password, leaves a valid token in third party telemetry until it expires. Nothing marks it as spent, and the user has no signal that the token was ever exposed.
Underneath the reset flow, the configuration itself is the finding. beforeSend is absent and sampleRate is 100, so every URL in this application, on every route, is recorded into a third party platform that is not built to hold secrets and that carries its own access control, retention and export surface.
On severity: the published table for app.pullrequest.com is $200 at Low and $1,000 at Medium. #4000185 was resolved at Low, and its reporter rated it Low because exploitation needs access to the telemetry during the token's validity window. The researcher did not argue that point away and asked for Medium on one difference, stating plainly what is not a difference.
Not a difference: #4000185 also correlated the token to an account, through an anonymousId already tied to the account email and user ID, a correlation at least as strong as the session_id correlation here. Coverage is not a difference either; Segment page events fired for every user, as RUM does here.
The difference: #4000185 was one analytics.page() call that failed to strip a secret, fixed by scrubbing two named paths inside one vendor's pipeline. This report is not a call site. beforeSend is absent from the RUM initialisation entirely, so there is no redaction path on any route, for any parameter, for any sink that SDK feeds. The reset token is the instance demonstrable with a real credential; it is not the boundary of the defect.
On CVSS: the program's form offers CVSS 4.0 or a manual rating, so the report was set to Medium manually. No 4.0 vector was submitted because that scale turns heavily on Privileges Required, and scoring PR:High for "the reader needs Datadog access" measures the wrong thing here. For reference, CVSS 3.1 AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N scores 5.9, Medium, offered as support rather than as the argument.
Fix
The suggested remediation, in the researcher's order:
- Take the token out of the URL. Accept it in the POST body, or exchange it server side on first load for a short lived cookie and redirect to a clean path. This closes RUM, analytics,
Referer, browser history and any CDN or proxy log in one change, rather than one sink at a time. One sink at a time is what left this open after the Segment fix. - Until then, set
beforeSendon the RUM SDK to strip query strings. Given that the field is absent rather than misconfigured, prefer stripping by default and allowing known safe parameters through. - Purge stored RUM events matching
@view.url:*password-reset*, and treat any token still inside its validity window as exposed. - Consider a shorter time to live on reset tokens. Single use invalidation is already implemented and verified working, so it does not need revisiting.
- Set an explicit restrictive
Referrer-Policyon credential bearing pages. Current browser defaults already limit cross originReferer, so this is hardening.
A path-scoped scrub of the RUM view.url would close this report and leave the cause in place for the next parameter that carries a secret, exactly as the Segment middleware closed #4000185 and left this one open.
Variants to test
- Other telemetry SDKs loaded on credential bearing pages. Check whether each has its own redaction hook configured, and whether the hook is absent rather than permissive.
- Other routes that put secrets in the URL: invitation links, email verification, magic sign-in, share links, OAuth callbacks that render client side. A positive result is the secret appearing in a captured URL on a route the earlier fix never named.
- Sink-specific fixes applied to one vendor. After a fix is announced for one analytics provider, check every other provider the page loads. A positive result is a request to a second intake while the secret is in the URL, as the intake POSTs answered HTTP 202 here.
- Session correlation across the credential view and an authenticated view. A positive result is one
session_idcovering both, with the account handle in the authenticated view's URL path. - Single use enforcement. Replay a consumed token against the reset endpoint. A positive result is a rejection such as the HTTP 422 seen here, which bounds but does not eliminate the exposure window.
- Sampling configuration. Check
sampleRateon the SDK. A value of 100 means every user's flow is recorded, not a subset.
Hunting notes
Password reset, email verification and invitation flows are the usual carriers, because the token has to reach a page the user opens from an email.
The configuration check is quick and decisive: enumerate the SDK's init configuration and look for the redaction hook. Here Object.keys(window.DD_RUM.getInitConfiguration()) showed no beforeSend key at all, and typeof ...beforeSend returned "undefined". An absent hook is a stronger finding than a misconfigured one, because it means no route is covered.
A prior fix on the same asset is worth reading closely. The retest text on #4000185 named the exact API used (analytics.addSourceMiddleware) and the exact paths scrubbed (/password-reset and /forgot-password). Checking which intakes actually receive requests while the token is in the URL narrowed it to Datadog RUM.
it proved the token was live and unused at transmission time by leaving the form unsubmitted; it proved the same session_id covered the token view and an authenticated view containing the account handle, supplying the token and email pairing the endpoint requires; it showed the capture was global with a dummy marker on an unrelated route, so the defect was the configuration and not the page; and it gave the program a single Datadog query to confirm the stored events and size the exposure. It also measured single use (HTTP 422 on replay) and stated the limits: no session or bearer credential is read, and no authorisation code appears in a captured URL because the OAuth callback answers with a server side 302.
What happened, in plain words
HackerOne Code is a website served at https://app.pullrequest.com. It has a password reset feature: you click "forgot password", you get an email with a link, you open the link, and you land on a page with a form asking for your Email Address, New Password and Confirm New Password. When you submit that form, the reset is sent to POST /api/v1/password-reset with the fields token, email and password.
A token here is a long random string that acts like a temporary key. The email link contains it so the site knows the person opening the link is the person who asked for the reset. Think of it as a claim ticket at a cloakroom: whoever holds the ticket gets the coat, no questions asked.
The problem: the moment you open the link, before you type anything, the page sends that live, unused token to a third party analytics service called Datadog. Datadog's RUM (Real User Monitoring) software records the full address of every page a visitor views, including everything after the ? sign. The reset token sits in that part of the address.
Worse, the same Datadog session also records the page you land on after you log in, and that page's address contains your account name. So one search in Datadog returns both the key and the name of the account it opens.
This is not a one-off mistake on the reset page. The Datadog software was set up without the one setting that would let the site hide sensitive parts of addresses. That setting is simply missing, and the software is configured to record 100% of visits, not a sample. So any secret that ever appears in any address on this site is recorded the same way.
An earlier report, #4000185, found the same token leaking to a different analytics company called Segment. That was fixed for Segment on two specific paths. The fix had no effect on Datadog RUM, so the same token still reaches Datadog.
Context
Let us set the scene before the technical detail.
What is an API? An API (Application Programming Interface) is the set of addresses a website's own pages use to talk to its servers behind the scenes. When you fill in a form and press a button, your browser usually sends a request to an API address, and the server replies with a result. You never see this in the address bar, but it happens on every modern site.
What is a query string? Look at any web address. Everything after a ? is called the query string. It is a list of key and value pairs separated by &. For example, ?colour=blue&size=large tells the page two things: colour is blue, size is large. Query strings are visible in the address bar, in browser history, in server logs, and to any script running on the page.
What is a token? A token is a random string that proves you are allowed to do something. A password reset token proves you asked to reset a particular account's password. It is a bearer credential: whoever holds it can use it, like a bearer bond or a cloakroom ticket. No extra password or second factor is needed.
The feature at the centre of this report is the password reset flow. A user requests a reset, receives an emailed link, opens it, and lands on /password-reset with a form asking for Email Address, New Password and Confirm New Password. The reset itself is submitted to POST /api/v1/password-reset with the fields token, email and password.
The reset link carries the token as a bare query string key, with no value, ahead of campaign parameters. A link issued to an account the researcher controlled had this shape:
https://app.pullrequest.com/password-reset?<64 hex characters>&utm_swu=547&utm_source=account%20action%20emails&utm_campaign=Reset%20Password%20...&utm_medium=email
Line by line:
https://app.pullrequest.com/password-resetis the page you land on.?starts the query string.<64 hex characters>is the token itself. It is a bare key with no=and no value after it. It is a bare key with no value after it.&utm_swu=547,&utm_source=account%20action%20emails,&utm_campaign=Reset%20Password%20...and&utm_medium=emailare marketing tracking parameters. They tell the site which email campaign brought you here. They are harmless on their own, but they sit in the same address as the secret.
The page loads the Datadog RUM browser SDK, version 4.14.0, configured for the RUM application ████████, with tags service:pullrequest and env:production, sending to the intake rum.browser-intake-datadoghq.com/api/v2/rum.
What is an SDK? A Software Development Kit is a bundle of code a company adds to its website to get some feature. The Datadog RUM SDK is a small program that runs in every visitor's browser and reports back what the visitor does: which pages they view, how long they stay, what errors happen.
What is an intake? The intake is the address the SDK sends its reports to. Here it is rum.browser-intake-datadoghq.com/api/v2/rum. Think of it as the postbox where the shop assistant drops their notes.
Setup
All readings were taken on accounts controlled by the researcher. No customer data and no third party program data was accessed. Direct HTTP testing traffic carried the header X-Bug-Bounty: HackerOne-sujitjaunjal. The accounts used were sujitjaunjal and ████████; the account used on app.pullrequest.com was ████████.
What is a header? When a browser sends a request to a server, it attaches extra lines of information called headers. They say things like what browser you use, what language you prefer, and so on. The X-Bug-Bounty header here is a custom label the researcher added so the site's owners could tell this traffic apart from real users. It is a courtesy marker, not a secret.
The researcher holds no access to the Datadog organisation for service:pullrequest, so everything demonstrated is client side, read from the live page. The stored event is confirmable by the program with a single query in Datadog RUM Explorer.
What does client side mean? Client side means everything that happens inside your browser. Server side means everything that happens on the company's computers. The researcher could only see what their own browser was doing and sending. They could not log into Datadog and look at the stored data, because they had no account there. That is why the report gives the program a query to run themselves.
Supporting material attached to the report:
rum-token-poc.zip
verify.js, console script for the checks below, reads SDK state only and sends nothingglobal-capture.js, shows URL capture on any route using a dummy markerreplay-token.sh, checks that a consumed token is refused, expected 422
rum-token-evidence.zip
01-rum-init-configuration.txt, full SDK configuration,beforeSendabsent,sampleRate10002-token-in-view-url.txt, the live token inside the serialised field03-intake-transmission.txt, accepted intake POSTs and a captured beacon body04-session-correlation.txt, onesession_idacross the token view and the authenticated view05-capture-is-global.txt, capture on an unrelated route with a dummy marker06-server-side-verification.txt, the single query that confirms the chain in Datadog07-token-single-use.txt, the 422 on replay and what it bounds08-prior-report-and-fix-scope.txt, why the fix for #4000185 cannot reach the Datadog sink
What is a console script? Every browser has a developer console, a panel where you can type commands and see what the page is doing. A console script is a short set of commands you paste there. verify.js only reads what the Datadog SDK already knows; it does not send anything new.
Finding it
Opening a password reset link on app.pullrequest.com sends the complete, unused, 64 character reset token to Datadog before the reset form is submitted. The link carries the token as a bare query string key, and the Datadog RUM browser SDK on that page records view.url verbatim.
What is view.url? When the Datadog SDK records a page view, it stores a bundle of information about that view. One field in that bundle is called view.url, and it holds the full address of the page, query string included. "Verbatim" means exactly as it appears, with nothing removed.
The SDK is initialised with no beforeSend callback. The key is absent from the configuration entirely, so no URL redaction is performed on any route. sampleRate is 100, so this is not a sampled subset: every reset performed by every user of the application is recorded.
What is beforeSend? It is a hook, a place where the site can plug in its own code that runs just before the SDK sends each report. Datadog provides it so sites can clean or remove sensitive information first. If you set it, you can say "before you send this, delete the query string". If you do not set it, nothing is cleaned. Here the setting is not present at all.
What is sampleRate? It is a number that says what fraction of visits to record. A value of 10 means record one in ten. A value of 100 means record every single one. Here it is 100, so nothing is skipped.
Three properties make this more than a secret written to a log:
- The token is live when it is transmitted. It is sent on page load, before the user submits the form, and the form renders normally at that point.
- The same RUM session records the account the token unlocks. The authenticated route places the account handle in the URL path, and RUM groups both views under one
session_id. The reset endpoint requires token and email together, and that pairing is the thing this session supplies. - The defect is the RUM configuration, not the reset page. Any secret placed in any URL in this application is recorded the same way.
What is a session? Datadog groups everything one visitor does into a session, identified by a random string called session_id. It is like a shopping receipt number that ties all your purchases in one visit together. If the same session_id appears on the reset page and on your logged-in page, Datadog knows both were the same person.
The researcher also identified this as the same issue as report #4000185, "HackerOne Code sends live password-reset tokens to Segment in automatic page events", filed against the same asset, triaged, fixed and resolved at Low with a $200 bounty, disclosed on 24 September 2026. The mechanism there was the same: opening the reset link put the live token into automatic page telemetry before the form was submitted.
What is telemetry? Telemetry is data a program automatically sends back to its maker or operator about what it is doing. Website analytics is a form of telemetry. The word comes from measuring instruments that report readings from a distance.
The retest on that report records the fix that shipped:
The client now registers a Segment source middleware (
analytics.addSourceMiddleware) that runs on every event before send and scrubscontext.pageandproperties: on the/password-resetand/forgot-passwordpaths it strips the query string and fragment fromurlandreferrer(via a URL rewrite) and blanks thesearchfield.
In plain words: the site added a cleaning step inside Segment's own pipeline. On two specific pages, it removes the query string and the fragment from the recorded address and blanks a field called search. A fragment is the part of an address after a # sign. A middleware is code that sits in the middle of a process and can change what passes through, like a filter in a pipe.
analytics.addSourceMiddleware is a Segment API. It runs inside Segment's own event pipeline and has no effect on any other SDK. Datadog RUM is a separate library with a separate transport and its own redaction hook, beforeSend, which is not set. The fix is therefore sink specific by construction, and path specific on top of that.
What is a sink? A sink is a place where data ends up. Segment is one sink, Datadog is another. Cleaning data on its way to Segment does nothing for data going to Datadog, because they are different destinations with different code. "Sink specific" means the fix only covers one destination. "Path specific" means it only covers two named pages.
The retest on #4000185 establishes that the Segment half is closed. The researcher's own observation is consistent with it rather than a second confirmation: over the observation window this page issued no request to api.segment.io, none to Intercom and none to Sentry, although analytics.js is still loaded and initialised. Of the telemetry recipients this page loads, Datadog RUM was the only one that received a request while the token was in the URL.
What is a request? When your browser asks a server for something, or sends it information, that is a request. Over the observation window the page issued no request to Segment, Intercom or Sentry, and Datadog RUM was the only telemetry recipient that received a request while the token was in the URL.
Exploitation
Step 1: request a reset and open the link without submitting
Request a password reset for an account you control on app.pullrequest.com, then open the emailed link. Do not submit the form. The page renders the Email Address, New Password and Confirm New Password fields normally, so the token is live and unused at every reading below.
Leaving the form untouched proves the token was still valid at the moment it was sent to Datadog.
Step 2: confirm the token sits inside the field the SDK serialises
> 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
Line by line:
const TOKEN = '<the 64 hex characters from the reset link>';stores the token from the address bar in a variable calledTOKEN, so the next commands can refer to it.window.DD_RUM.getInternalContext().view.url.includes(TOKEN)asks the Datadog SDK for its current view information and checks whether the address it holds contains the token. The answer istrue, meaning yes.window.DD_RUM.getInternalContext().view.url.lengthasks how many characters that address has. The answer is231.
getInternalContext() exposes the SDK's current view state, and view.url is the field the SDK serialises into RUM events. Serialise means turning information into a format that can be sent over the network. The token is present in it, and the full URL is 231 characters long.
Step 3: confirm the SDK is transmitting and the intake is accepting
POST https://rum.browser-intake-datadoghq.com/api/v2/rum
?ddsource=browser&ddtags=sdk_version:4.14.0,env:production,service:pullrequest...
&batch_time=1790747851585
-> HTTP 202
POST https://rum.browser-intake-datadoghq.com/api/v2/rum
...&batch_time=1790747881586
-> HTTP 202
Line by line:
POSTis the type of request used to send data to a server. The browser is pushing information out, not asking for a page.https://rum.browser-intake-datadoghq.com/api/v2/rumis the Datadog intake address.?ddsource=browser&ddtags=sdk_version:4.14.0,env:production,service:pullrequest...is the query string on the intake request. It labels the data: it came from a browser, from SDK version 4.14.0, from the production environment, for the service calledpullrequest.&batch_time=1790747851585is a timestamp for the batch.-> HTTP 202is the server's reply. HTTP status codes are three digit numbers servers use to answer. 202 means "accepted": the server took the data and will process it.
Batches repeat at roughly 30 second intervals while the view is active, and the intake answers HTTP 202. Wrapping navigator.sendBeacon on an authenticated route captured a body of 863 bytes containing "url" fields.
What is navigator.sendBeacon? It is a browser function for sending small amounts of data to a server, often used when a page is closing. The researcher temporarily wrapped it, meaning they put their own code around it to see what it was sending. The captured body was 863 bytes and contained fields named url.
Step 4: confirm the same session records the account the token unlocks
view 1 /password-reset?<live token> session_id ████████...
view 2 /dash/scans/1/<account handle> session_id ████████...
Line by line:
view 1is the reset page, with the live token in its address, recorded under a particularsession_id.view 2is a logged-in page. Its address path contains the account handle, which is the account's name. It is recorded under the samesession_id.
The reset endpoint requires token and email. A token alone is not directly usable, and that is the mitigation this finding removes. View 2 puts the account handle in the URL path and RUM files it under the same session as view 1. A filter on one session_id returns the credential and the account together.
What is a mitigation? A mitigation is a safeguard that makes an attack harder even if something else goes wrong. Here the safeguard is that the reset form needs both the token and the email address. If an attacker only has the token, they still need the email. This report shows that the same Datadog session supplies both, so the safeguard no longer helps.
Step 5: show the capture is global, not a property of the reset page
Demonstrated on an authenticated route with a dummy marker. No secret was used and no request was issued. The original URL was restored immediately.
> history.pushState({}, '', location.pathname + '?demo_param=' + MARK);
rum_tracked_the_spa_route_change true
RUM_CAPTURED_ARBITRARY_QUERY_VALUE true
session_id unchanged
Line by line:
history.pushState({}, '', location.pathname + '?demo_param=' + MARK);changes the address bar without reloading the page. It keeps the current path and adds a harmless made-up parameter calleddemo_paramwith a marker value. This is how single page applications change pages.rum_tracked_the_spa_route_change truemeans the Datadog SDK noticed the page change.RUM_CAPTURED_ARBITRARY_QUERY_VALUE truemeans it recorded the made-up value in the address.session_id unchangedmeans it stayed in the same session.
What is a single page application? A site that loads once and then swaps content in and out without full page reloads. It changes the address bar using functions like history.pushState. The point of this step: the capture is not special to the reset page. An arbitrary query value on an unrelated authenticated route was recorded the same way.
Step 6: measure single use rather than assume it
Submitting a consumed token to POST /api/v1/password-reset returns HTTP 422. The page still renders for a consumed token, because the form is client side, and the rejection happens on submission. A token was confirmed still valid roughly 15 minutes after issue. That is a measured lower bound and not the time to live, which the researcher did not determine.
What is HTTP 422? It is a status code meaning the server understood the request but could not process it because the data was invalid. Here it means the token had already been used.
What is time to live? The length of time a token stays valid before it expires.
Step 7: establish what this cannot do
This does not read a session or bearer credential. Authenticated API requests on this application carry their bearer token in a request header, not in a URL, so nothing in that path is recorded by this mechanism. The researcher did not find an authorisation code in a captured URL either. The OAuth callback at /oauth/callback answers with a server side 302, so no page script runs on the code bearing URL.
What is OAuth? OAuth is a common way to let one website log you in using another account, like "sign in with Google". It works by passing a short-lived authorisation code between sites. If that code appeared in a URL, it could leak the same way. Here the researcher did not find an authorisation code in a captured URL, because the callback answers with a server side 302 before any page script runs.
What is a 302? A status code that tells the browser "this page has moved, go to this other address instead". The redirect happens on the server, so no page code runs on the address that carries the code.
The report is the reset token, the account correlation, and the configuration that produces both.
Step 8: confirm server side
The stored event is confirmable by the program in one query, in Datadog, RUM, Explorer:
service:pullrequest @view.url:*password-reset*
Line by line:
service:pullrequestlimits the search to data tagged for this service.@view.url:*password-reset*looks for any recorded view whose address contains the textpassword-reset.
Each event returned carries a real user's reset token in view.url. The same query sizes how many tokens are already held and which of them are still inside their validity window.
Root cause
The RUM browser SDK records the full current URL into view.url on every view, query string included. A beforeSend callback is the supported place to redact that field. Redact means to remove or hide sensitive parts. Datadog's default retention for RUM events is 30 days.
What is retention? How long a service keeps data before deleting it.
The application's initialisation was inspected directly:
> 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
Line by line:
Object.keys(window.DD_RUM.getInitConfiguration())lists the names of all the settings the Datadog SDK was given when it started. The list isapplicationId,clientToken,site,service,env,version,sampleRateandtrackInteractions.typeof window.DD_RUM.getInitConfiguration().beforeSendasks what type of thing thebeforeSendsetting is. The answer is"undefined", meaning it does not exist at all.window.DD_RUM.getInitConfiguration().sampleRateasks for the sampling setting. The answer is100.
beforeSend is not set to a permissive value. It is not present. There is no redaction path on any route, and nothing is sampled out.
The earlier fix did not stop this because it was applied inside a different vendor's pipeline. The Segment source middleware scrubs context.page and properties on two named paths, and has no effect on Datadog RUM, which has its own transport and its own redaction hook. The fix is sink specific by construction, and path specific on top of that.
What is a vendor? A company that supplies a product or service. Segment and Datadog are two different vendors. Fixing one vendor's pipeline does not touch the other's.
Impact
Anyone able to read the RUM stream for service:pullrequest obtains a live account recovery token together with the identity of the account it belongs to, for any user of HackerOne Code who resets a password and does not immediately complete the flow. The token is a bearer credential and needs no further authentication to use.
The reader of this data is whoever holds RUM read access on the Datadog organisation, together with any API key or integration scoped to read RUM, and anyone who later obtains either. That population is normally much wider than the set of people entitled to handle account recovery material for customers, and it is not governed by the application's own authorisation model. Whoever reads the token can use it with no further authentication, no password and no second factor. Nobody here is recovering their own account.
What is an API key? A long string that lets a program talk to a service without a human logging in. The reader of this data is whoever holds RUM read access on the Datadog organisation, together with any API key or integration scoped to read RUM. Authorisation model means the rules a site uses to decide who is allowed to do what. Datadog's access rules are separate from HackerOne Code's, so someone who should never see customer recovery data might still be able to read it in Datadog.
The realistic case is the abandoned reset. A user who opens the link and does not finish, because they were interrupted, opened it on the wrong device, or remembered the password, leaves a valid token in third party telemetry until it expires. Nothing marks it as spent, and the user has no signal that the token was ever exposed.
Underneath the reset flow, the configuration itself is the finding. beforeSend is absent and sampleRate is 100, so every URL in this application, on every route, is recorded into a third party platform that is not built to hold secrets and that carries its own access control, retention and export surface.
On severity: the published table for app.pullrequest.com is $200 at Low and $1,000 at Medium. #4000185 was resolved at Low, and its reporter rated it Low because exploitation needs access to the telemetry during the token's validity window. The researcher did not argue that point away and asked for Medium on one difference, stating plainly what is not a difference.
What is severity? A rating of how serious a bug is. Bug bounty programs publish tables that say how much they pay for each level. Low is the mildest paid level, Medium is more serious.
Not a difference: #4000185 also correlated the token to an account, through an anonymousId already tied to the account email and user ID, a correlation at least as strong as the session_id correlation here. Coverage is not a difference either; Segment page events fired for every user, as RUM does here.
What is anonymousId? A random identifier an analytics service assigns to a visitor so it can group their activity. If it is later linked to an email and user ID, it identifies the person.
The difference: #4000185 was one analytics.page() call that failed to strip a secret, fixed by scrubbing two named paths inside one vendor's pipeline. This report is not a call site. beforeSend is absent from the RUM initialisation entirely, so there is no redaction path on any route, for any parameter, for any sink that SDK feeds. The arbitrary query value on an unrelated authenticated route is recorded the same way. The reset token is the instance demonstrable with a real credential; it is not the boundary of the defect.
What is a call site? The specific line of code where a function is called. Fixing one call site fixes one place. Fixing the configuration fixes every place at once.
On CVSS: the program's form offers CVSS 4.0 or a manual rating, so the report was set to Medium manually. No 4.0 vector was submitted because that scale turns heavily on Privileges Required, and scoring PR:High for "the reader needs Datadog access" measures the wrong thing here. For reference, CVSS 3.1 AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N scores 5.9, Medium, offered as support rather than as the argument.
What is CVSS? The Common Vulnerability Scoring System is a standard way to turn a bug's properties into a number from 0 to 10. Each letter in a vector is a property. AV:N means the attack can happen over a network. AC:H means it is hard to carry out. PR:H means the attacker needs high privileges. UI:R means a user must do something. S:U means the scope is unchanged. C:H, I:H and A:N describe high impact on confidentiality and integrity and none on availability. The researcher offers the CVSS 3.1 score as support rather than as the argument.
Fix
The suggested remediation, in the researcher's order:
- Take the token out of the URL. Accept it in the POST body, or exchange it server side on first load for a short lived cookie and redirect to a clean path. This closes RUM, analytics,
Referer, browser history and any CDN or proxy log in one change, rather than one sink at a time. One sink at a time is what left this open after the Segment fix. - Until then, set
beforeSendon the RUM SDK to strip query strings. Given that the field is absent rather than misconfigured, prefer stripping by default and allowing known safe parameters through. - Purge stored RUM events matching
@view.url:*password-reset*, and treat any token still inside its validity window as exposed. - Consider a shorter time to live on reset tokens. Single use invalidation is already implemented and verified working, so it does not need revisiting.
- Set an explicit restrictive
Referrer-Policyon credential bearing pages. Current browser defaults already limit cross originReferer, so this is hardening.
What is a cookie? A small piece of data a website stores in your browser and reads back on later requests. It can hold a short-lived value so the token never needs to appear in the address bar.
What is Referer? When you click a link, your browser can tell the next site which page you came from. That information is called the referrer. If the address contains a secret, the referrer can leak it too. Referrer-Policy is a header that controls how much of the address is shared.
What is a CDN or proxy? A CDN (Content Delivery Network) is a network of servers that cache and deliver website content. A proxy is a server that sits between you and the site. Both can keep logs of the addresses they see, so a secret in an address can end up in their logs too.
What is hardening? Extra protective measures that reduce risk even when the main problem is fixed.
A path-scoped scrub of the RUM view.url would close this report and leave the cause in place for the next parameter that carries a secret, exactly as the Segment middleware closed #4000185 and left this one open.
Variants to test
- Other telemetry SDKs loaded on credential bearing pages. Check whether each has its own redaction hook configured, and whether the hook is absent rather than permissive.
- Other routes that put secrets in the URL: invitation links, email verification, magic sign-in, share links, OAuth callbacks that render client side. A positive result is the secret appearing in a captured URL on a route the earlier fix never named.
- Sink-specific fixes applied to one vendor. After a fix is announced for one analytics provider, check every other provider the page loads. A positive result is a request to a second intake while the secret is in the URL, as the intake POSTs answered HTTP 202 here.
- Session correlation across the credential view and an authenticated view. A positive result is one
session_idcovering both, with the account handle in the authenticated view's URL path. - Single use enforcement. Replay a consumed token against the reset endpoint. A positive result is a rejection such as the HTTP 422 seen here, which bounds but does not eliminate the exposure window.
- Sampling configuration. Check
sampleRateon the SDK. A value of 100 means every user's flow is recorded, not a subset.
What is magic sign-in? A login method where you enter your email and receive a link that logs you in without a password. The link carries a token, so it has the same risk as a reset link.
Hunting notes
Password reset, email verification and invitation flows are the usual carriers, because the token has to reach a page the user opens from an email. The signal during recon is the presence of a RUM or analytics SDK on those pages, combined with a URL that carries a bare key or a token parameter.
What is recon? Reconnaissance, the early stage of testing where you look around and note what a site uses before trying anything. Here it means noticing which analytics tools a page loads and whether its addresses carry secrets.
The configuration check is quick and decisive: enumerate the SDK's init configuration and look for the redaction hook. Here Object.keys(window.DD_RUM.getInitConfiguration()) showed no beforeSend key at all, and typeof ...beforeSend returned "undefined". An absent hook is a stronger finding than a misconfigured one, because it means no route is covered.
A prior fix on the same asset is worth reading closely. The retest text on #4000185 named the exact API used (analytics.addSourceMiddleware) and the exact paths scrubbed (/password-reset and /forgot-password). Checking which intakes actually receive requests while the token is in the URL narrowed it to Datadog RUM.
it proved the token was live and unused at transmission time by leaving the form unsubmitted; it proved the same session_id covered the token view and an authenticated view containing the account handle, supplying the token and email pairing the endpoint requires; it showed the capture was global with a dummy marker on an unrelated route, so the defect was the configuration and not the page; and it gave the program a single Datadog query to confirm the stored events and size the exposure. It also measured single use (HTTP 422 on replay) and stated the limits: no session or bearer credential is read, and no authorisation code appears in a captured URL because the OAuth callback answers with a server side 302.
Glossary
- API: the set of addresses a website's own pages use to talk to its servers behind the scenes.
- API key: a long string that lets a program talk to a service without a human logging in.
- Authorisation model: the rules a site uses to decide who is allowed to do what.
- Bearer credential: a secret that grants access to whoever holds it, with no further proof needed.
beforeSend: a Datadog SDK setting where the site can plug in code to clean each report before it is sent.- Call site: the specific line of code where a function is called.
- CDN: a network of servers that cache and deliver website content.
- Client side: everything that happens inside your browser.
- Console script: a short set of commands typed into the browser's developer console.
- Cookie: a small piece of data a website stores in your browser and reads back on later requests.
- CVSS: the Common Vulnerability Scoring System, a standard way to turn a bug's properties into a number from 0 to 10.
- Fragment: the part of an address after a
#sign. - Hardening: extra protective measures that reduce risk even when the main problem is fixed.
- Header: an extra line of information a browser or server attaches to a request or reply.
- HTTP status code: a three digit number servers use to answer requests, such as 202, 302 or 422.
- Intake: the address an analytics SDK sends its reports to.
- Magic sign-in: a login method where an emailed link logs you in without a password.
- Middleware: code that sits in the middle of a process and can change what passes through.
- Mitigation: a safeguard that makes an attack harder even if something else goes wrong.
- OAuth: a common way to let one website log you in using another account.
- Proxy: a server that sits between you and the site.
- Query string: everything after a
?in a web address, made of key and value pairs separated by&. - Recon: reconnaissance, the early stage of testing where you look around and note what a site uses.
- Redact: to remove or hide sensitive parts.
Referer: the information a browser can send to the next site saying which page you came from.Referrer-Policy: a header that controls how much of the address is shared as the referrer.- Request: when your browser asks a server for something, or sends it information.
- Retention: how long a service keeps data before deleting it.
- RUM: Real User Monitoring, Datadog's tool that records what visitors do on a site.
sampleRate: a number that says what fraction of visits an analytics SDK records.- SDK: a bundle of code a company adds to its website to get some feature.
- Serialise: turn information into a format that can be sent over the network.
- Server side: everything that happens on the company's computers.
- Session: a group of everything one visitor does, identified by a random
session_id. - Severity: a rating of how serious a bug is.
- Single page application: a site that loads once and swaps content without full page reloads.
- Sink: a place where data ends up.
- Telemetry: data a program automatically sends back about what it is doing.
- Time to live: the length of time a token stays valid before it expires.
- Token: a random string that proves you are allowed to do something.
- Vendor: a company that supplies a product or service.
view.url: the field in a Datadog RUM page view that holds the full address of the page.