Cross-Site Scripting Scan

Medium

Crawls the site and tests every parameterised URL for reflected and DOM cross-site scripting using katana and dalfox. Requires domain verification.

Estimated fix time: 1-3 hours

What this check runs

This check crawls your site with katana to discover URLs that take parameters, then runs dalfox against each one. dalfox injects cross-site scripting payloads into every parameter and watches for them to come back unencoded, confirming the serious ones by executing the page in a headless browser.

The crawl stays on your hostname and is capped in depth and size, so the scan is a sample of your most reachable pages rather than an exhaustive sweep.

Why it matters

Cross-site scripting lets an attacker run their own script in your users' browsers, with your users' sessions. From there they can steal credentials, read private pages and change what the page shows. It remains one of the most common web vulnerabilities because it hides in every place user input is echoed back.

What the findings mean

Findings are rated by how sure the scanner is. A verified finding executed in a browser and is exploitable: fix it first. A reflected finding means the input came back into the page unencoded and is very likely exploitable. A pattern finding means a payload fragment was echoed back; confirm it by hand.

The fix is the same in every case: encode output for the context it lands in, keep your template engine's escaping on, and deploy a Content-Security-Policy that blocks inline scripts. See how to fix this.

Automatically detect this issue

StackShield can automatically scan your Laravel application for this security issue and alert you when it's detected.

Start Free Trial
Was this guide helpful?