Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

cors-scanner

v1.0.0

Scan web endpoints for CORS misconfigurations. Detect origin reflection, wildcard policies, null origin acceptance, credential leaks, subdomain trust, HTTP o...

0· 70· 1 versions· 0 current· 0 all-time· Updated 7h ago· MIT-0

Install

openclaw skills install cors-scanner

CORS Misconfiguration Scanner

Scan web endpoints for dangerous Cross-Origin Resource Sharing policies. Detect misconfigurations that could allow attackers to steal data cross-origin.

Quick Scan

python3 scripts/cors_scan.py https://api.example.com

Batch Scan

python3 scripts/cors_scan.py https://api1.com https://api2.com https://api3.com

Output Formats

# Text (default)
python3 scripts/cors_scan.py <url>

# JSON
python3 scripts/cors_scan.py <url> --format json

# Markdown report
python3 scripts/cors_scan.py <url> --format markdown

CI/CD Integration

# Fail if any URL grades below C
python3 scripts/cors_scan.py https://api.example.com --min-grade C
echo $?  # 0 = pass, 1 = fail

What It Checks (13 checks)

CheckSeverityDescription
Origin reflectionCritical/HighServer reflects arbitrary Origin back as ACAO
Credentials + wildcardCriticalACAO: * with ACAC: true (browser-blocked but misconfigured)
Null origin acceptedHigh/MediumOrigin: null trusted (exploitable via sandboxed iframes)
HTTP origin on HTTPSHighHTTPS endpoint trusts HTTP origins (MitM risk)
Subdomain wildcardHighTrusts any subdomain (*.domain.com)
Third-party originHighConfirms reflection with different attacker domain
Private network accessHighAllows external sites to reach internal network
Wildcard origin (*)MediumACAO: * on potentially sensitive endpoints
Sensitive headers exposedMediumExposes auth/session headers cross-origin
Wildcard methodsMediumACAM: * allows any HTTP method
Wildcard headersMediumACAH: * allows any custom header
Missing max-ageLowNo preflight caching, increased latency
CleanInfoNo misconfigurations detected

Grading

GradeMeaning
ANo CORS issues detected
BMinor issues (low severity)
CModerate issues (medium severity)
DSerious issues (high severity or multiple medium)
FCritical misconfigurations (origin reflection + credentials)

Requirements

  • Python 3.6+
  • No external dependencies (stdlib only)

Examples

$ python3 scripts/cors_scan.py https://httpbin.org/get
CORS Scan: https://httpbin.org/get
Grade: A
Findings: 0
============================================================

⚪ [INFO] No CORS misconfigurations detected
  The scanned endpoint does not appear to have dangerous CORS policies.

Version tags

latestvk97ef25x58gjhkmzxh575h4h3n84na1m