XSS with Cloudflare WAF Bypass | Zurich Insurance
A broker widget reflected the AgencyId parameter into HTML without sanitising it, allowing script injection. Cloudflare's WAF blocked iframe, script and img tags, but an object tag bypassed the filter and still loaded attacker-controlled content.
Published on infosecwriteups.com
Raymond Van Wart
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 inject HTML that loads external content in a victim's browser, though the report does not demonstrate script execution beyond the WAF bypass.
What the attacker needed
Victim visits a crafted link; widget is publicly reachable
The fix
The input passed to the agencyId parameter should be sanitised, and public access to the widget removed if it is not meant for customers.
How it was found
- Gather archived URLs for the target with a passive tool and filter them for reflected input.
- Find a broker widget that renders HTML and reflects the AgencyId parameter.
- Try an iframe payload and observe the WAF blocking it, as with script and img tags.
- Fuzz the homepage with a list of HTML tags to find one the WAF allows.
- Use an object tag pointing at an external listener to bypass the WAF.
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.
A web page took a value from the address bar and put it straight into the page without cleaning it. That lets an attacker make the page load content from their own server, which can run code in a visitor's browser. A web application firewall (a filter in front of the site) tried to block the obvious tricks but missed one.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.