{"uid":"cap_DF3WaKBx4ZM75blWELZ4T","slug":"brainiac-cors-policy-audit-01a47f80","name":"BRAINIAC CORS Policy Audit","description":"Read CORS response headers. When an origin is supplied, it is sent once on the public GET. A wildcard, or a reflected origin with credentials, is confirmed. No other origins are tried.","url":"https://www.brainiac.software/api/v1/security-configuration/cors-policy-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tls":{"type":"object","properties":{"issuer":{"type":"string","maxLength":200},"subject":{"type":"string","maxLength":200},"validTo":{"type":"string","maxLength":80},"protocol":{"type":"string","maxLength":40},"validFrom":{"type":"string","maxLength":80},"authorized":{"type":"boolean"},"hostnameMatches":{"type":"boolean"}},"additionalProperties":false},"url":{"type":"string","pattern":"^https?:\\/\\/\\S+$","maxLength":2000,"minLength":8},"paths":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":4},"origin":{"type":"string","maxLength":200,"minLength":8},"headers":{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","maxLength":80,"minLength":1},"value":{"type":"string","maxLength":4000}},"additionalProperties":false},"maxItems":40},"endpoints":{"type":"array","items":{"type":"string","pattern":"^https?:\\/\\/\\S+$","maxLength":2000,"minLength":8},"maxItems":4},"transport":{"enum":["http","https"],"type":"string"},"setCookies":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":20},"contentSecurityPolicy":{"type":"string","maxLength":8000},"contentSecurityPolicyReportOnly":{"type":"string","maxLength":8000}}},"responseSchema":{"type":"json","example":{"status":"checked","finalUrl":"","findings":[{"code":"cors_wildcard","kind":"confirmed","detail":"The response allows any origin.","subject":"access-control-allow-origin"},{"code":"cors_wildcard_credentials","kind":"confirmed","detail":"The response allows any origin and also allows credentials.","subject":"access-control-allow-credentials"},"…"],"checkedAt":"2026-11-03T16:00:00.000Z","httpStatus":0,"allowOrigin":"*","limitations":["These checks do not show that a website is secure.","Only one public GET is sent per supplied URL or path. No login, brute force, exploit, or credential test is attempted.","…"],"allowMethods":"","requestedUrl":"","requestsSent":0,"websiteSecure":false,"confirmedCount":2,"allowCredentials":"true","unavailableCount":1,"securityDetermined":false,"recommendationCount":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6_hOd443MkGVi8LbO81ON","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Audits a web endpoint's CORS policy and security headers, returning confirmed misconfigurations and unavailable checks.","exampleAgentPrompt":"Can you audit the CORS policy on https://api.myapp.com checking from origin https://evil.example.com, and also check the paths /users and /data for any wildcard or credential-leaking misconfigurations?","exampleUseCases":[{"title":"Pre-launch API security review","prompt":"Before we go live, can you check https://api.myproduct.com for CORS misconfigurations — especially whether it reflects arbitrary origins or allows credentials with a wildcard — using origin https://attacker.example.com?"},{"title":"Catching credential-leaking CORS bug","prompt":"I think our staging server at https://staging.internal.io might be returning Access-Control-Allow-Credentials: true with a wildcard origin — can you confirm by auditing its CORS policy with origin https://test.example.com?"},{"title":"Third-party integration security check","prompt":"We're integrating with a vendor API at https://partner-api.vendorsite.com — can you audit its CORS headers and TLS setup, checking paths /v1/orders and /v1/payments from our origin https://app.ourcompany.com?"}],"resultDescription":"A JSON object with a list of findings (each with a code, kind of 'confirmed' or 'unavailable', detail, and subject header), the final and requested URLs, the detected allow-origin and allow-credentials values, counts of confirmed issues and recommendations, a websiteSecure boolean, number of requests sent, a checkedAt timestamp, and a limitations disclaimer list.","failureModes":["Target URL is unreachable or returns a non-HTTP error — findings may be empty or httpStatus 0","No origin supplied — cors_origin_untested finding returned, reflection not tested","Rate limiting or firewall on target blocks the probe request — unavailable findings returned","Malformed URL input rejected with validation error","TLS mismatch or expired certificate on target — may appear in TLS findings or cause connection failure"],"whenToPreferThis":"Use this endpoint when you need a lightweight, no-account, pay-per-call CORS and security header audit without spinning up a full scanner. It is ideal for spot-checking individual endpoints before deployment, verifying third-party API configurations, or integrating a quick security gate into an agent workflow. It is not a full penetration test and does not attempt authentication or brute force — prefer it for passive header analysis rather than deep vulnerability scanning.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:35:19.891Z","isFirstParty":false,"canonicalSlug":"brainiac-cors-policy-audit-01a47f80"}