sc-cors

Detect CORS misconfigurations in web APIs and services.

7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/fatihkan/badi --skill sc-cors-fatihkan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-cors
Source: https://github.com/fatihkan/badi/tree/main/.claude/skills/security-check/sc-cors
Command: npx skills add https://github.com/fatihkan/badi --skill sc-cors-fatihkan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects CORS misconfigurations that allow unauthorized cross-origin access, including wildcard origins with credentials, reflected origins, null origins, and regex-based bypasses.

Core Features & Use Cases

  • Automated detection of common CORS misconfigurations in web APIs and frontend backends.
  • Security auditing for applications exposing sensitive endpoints or using credentials with wildcards.
  • Use Case: During a code review, run this skill to identify risky CORS settings before deployment.

Quick Start

Run a lightweight scan against your HTTP services to reveal risky CORS configurations.

Frequently Asked Questions about sc-cors

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect CORS misconfigurations in my web API?

Detect CORS misconfigurations by scanning your web APIs for risky settings like wildcard origins with credentials, reflected origins, and regex bypasses. This automated process returns structured findings to enforce strict origin whitelisting during security audits.

What are common CORS vulnerabilities that allow unauthorized cross-origin access?

Common CORS vulnerabilities include using wildcard origins with credentials, reflecting arbitrary origins, allowing null origins, and implementing flawed regex-based whitelists. These misconfigurations expose sensitive endpoints to unauthorized cross-origin access.

Can I run a CORS security check during a code review or CI pipeline?

Yes, you can run a lightweight CORS security check during code reviews or within CI pipelines. It applies to web APIs and services relying on Access-Control-Allow-Origin, returning structured findings before deployment.

How does credential handling affect CORS security audits?

Credential handling affects CORS security audits by exposing risks when Access-Control-Allow-Credentials is true with wildcard or reflected origins. Auditing checks these configurations to prevent unauthorized cross-origin access to sensitive endpoints.

What is the best way to prevent regex bypasses in CORS origin whitelisting?

The best way to prevent regex bypasses in CORS origin whitelisting is to apply automated detection against your HTTP services. This identifies flawed regex patterns and enforces strict origin whitelisting to stop unauthorized cross-origin access.