Skip to content
XSS Write-up Advanced

Airbnb when bypassing json encoding XSS filter WAF CSP and auditior turns into eight vulnerabilities

The report describes a series of cross-site scripting (XSS) vulnerabilities on Airbnb's embeddable listing frame endpoint. Attackers could bypass JSON encoding, an XSS filter, a WAF, CSP rules, and Chrome's XSS auditor to execute arbitrary JavaScript in victims' browsers, and they found seven additional vulnerable locations including a stored XSS.

Brett Buerhaus Follow

Published on buer.haus

We recently started participating in Airbnb's bounty program on HackerOne. We heard a lot about this company in the past but had never used their service before.

Brett Buerhaus (@bbuerhaus), Ben Sadeghipour (@nahamsec), on buer.haus

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to account compromise or data theft, and they found seven additional vulnerable locations including a stored XSS.

What the attacker needed

Victim clicks a crafted link; attacker hosts a malicious SWF file; no authentication required

The fix

The vulnerabilities were fixed by Airbnb on 5/20/2016.

How it was found

  1. Inject a semicolon before a payload to bypass the XSS filter stripping.
  2. Use a null byte to bypass the WAF and split the word 'script'.
  3. Add a throwaway attribute to prevent JSON encoding from converting equals signs to colons.
  4. Use an embed tag with a null byte in the src attribute to load an external SWF file.
  5. Craft a SWF file with the XSS payload built in to bypass WAF detection of request variables.
  6. Modify the payload with tabs and null bytes to bypass Chrome's XSS auditor.

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 write-up has not been written yet. The Original tab links to the source.

Cross-site scripting (XSS) is a type of attack where malicious JavaScript is injected into a trusted website and runs in a victim's browser. This report shows how the authors found a way to sneak that script past several layers of protection, including a filter that removes dangerous input, a firewall that blocks attacks, and browser security rules. They eventually succeeded and could run their own code on Airbnb's site.

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 Brett Buerhaus

View all

3 more disclosed reports, best first.

More from Airbnb

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.