cors-csrf-auditor
SkillSecurityReviews Cross-Origin Resource Sharing configs, CSRF protections, SameSite cookies, and origin security.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the cors-csrf-auditor skill
What this skill tells your AI
The instructions your AI receives, as published by codebygarv/ai-skills in skills/security/cors-csrf-auditor/SKILL.md and read by ahel’s review.
Purpose
Audit web application endpoints for cross-origin vulnerabilities, overly permissive CORS headers (Access-Control-Allow-Origin: * with credentials), missing Anti-CSRF tokens on cookie-based state-changing endpoints, and weak SameSite cookie attributes.
When to Use
- Exposing new public or authenticated API endpoints.
- Setting up single sign-on (SSO) or cross-subdomain API sharing.
- Reviewing cookie security configurations and pre-flight HTTP headers.
What to Analyze
- CORS Headers:
- Inspect
Access-Control-Allow-Origin,Access-Control-Allow-Credentials, and wildcard reflection ofOriginheader.
- Inspect
- CSRF Defenses on Cookie-Auth:
- Double-Submit Cookie pattern, Synchronizer Token pattern, or custom request headers (
X-Requested-With).
- Double-Submit Cookie pattern, Synchronizer Token pattern, or custom request headers (
- Cookie Attributes:
SameSite=Lax/SameSite=Strict,Secure,HttpOnly, and appropriateDomainscoping.
- Preflight Request Handling:
OPTIONSresponse status, caching headers (Access-Control-Max-Age), and allowed HTTP methods/headers.
- JSON vs Form POST Vulnerability:
- Ensure endpoints cannot be triggered via simple HTML
<form>POST submissions without preflights.
- Ensure endpoints cannot be triggered via simple HTML
Output Format
- Vulnerability Assessment: High / Medium / Low risks identified.
- Remediation Configuration: Hardened CORS middleware (Node.js/Go/Python/Nginx).
- Secure Cookie Definition: Exact flags and expiration parameters.
Avoid
- Setting
Access-Control-Allow-Origin: *while simultaneously settingcredentials: true. - Reflecting any requested
Originheader without whitelist validation.
Signals
- GitHub stars
- 25
- Forks
- 1
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
cors-csrf-auditor- Source
- github.com/codebygarv/ai-skills