Check code for OWASP top 10 vulnerabilities including injection, XSS, auth issues, and secrets exposure. Use when user says "security audit", "check for vulnerabilities", "security scan", "is this secure", "OWASP check", "find security issues", or needs to verify code security before shipping.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Check code for OWASP top 10 vulnerabilities including injection, XSS, auth issues, and secrets exposure. Use when user says "security audit", "check for vulnerabilities", "security scan", "is this secure", "OWASP check", "find security issues", or needs to verify code security before shipping.
user-invokable
true
args
[{"name":"target","description":"The file, directory, or feature to scan (optional)","required":false}]
metadata
{"author":"builder-skills","version":"1.0.0"}
Scan code for OWASP Top 10 vulnerabilities. Report severity-rated findings with file:line references and fix recommendations. Flag what matters; skip what doesn't apply.
Scan Categories
Work through each OWASP category. For each, search for the specific code patterns listed.
1. Injection (A03:2021)
Pattern to find
Risk
What to verify
String concatenation in SQL queries
SQL injection
Use parameterized queries / prepared statements
Template literals in database calls
NoSQL injection
Use query builders or ORM methods with bound parameters
exec(), spawn(), system() with user input
Command injection
Validate/whitelist input, avoid shell execution
User input in LDAP filters
LDAP injection
Escape special characters, use parameterized filters
User input in regex constructors
ReDoS
Validate regex complexity, use re2 or set timeouts
eval(), Function(), vm.runInContext()
Code injection
Remove entirely; never evaluate user-controlled strings
2. Broken Authentication (A07:2021)
Pattern to find
Risk
What to verify
Plain-text password storage
Credential theft
Use bcrypt/scrypt/argon2 with proper work factor
Missing rate limiting on login endpoints
Brute force
Implement rate limiting and account lockout
Session tokens in URLs or localStorage
Session hijack
Use httpOnly secure cookies
JWT without expiration or with weak signing
Token forgery
Set short exp, use RS256 or ES256, rotate keys
Missing MFA on sensitive operations
Account takeover
Require step-up auth for destructive actions
Hardcoded credentials or default passwords
Unauthorized access
Use environment variables and secrets management
3. Sensitive Data Exposure (A02:2021)
Pattern to find
Risk
What to verify
API keys, tokens, passwords in source
Credential leak
Move to environment variables / secrets manager
Secrets in log output
Log exfiltration
Redact sensitive fields before logging
Missing TLS / HTTP used for sensitive data
Man-in-the-middle
Enforce HTTPS, use HSTS header
PII in error responses
Information disclosure
Return generic errors to clients, log details server-side