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.
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.
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
- Inject a semicolon before a payload to bypass the XSS filter stripping.
- Use a null byte to bypass the WAF and split the word 'script'.
- Add a throwaway attribute to prevent JSON encoding from converting equals signs to colons.
- Use an embed tag with a null byte in the src attribute to load an external SWF file.
- Craft a SWF file with the XSS payload built in to bypass WAF detection of request variables.
- 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.