| name | security-review |
| description | Review code for security vulnerabilities aligned with OWASP Top 10:2025. Use when asked to audit, review, or check code for security issues including SQL injection, path traversal, authentication flaws, broken access control, and cryptographic failures in Go backend or React frontend code. |
Security Review
When to Use
- Reviewing PRs or code changes for security issues
- Auditing existing code for vulnerabilities
- Checking that new endpoints follow security patterns
- Validating input handling and authentication flows
Procedure
1. Identify Attack Surface
- List all user inputs: URL params, query strings, request body, headers, file uploads
- List all external data sources: metadata APIs, indexer responses, download client callbacks
- List all file system operations: library scan, book import, cover caching, backup
2. Check OWASP Top 10:2025
For each file/change, verify against these categories:
A01 — Broken Access Control
A02 — Security Misconfiguration
A03 — Supply Chain
A04 — Cryptographic Failures
A05 — Injection
A07 — Authentication Failures
A09 — Logging Failures
A10 — Exception Handling
3. Go-Specific Checks
4. Report Format
For each finding:
**[SEVERITY]** Brief title
- File: path/to/file.go:42
- Issue: Description of the vulnerability
- Impact: What an attacker could achieve
- Fix: Specific code change recommended
Severities: CRITICAL, HIGH, MEDIUM, LOW, INFO