/uitkit:security:cors-config [server file or framework config]from uitkit
Audits CORS configuration in specified server files or framework configs (default: scan all entrypoints) for misconfigurations enabling cross-origin attacks. Outputs findings with severity, attack scenarios, and fixes.
Ships in uitkit. Installing the plugin adds it to Claude Code.
Audit the CORS (Cross-Origin Resource Sharing) configuration in $ARGUMENTS (default: scan all server entrypoints, middleware files, and framework configs) for misconfigurations that enable cross-origin attacks.
1. Locate CORS configuration
Find all places CORS headers are set:
cors() middleware, manual res.setHeader('Access-Control-Allow-Origin', ...)CORS_ALLOWED_ORIGINS, CORS_ALLOW_ALL_ORIGINS, django-cors-headers settingsCORSMiddleware parameters@CrossOrigin, WebMvcConfigurer.addCorsMappingsadd_header Access-Control-Allow-Origin directives2. Check for wildcard origin with credentials
The most critical misconfiguration:
Access-Control-Allow-Origin: * combined with Access-Control-Allow-Credentials: true?3. Check for origin reflection
Origin request header directly into Access-Control-Allow-Origin without validation?request.headers.origin or $_SERVER['HTTP_ORIGIN'] and echoes it into the response header.* but bypasses the credentials restriction.4. Validate the allowed origins list
origin.startsWith('https://example.com') allows https://example.com.attacker.comorigin.endsWith('example.com') allows https://attackerexample.comnull origins permitted? (triggered by sandboxed iframes and file:// — almost never appropriate)5. Check preflight handling
OPTIONS preflight requests handled and returning correct Access-Control-Allow-Methods and Access-Control-Allow-Headers?Content-Type: text/plain)?6. Check exposed headers
Access-Control-Expose-Headers include headers that leak sensitive info (e.g., internal service names, session tokens, user IDs)?7. Check per-route vs global config
Output format:
## CORS Audit
### Findings
[SEVERITY] [file:line or config key] — description
Attack scenario: what an attacker can do from a malicious origin
Fix: exact configuration change
### Current Allowed Origins
[List each configured origin and whether it's appropriate]
### Recommended Configuration
[Paste a corrected config snippet for the framework in use]
Severity: Critical (origin reflection or wildcard+credentials), High (overly broad regex), Medium (null origin, excess exposed headers), Low (preflight gaps on non-sensitive routes).
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid input, skills: Invalid input
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
500 commands in this plugin
/ai-engineering:agent-scaffoldAgent ScaffoldScaffold a multi-step Claude agent with tool use, memory, and a defined stopping condition/ai-engineering:de:agent-scaffoldAgent ScaffoldEinen mehrstufigen Claude-Agent mit Tool-Use, Memory und einer definierten Stoppbedingung aufbauen/ai-engineering:de:eval-harnessEval HarnessOther plugins' commands for the same job