cors_test
Test CORS misconfigurations by sending requests with various Origin headers to check for vulnerabilities like origin reflection and null origin trust that could allow attacker sites to read authenticated API responses.
Instructions
Test CORS misconfigurations: origin reflection, null origin trust, subdomain wildcards. Sends requests with various Origin headers and checks Access-Control-Allow-Origin and Access-Control-Allow-Credentials in the response. Misconfigurations allow attacker sites to read authenticated API responses. Returns: {results: [{test, origin_sent, acao, acac, vulnerable}], exploit_html}. Side effects: Read-only requests with custom Origin headers. Sends ~8 requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Base URL of the target application, e.g. https://target.com | |
| api_endpoint | Yes | API endpoint to test CORS on, e.g. /api/account or /api/users/me | |
| auth_cookie | No | Session cookie to include for authenticated CORS tests |