32KB to Chaos: Exploiting XSS and WAF Evasion in a Fintech App
A reflected XSS vulnerability was found in a loan calculator's top slider input, where a specific prefix sequence allowed HTML injection. The attacker bypassed the WAF by using a large padded payload and a video element with an event handler to execute JavaScript.
medium.com
Published on medium.com
I found a reflected XSS in the loan calculator UI of a fintech website (anonymized). Only the top of three slider controls accepted arbitrary input.
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
Root cause
Likely inconsistent input sanitisation and WAF canonicalisation gaps allowed HTML injection and execution via a video element with an event handler.
Impact
An attacker could execute arbitrary JavaScript in the context of the fintech application, potentially leading to data theft or other client-side attacks.
What the attacker needed
Victim visits a crafted URL; top slider input is used
The fix
The vendor fixed it; recommendations include canonicalising input early, using context-aware escaping, and employing a strict allowlist sanitiser.
How it was found
- Fuzz the three slider inputs with standard XSS payloads.
- Observe that only the top slider accepts arbitrary characters and requires a specific prefix to render HTML.
- Try script tags and common event handlers, which are blocked by the WAF.
- Discover that a video element with an onloadstart handler can execute JavaScript.
- Pad the payload to 32KB to bypass the WAF and achieve execution.
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.
This is a cross-site scripting (XSS) bug, where an attacker can make a website run their own JavaScript code in a victim's browser. The attacker found that one input field on a loan calculator could be tricked into accepting HTML, and then used a large amount of data to sneak past the website's security filter (WAF) and run code.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.