5 XSS refletidos e 1 HTML Injection em menos de 10 minutos
Several subdomains had search fields that reflected user input without proper filtering, allowing HTML injection and, with a payload that bypassed the WAF, reflected XSS. An attacker could run script in a victim's browser via a crafted search link.
[## GitHub - hahwul/dalfox: 🌙🦊 Dalfox is a powerful open-source XSS scanner and utility focused on…
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 the search parameter was reflected into the page without output encoding, and the WAF's blocklist missed an alternative HTML event-handler payload.
Impact
Reflected XSS could let an attacker run script in a victim's browser when the victim opens a crafted search link, though a WAF blocked the simplest payloads.
What the attacker needed
Victim clicks a crafted search link; WAF-bypassing payload needed
How it was found
- Enumerate subdomains of the target domain with the recon tool.
- Visit active subdomains and find the search field.
- Try a simple script payload; the WAF blocks it, but an HTML injection payload is accepted.
- Use the XSS scanner to find a payload the WAF does not filter.
- Collect URLs containing 'search' and test the same fields on the other similar subdomains.
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 search box on several websites showed back whatever you typed without cleaning it up. That let someone type HTML or JavaScript that the site then ran in other visitors' browsers, so a crafted link could run code for whoever clicked it. A web application firewall (a filter that blocks bad requests) stopped the simple attempt but not a more cleverly written one.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.