Active scan check worked example - Port Swigger
Summary: PortSwigger published a worked example showing how to write an active custom scan check for Burp Scanner in Java, which sends modified requests to probe for issues Burp doesn't detect natively, such as SQL injection, server-side template injection, and command injection. The example sends two follow-up requests with forged Origin headers generated from random domains, flags an issue when the server reflects the header in Access-Control-Allow-Origin, raises severity to HIGH if Access-Control-Allow-Credentials: true is present, and adds a note when Vary: Origin is missing.
What you should know: The check tests both https and http origins and uses random domains so the application can't allowlist them - a reminder that CORS misconfigurations only surface when someone actually forges the Origin header, which native scanners may never do.
Read the original at PortSwigger Research ↗
- Topics
- Vulnerabilities & Patching
- Related
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026