Skip to content
XSS Disclosed report Intermediate

csp bypass + xss

A reflected cross-site scripting (XSS) vulnerability existed on careers.twitter.com, but the site's Content Security Policy (CSP) blocked direct exploitation. By combining it with a separate CSP bypass on analytics.twitter.com, an attacker could execute arbitrary JavaScript in the context of careers.twitter.com.

b6117130df17feef13481e3 Follow

Originally disclosed on HackerOne

  • Triaged in 30 hours
  • Fixed in 11 months
  • Paid in 4 days
  • Disclosed after 11 months

Hi,

On my previous report (number 126464) I've mentioned that analytics.twitter.com has a CSP bypass which I couldn't exploit that time.

Now, I've found a reflected XSS on careers.twitter.com which again I couldn't exploit by itself. Because you have CSP, and I've combined two of them to successfully trigger XSS.

If you visit the url: https://careers.twitter.com/en/jobs-search.html?location=1%22%3E%3Cscript%20src=//analytics.twitter.com/tpm?tpm_cb=alert%28document.domain%29%3E//

you will see xss triggered.

Regards.

Attachments

ct1.jpg
ct1.jpg From the original on HackerOne

The original report as published on HackerOne, by b6117130df17feef13481e3. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could execute JavaScript in the context of careers.twitter.com, as demonstrated by the triggered XSS.

What the attacker needed

Victim clicks a crafted link

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A reflected cross-site scripting (XSS) bug lets an attacker inject their own JavaScript into a page that a victim visits, so the code runs as if it came from the trusted site. A Content Security Policy (CSP) is a browser rule that blocks such injected scripts from running. Here, the researcher found a way around the CSP on one site and used it to make the XSS on another site actually execute.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by b6117130df17feef13481e3

View all

3 more disclosed reports, best first.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.