Cyber Risks · PortSwigger Research

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