Private invitation links/tokens leak to third-party analytics site
Private invitation links that require acceptance of an NDA were not filtered before being sent to a third-party analytics service, unlike other private links. An attacker with access to that analytics data could see these private invitation links, which is a privacy issue.
- Triaged in 8 days
- Fixed in 39 days
- Paid in 39 days
- Disclosed after 40 days
Summary: Private invite links are normally FILTERED before sending to third-party analytics sites. But it is seen that in few cases where the invitation link that requires users to accept NDA policy, the private invitation links are still sent to third party analytics site.
Steps to reproduce
- Click on the invitation link that has NDA policy.
- Look for request to https://www.google-analytics.com/collect with private invitation link in the
dlparameter.
I am attaching a video PoC demonstrating the steps
██████
Impact
- As seen in majority of the cases, private links are normally redacted/FILTERED by hackerone before sending to third-party analytics sites. Some links like ones in the report, miss these security validations.
- Leaking of private program links can be a privacy issue to the program and users.
What the report shows
The target is HackerOne's own platform, and the feature under scrutiny is the private invitation link flow. HackerOne normally filters private invitation links before any data is sent to third-party analytics sites, so that the link itself never leaves the platform inside an analytics request. The researcher found that this filtering does not cover every case: when the invitation link requires the recipient to accept an NDA policy, the private invitation link is still transmitted to the third-party analytics site.
The reproduction is short and direct:
- Click on the invitation link that has an NDA policy.
- Inspect the outgoing requests and look for a request to the Google Analytics collect endpoint that carries the private invitation link in the
dlparameter.
The endpoint named in the report is:
https://www.google-analytics.com/collect
The report states that the private invitation link appears in the dl parameter of that request. The researcher also attached a video proof of concept demonstrating the steps; the report does not describe its contents beyond that.
The report was filed against the hackerone.com asset, classified as Information Disclosure, rated low severity, and paid a bounty of 500.00 USD. It was disclosed on 2022-04-05. The report does not describe a fix.
Root cause
The report frames this as a gap in an existing control rather than a missing control. Private links are, in the majority of cases, redacted or filtered by HackerOne before being sent to third-party analytics sites. The NDA invitation flow appears to bypass that validation, so the link reaches the analytics payload unfiltered. The report does not identify the code responsible.
Impact
The report is careful about scope. It notes that private links are normally redacted before reaching third-party analytics, and that some links, such as the ones in the report, miss these security validations. The stated consequence is that leaking private program links can be a privacy issue for the program and its users. The impact is therefore disclosure of a private link to a third party, not demonstrated unauthorised access.
How this kind of bug works
Analytics and tag-management libraries routinely collect the current page URL and send it to a third-party collector. Single-page applications make this worse: the URL is often passed explicitly in a parameter such as dl (document location) rather than being inferred from the referrer, so any secret embedded in the path or query string travels with it. Invitation and password-reset links are exactly the kind of URL that carries a bearer secret in the path, so a secret embedded there travels with the analytics request.
Organisations usually respond with a redaction layer: a function that strips or masks known-sensitive parameters and path segments before the analytics call is made. Bugs appear when that layer is applied per call site instead of centrally, so a new or less common flow (an NDA acceptance step, an alternate invitation type, a mobile or legacy route) is added without the filter. They also appear when the filter matches on parameter names or URL shapes that the new flow does not use.
Defences are architectural: never put secrets in URLs that a browser will load, keep redaction in one place that every analytics call must pass through, and prefer server-side analytics for sensitive flows.
How to test for it
- Identify flows that put a secret in the URL: invitations, email verification, password reset, shared documents, magic links, unsubscribe links.
- Walk each flow variant, including less common ones such as policy acceptance steps, alternate roles, or different invitation types.
- With browser developer tools open on the Network tab, filter for known analytics and tag hosts and inspect the query string of each request. Look for the secret appearing in location, page, referrer or title parameters.
- Repeat with the request intercepted in a proxy so you can see requests fired before navigation completes, and check
sendBeaconand image-pixel requests, which are easy to miss in a filtered view. - A positive result is the exact secret from the URL, unredacted, inside a request to a third-party host. Capture the full request and the page it came from.
Common false positives: the value is present but truncated or hashed; the parameter is a page identifier rather than the token; the request goes to a first-party endpoint that merely resembles an analytics collector; or the token has already been consumed and is no longer valid. Confirm the leaked value still works before reporting.
How it is fixed
Centralise redaction so every analytics call passes through one function that strips known-sensitive parameters and path segments. Apply it to all flows, including policy acceptance and alternate invitation types, and add tests that fail when a token-shaped value reaches the analytics layer. Where possible, avoid placing secrets in URLs at all, or exchange them server-side for a short-lived session. Reduce retention and access on the analytics property, and consider disabling client-side analytics on sensitive pages.
Hunting notes
This bug class hides in flows added later than the redaction layer: onboarding steps, consent and NDA screens, SSO callbacks, and anything with a token in the path. Recon signals include heavy use of tag managers, multiple analytics vendors, and single-page apps that pass explicit location parameters. To make the report land, show the exact request containing the unredacted secret. Without that last part, programs often treat it as low severity, as this report was.
What happened, in plain words
HackerOne is a platform where companies run bug bounty programmes and invite researchers to test their systems. A programme can send a private invitation link to a specific person. If the link ends up at a third-party analytics site, the privacy of the programme and its users is at risk.
HackerOne also uses a third-party analytics service, Google Analytics, to understand how people use its site. Analytics tools work by quietly sending small reports back to their servers as you browse: which page you opened, where you came from, and so on. A common way to do this is a request to a collector address. The report names this one:
https://www.google-analytics.com/collect
Think of it like a shop counting how many people walk past each aisle. The shop only needs to know the aisle, not the name of every customer. If the customer's name is written on the aisle sign, the counter copies it down too, and that is a leak.
HackerOne knows this, so it normally filters private invitation links out before any analytics data leaves the platform. The researcher found a gap: when the invitation link requires the recipient to accept an NDA policy, the filtering does not happen, and the private invitation link is still sent to the third-party analytics site.
NDA stands for non-disclosure agreement, a promise not to share confidential information. Some invitations make you accept one before you can continue. That extra step is the case that slips past the filter.
The steps, and why each one matters
- Click on the invitation link that has an NDA policy. This puts you in the exact flow the researcher is talking about. The point is not the click itself but that this particular kind of invitation behaves differently from the ordinary one.
- Look for a request to
https://www.google-analytics.com/collectwith the private invitation link in thedlparameter. Thedlparameter stands for document location, the address of the page the browser is on. Analytics tools often send the current page address this way. If the invitation link is the page address, then the secret travels inside the analytics request.
To do step 2 yourself, you open your browser's developer tools, switch to the Network tab, and watch the requests the page makes. Each request has an address, and anything after a question mark in that address is a parameter, written as name=value. Finding the invitation link sitting in a dl value means the secret left the platform.
The researcher also attached a video proof of concept showing the steps. The report does not describe what the video contains beyond that.
The report was filed against hackerone.com, classed as Information Disclosure, rated low severity, and paid a bounty of 500.00 USD. It was disclosed on 2022-04-05. The report does not describe a fix.
Why it is a gap rather than a missing defence
Private links are, in the majority of cases, redacted or filtered by HackerOne before being sent to third-party analytics sites. So a control exists. The NDA invitation flow appears to skip it. The report does not identify the code responsible.
The stated consequence is that leaking private programme links can be a privacy issue for the programme and its users. The impact is disclosure of a private link to a third party, not demonstrated unauthorised access.
In general, how this kind of bug works
Analytics and tag-management libraries routinely collect the current page address and send it to a third-party collector. Modern websites that load pages without a full reload make this worse: the address is often passed explicitly in a parameter such as dl rather than being guessed from where you came from. So any secret embedded in the address travels with it.
Invitation links and password-reset links are exactly the kind of address that carries a secret, so a secret embedded there travels with the analytics request. A credential here means something that grants access, like a key.
Organisations usually respond with a redaction layer: a piece of code that strips or masks known-sensitive values before the analytics call is made. Bugs appear when that layer is applied at each place separately instead of in one central place, so a new or less common flow, such as an NDA acceptance step, an alternate invitation type, or a mobile route, is added without the filter. They also appear when the filter looks for parameter names or address shapes that the new flow does not use.
Defences are architectural: never put secrets in addresses that a browser will load, keep redaction in one place that every analytics call must pass through, and prefer server-side analytics for sensitive flows.
How to test for it
- Identify flows that put a secret in the address: invitations, email verification, password reset, shared documents, magic links, unsubscribe links.
- Walk each flow variant, including less common ones such as policy acceptance steps, alternate roles, or different invitation types.
- With browser developer tools open on the Network tab, filter for known analytics and tag hosts and inspect the parameters of each request. Look for the secret appearing in location, page, referrer or title parameters.
- Repeat with the request intercepted in a proxy so you can see requests fired before navigation completes, and check
sendBeaconand image-pixel requests, which are easy to miss in a filtered view. A proxy is a tool that sits between your browser and the site and lets you pause and read each request. - A positive result is the exact secret from the address, unredacted, inside a request to a third-party host. Capture the full request and the page it came from.
Common false positives: the value is present but truncated or hashed; the parameter is a page identifier rather than the token; the request goes to a first-party endpoint that merely resembles an analytics collector; or the token has already been consumed and is no longer valid. Confirm the leaked value still works before reporting.
How it is fixed
Centralise redaction so every analytics call passes through one function that strips known-sensitive parameters and path segments. Apply it to all flows, including policy acceptance and alternate invitation types, and add tests that fail when a token-shaped value reaches the analytics layer. Where possible, avoid placing secrets in addresses at all, or exchange them server-side for a short-lived session. Reduce retention and access on the analytics account, and consider disabling client-side analytics on sensitive pages.
Hunting notes
This bug class hides in flows added later than the redaction layer: onboarding steps, consent and NDA screens, SSO callbacks, and anything with a token in the path. Recon signals include heavy use of tag managers, multiple analytics vendors, and single-page apps that pass explicit location parameters. To make the report land, show the exact request containing the unredacted secret. Without that last part, programmes often treat it as low severity, as this report was.
Glossary
- Bug bounty programme: a scheme where an organisation pays researchers for reporting security problems in its systems.
- Invitation link: a private web address that lets a specific invited person join or access something.
- NDA (non-disclosure agreement): a promise not to share confidential information, sometimes required before an invitation can be accepted.
- Third-party analytics site: an outside service that collects usage data about a website's visitors.
- Google Analytics: a widely used analytics service that receives reports from websites.
- Collector endpoint: the address on the analytics service that receives those reports, here
https://www.google-analytics.com/collect. - Request: a message your browser sends to a server asking for something or reporting something.
- Parameter: a named value attached to an address after a question mark, written as
name=value. dlparameter: the analytics field carrying the document location, meaning the address of the current page.- Developer tools / Network tab: built-in browser tools that list every request a page makes.
- Proxy: a tool placed between browser and site that lets you pause, read and change requests.
sendBeacon: a browser feature for sending small reports in the background, often used by analytics.- Image pixel: a tiny invisible image request used to report that a page was viewed.
- Token: a secret value, often inside a link, that proves the holder is allowed in.
- Credential: anything that grants access, such as a token or password.
- Redaction / filtering: removing or masking sensitive values before data is sent somewhere else.
- Information Disclosure: a vulnerability class where information that should stay private is exposed.
- Severity: a rating of how serious a bug is, here low.
- False positive: a finding that looks like a bug but is not one.
- Single-page application: a website that loads new content without fully reloading the page.
- SSO callback: the step where a login service hands you back to the site after signing in.