Documentation
README
CORS Misconfiguration Attack
Objective
Identify Cross-Origin Resource Sharing misconfigurations that allow unauthorized cross-origin access to sensitive data or APIs.
Testing Methodology
Phase 1: Origin Reflection Detection
Test if the server reflects arbitrary origins in Access-Control-Allow-Origin:
# Automated CORS checker (bundled script)
attack_script cors_checker https://TARGET/api/endpoint --json-output
Manual tests:
# Arbitrary origin
curl -s -H "Origin: https://evil.com" TARGET_URL -D- | grep -i "access-control"
# Subdomain bypass
curl -s -H "Origin: https://TARGET.evil.com" TARGET_URL -D-
# Null origin
curl -s -H "Origin: null" TARGET_URL -D-
# HTTP downgrade
curl -s -H "Origin: http://TARGET" TARGET_URL -D-
This is the opening of the README. Read the full README on GitHub.