Stored XSS on https://events.hackerone.com
A third-party vendor used by HackerOne had an authenticated stored cross-site scripting flaw on an endpoint reachable through events.hackerone.com. The researcher could combine it with cross-site request forgery and self-XSS to run script on HackerOne's subdomain.
- Triaged in 3 hours
- Fixed in 35 days
- Disclosed after 5 months
Summary by the program
@nagli found a stored Cross-Site Scripting vulnerability in a 3rd party vendor that was used by HackerOne. This system did not contain any data related to reports submitted and stored on hackerone.com. HackerOne worked with the vendor to remediate the vulnerability. The report is partially disclosed to anonymize the vendor.
Summary by the researcher
This vulnerability is part of a study I have been conducting about "Vulnerability inheritance - Attacking companies and scoring bounties through 3rd party integrations". events.hackerone.com was pointing towards a 3rd party vendor as a CNAME, I managed to find authenticated stored XSS on an endpoint which belongs to the vendor which allowed me to achieve RXSS through CSRF+Self XSS on Hackerone's subdomain.
What the report shows
The target is events.hackerone.com, a HackerOne subdomain that, according to the researcher, pointed at a third-party vendor through a CNAME record. The researcher describes the work as part of a study on what they call "Vulnerability inheritance": attacking companies and scoring bounties through third-party integrations. The idea is that a subdomain which resolves to someone else's infrastructure inherits that infrastructure's weaknesses.
On the vendor's side, the researcher found an authenticated stored cross-site scripting issue on an endpoint belonging to the vendor. By combining that stored XSS with a CSRF condition and self-XSS on the HackerOne subdomain, the researcher says they were able to achieve reflected XSS (RXSS) in the context of events.hackerone.com.
The report does not include the endpoint path, the vulnerable parameter, the payload, or the request that triggered the stored XSS. It also does not describe the CSRF mechanism or the self-XSS step in technical detail. What is stated is the chain at a high level: authenticated stored XSS on the vendor endpoint, then CSRF plus self-XSS to turn it into script execution on the HackerOne subdomain.
HackerOne's summary adds context that matters for scoping. The vulnerable system was a third-party vendor used by HackerOne, and it did not hold any data related to reports submitted and stored on hackerone.com. HackerOne worked with the vendor to remediate the vulnerability. The report is only partially disclosed, specifically to anonymise the vendor, which is why the vendor's name and the technical specifics are absent.
The platform record lists the weakness as stored cross-site scripting and the severity as none, with no CVSS score and no bounty amount. The report was disclosed on 26 March 2021.
Root cause
The report points to a flaw in the vendor's application: an authenticated user could store script that later executed for someone else. The report does not describe the underlying cause; the stored XSS was found on an endpoint belonging to the vendor.
The second half of the chain is the integration itself. Because events.hackerone.com was a CNAME to the vendor, content served by the vendor was reachable under a HackerOne hostname. That is what let a bug in the vendor's system be presented as a bug on HackerOne's subdomain. The report does not explain how the CSRF and self-XSS steps worked, so the exact mechanism behind the RXSS conversion is not documented here.
Impact
In the researcher's framing, the impact is script execution in the context of events.hackerone.com, reached by chaining the vendor's stored XSS with CSRF and self-XSS. The researcher states they achieved reflected XSS in the context of events.hackerone.com.
The program's summary narrows this considerably. The affected system held no data related to reports on hackerone.com, so the exposure did not extend to report contents or the main platform's data. The severity recorded is none, and no bounty is listed.
How this kind of bug works
Stored XSS happens when an application saves input and later writes it into an HTML response without encoding it for the context where it lands. The payload persists in a database, a profile, a comment, a ticket or a settings field, and executes for every user who views the rendered page. Because the script runs from the application's own origin, the browser treats it as first-party code: it can read cookies not marked HttpOnly, call same-origin APIs with the victim's session, and rewrite the page.
Self-XSS is the weaker variant where the payload only runs for the person who enters it. On its own it is not a vulnerability, because the victim attacks themselves. It becomes meaningful when it can be triggered without the victim's cooperation, which is where CSRF comes in: a cross-site request can submit the payload on the victim's behalf, and the stored value then executes when the victim loads the page. That combination is what turns a self-XSS into something reportable.
The third ingredient is the integration. A CNAME from a company subdomain to a vendor means the vendor's application is served under the company's domain. Cookies scoped to the parent domain, and the trust users place in the hostname, cross that boundary even though the code and data belong to a different organisation.
Defences work at several layers: contextual output encoding on every sink, input validation and sanitisation where rich content is genuinely needed, a strict Content Security Policy to blunt inline script, anti-CSRF tokens and SameSite cookies on state-changing requests, and HttpOnly cookies to limit what stolen script can reach. On the integration side, keeping vendor-hosted applications on the vendor's own domain, or isolating them with separate cookie scopes, limits the blast radius.
How to test for it
- Map subdomains and resolve them. Look for CNAME records pointing at SaaS platforms, marketing tools, event systems, support desks and form builders. Those are the inherited surfaces.
- For each vendor-hosted application, register an account if self-registration is open, and enumerate every place your input is stored and later displayed: profiles, display names, comments, descriptions, custom fields, file names, support tickets.
- Submit a benign marker first, such as a distinctive string, and confirm it is stored and rendered. Then test encoding by submitting characters that would break out of the current context if unescaped, and inspect the raw response to see whether they come back encoded or literal.
- Where the application reflects or stores HTML, check each context separately: element text, attribute values, URL attributes, script blocks, JSON embedded in the page.
- For the self-XSS angle, determine whether the vulnerable action can be performed cross-site. Inspect the request for anti-CSRF tokens, check the cookie's SameSite attribute, and see whether the endpoint accepts a simple form submission or requires a custom header or JSON body.
- A positive result is your marker executing as script in the vendor application's page, served under the company hostname, ideally triggered by a request the victim did not initiate.
Common false positives: payloads that appear unencoded in the response but sit in a context where the browser does not execute them; input that is only reflected back to the same user with no cross-user path; self-XSS that requires the victim to paste code into a console or a field by hand; and encoding that is applied on output but missed in one context, which needs a context-specific payload to prove.
How it is fixed
The standard fix is contextual output encoding at every sink, applied at render time rather than on input. Where users legitimately supply markup, run it through a well-maintained sanitiser with an allowlist of tags and attributes. Add a Content Security Policy that disallows inline script and restricts script sources, which reduces the impact of any encoding gap that remains. Protect state-changing endpoints with anti-CSRF tokens and set session cookies with SameSite and HttpOnly.
Hunting notes
This class of bug hides where stored data is rendered to other users and where ownership of the hostname is split. Recon signals worth watching: CNAMEs to third-party platforms, subdomains that serve a login page with a different look from the main site, and applications that accept self-registration. Marketing, events, support and feedback tools are frequent candidates because they are bought rather than built and often sit outside the main security programme's review.
To get a report accepted, show the full chain rather than a fragment. Demonstrate storage, show the payload executing in the company's origin, and show that a victim can be made to trigger it without pasting anything themselves. State clearly what data the affected system can reach, because scope arguments decide these reports: a vendor system with no access to core platform data was recorded here with severity none. Keep the vendor's identity out of public discussion if the program asks for it.
What happened, in plain words
This report is about a security weakness on events.hackerone.com, a subdomain of HackerOne. A subdomain is a smaller address that sits under a company's main domain, like a side entrance to the same building. The subdomain pointed to a different company, a third-party vendor, through a DNS record called a CNAME. Instead, it pointed to a different company, a third-party vendor, through a DNS record called a CNAME. A CNAME is a bit like a forwarding address at the post office: mail sent to your name gets handed to someone else's house. The researcher describes this as part of a study on "Vulnerability inheritance": attacking companies and scoring bounties through third-party integrations. The idea is simple: if your subdomain forwards to someone else's systems, you inherit their weaknesses too.
On the vendor's side, the researcher found an authenticated stored cross-site scripting issue on an endpoint belonging to the vendor. By combining that stored XSS with a CSRF condition and self-XSS on the HackerOne subdomain, the researcher says they were able to achieve reflected XSS (RXSS) in the context of events.hackerone.com.
HackerOne's own summary adds important context. The vulnerable system was a third-party vendor used by HackerOne, and it did not hold any data related to reports submitted and stored on hackerone.com. HackerOne worked with the vendor to fix the vulnerability. The report is only partially disclosed, specifically to anonymise the vendor, which is why the vendor's name and the technical specifics are absent.
The platform record lists the weakness as stored cross-site scripting and the severity as none, with no CVSS score and no bounty amount. The report was disclosed on 26 March 2021.
What the report shows
The target is events.hackerone.com, a HackerOne subdomain that, according to the researcher, pointed at a third-party vendor through a CNAME record.
The report does not include the endpoint path, the vulnerable parameter, the payload, or the request that triggered the stored XSS. It also does not describe the CSRF mechanism or the self-XSS step in technical detail. What is stated is the chain at a high level: authenticated stored XSS on the vendor endpoint, then CSRF plus self-XSS to turn it into script execution on the HackerOne subdomain.
HackerOne's summary adds context that matters for scoping. HackerOne worked with the vendor to remediate the vulnerability.
Root cause
The report points to a flaw in the vendor's application: an authenticated user could store script that later executed for someone else. The report does not describe the underlying cause; the stored XSS was found on an endpoint belonging to the vendor.
The second half of the chain is the integration itself. Because events.hackerone.com was a CNAME to the vendor, content served by the vendor was reachable under a HackerOne hostname. That is what let a bug in the vendor's system be presented as a bug on HackerOne's subdomain. The report does not explain how the CSRF and self-XSS steps worked, so the exact mechanism behind the RXSS conversion is not documented here.
Impact
In the researcher's framing, the impact is script execution in the context of events.hackerone.com, reached by chaining the vendor's stored XSS with CSRF and self-XSS. The researcher states they achieved reflected XSS in the context of events.hackerone.com.
The program's summary narrows this considerably. The affected system held no data related to reports on hackerone.com, so the exposure did not extend to report contents or the main platform's data. The severity recorded is none, and no bounty is listed.
In general, how this kind of bug works
Stored XSS happens when an application saves input and later writes it into an HTML response without encoding it for the context where it lands. The payload persists in a database, a profile, a comment, a ticket or a settings field, and executes for every user who views the rendered page. Because the script runs from the application's own origin, the browser treats it as first-party code: it can read cookies not marked HttpOnly, call same-origin APIs with the victim's session, and rewrite the page.
Self-XSS is the weaker variant where the payload only runs for the person who enters it. On its own it is not a vulnerability, because the victim attacks themselves. It becomes meaningful when it can be triggered without the victim's cooperation, which is where CSRF comes in: a cross-site request can submit the payload on the victim's behalf, and the stored value then executes when the victim loads the page. That combination is what turns a self-XSS into something reportable.
The third ingredient is the integration. A CNAME from a company subdomain to a vendor means the vendor's application is served under the company's domain. Cookies scoped to the parent domain, and the trust users place in the hostname, cross that boundary even though the code and data belong to a different organisation.
Defences work at several layers: contextual output encoding on every sink, input validation and sanitisation where rich content is genuinely needed, a strict Content Security Policy to blunt inline script, anti-CSRF tokens and SameSite cookies on state-changing requests, and HttpOnly cookies to limit what stolen script can reach. On the integration side, keeping vendor-hosted applications on the vendor's own domain, or isolating them with separate cookie scopes, limits the blast radius.
In general, how to test for it
- Map subdomains and resolve them. Look for CNAME records pointing at SaaS platforms, marketing tools, event systems, support desks and form builders. Those are the inherited surfaces.
- For each vendor-hosted application, register an account if self-registration is open, and enumerate every place your input is stored and later displayed: profiles, display names, comments, descriptions, custom fields, file names, support tickets.
- Submit a benign marker first, such as a distinctive string, and confirm it is stored and rendered. Then test encoding by submitting characters that would break out of the current context if unescaped, and inspect the raw response to see whether they come back encoded or literal.
- Where the application reflects or stores HTML, check each context separately: element text, attribute values, URL attributes, script blocks, JSON embedded in the page.
- For the self-XSS angle, determine whether the vulnerable action can be performed cross-site. Inspect the request for anti-CSRF tokens, check the cookie's SameSite attribute, and see whether the endpoint accepts a simple form submission or requires a custom header or JSON body.
- A positive result is your marker executing as script in the vendor application's page, served under the company hostname, ideally triggered by a request the victim did not initiate.
Common false positives: payloads that appear unencoded in the response but sit in a context where the browser does not execute them; input that is only reflected back to the same user with no cross-user path; self-XSS that requires the victim to paste code into a console or a field by hand; and encoding that is applied on output but missed in one context, which needs a context-specific payload to prove.
In general, how it is fixed
The standard fix is contextual output encoding at every sink, applied at render time rather than on input. Where users legitimately supply markup, run it through a well-maintained sanitiser with an allowlist of tags and attributes. Add a Content Security Policy that disallows inline script and restricts script sources, which reduces the impact of any encoding gap that remains. Protect state-changing endpoints with anti-CSRF tokens and set session cookies with SameSite and HttpOnly.
In general, hunting notes
This class of bug hides where stored data is rendered to other users and where ownership of the hostname is split. Recon signals worth watching: CNAMEs to third-party platforms, subdomains that serve a login page with a different look from the main site, and applications that accept self-registration. Marketing, events, support and feedback tools are frequent candidates because they are bought rather than built and often sit outside the main security programme's review.
To get a report accepted, show the full chain rather than a fragment. Demonstrate storage, show the payload executing in the company's origin, and show that a victim can be made to trigger it without pasting anything themselves. State clearly what data the affected system can reach, because scope arguments decide these reports: a vendor system with no access to core platform data was recorded here with severity none. Keep the vendor's identity out of public discussion if the program asks for it.
Glossary
- Subdomain: an address that sits under a company's main domain, such as
events.hackerone.comunderhackerone.com. - CNAME: a DNS record that forwards one hostname to another, like a forwarding address.
- DNS: the system that translates human-readable hostnames into the addresses computers use.
- Third-party vendor: an outside company whose product or service a company uses.
- Integration: the connection between a company's systems and a vendor's systems.
- Endpoint: a specific address or action in a web application that accepts a request.
- XSS (cross-site scripting): a weakness where an attacker gets their own script to run in someone else's browser on a website.
- Stored XSS: XSS where the malicious input is saved by the application and runs later for anyone who views it.
- Reflected XSS (RXSS): XSS where the input is echoed straight back in the response rather than saved.
- Self-XSS: XSS that only runs for the person who enters the payload themselves.
- CSRF: cross-site request forgery, where another site makes a victim's browser send a request the victim did not intend.
- Authenticated: performed while logged in to an account.
- Payload: the piece of input an attacker submits to trigger a weakness.
- Output encoding: converting characters so a browser displays them as text instead of treating them as code.
- Contextual escaping: encoding input differently depending on where it will appear on the page.
- Sanitiser: a tool that strips dangerous markup from user-supplied content.
- Cookie: a small piece of data a site stores in the browser to remember who you are.
- HttpOnly: a cookie setting that stops scripts from reading the cookie.
- SameSite: a cookie setting that controls whether the cookie is sent on requests coming from other sites.
- Session: the logged-in state a site keeps for a user across requests.
- Anti-CSRF token: a secret value in a form that proves the request came from the site itself.
- Content Security Policy (CSP): a rule set a site sends to the browser saying which scripts may run.
- Origin: the combination of scheme, hostname and port that a browser uses to decide what a page may access.
- Sink: a place in code where data is written into a page.
- Recon: the information-gathering phase of security testing.
- SaaS: software sold as a hosted service rather than installed locally.
- CVSS: a standard scoring system for rating the severity of a vulnerability.
- Bounty: a payment a company makes for a valid security report.
- Scope: what a security programme considers in bounds for testing and rewards.