test_cors
Test a URL for CORS misconfigurations by sending requests with varied Origin headers to uncover origin reflection, null origin acceptance, and credential-based access risks.
Instructions
Test a URL for CORS (Cross-Origin Resource Sharing) misconfigurations.
Sends requests with various Origin headers to detect if the server blindly reflects origins, allows null origins, or permits arbitrary cross-origin requests with credentials.
Common CORS vulnerabilities detected:
Origin reflection (server echoes back any Origin header)
Null origin acceptance (dangerous with sandboxed iframes)
Subdomain wildcard bypass (e.g. evil.target.com accepted)
Credentials with wildcard (Access-Control-Allow-Credentials: true + *)
Trusted origin misconfiguration (pre-domain spoofing)
Args: url: Target URL to test. custom_origins: Additional origin values to test. timeout_seconds: HTTP request timeout in seconds.
Returns: CORS test results with identified vulnerabilities and evidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| custom_origins | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||