OWASP Top 10 Self-Audit Checklist for an Endpoint
Quick but rigorous per-endpoint security check during development — paste the handler code and get a vulnerability verdict per OWASP category.
Audit THIS endpoint for the OWASP Top 10 (2021) and API Security Top 10. Method/path: {{POST /api/v1/...}} Handler code + middleware: {{CODE}} Auth model: {{who should access; roles}} Go category by category with verdict VULNERABLE / SAFE / NEEDS-INFO and cite the exact code or missing control: A01 Access Control: authentication required? object-level ownership check using server-side identity (not client IDs)? tenant isolation? forced browsing? A02 Crypto: secrets/encryption correct? custom crypto? A03 Injection: parameterized SQL? shell/command? NoSQL/operator injection? template injection? argument injection into libraries? A04 Insecure Design: business-logic abuse (negative quantity, price tampering, coupon reuse, step skipping, race at checkout)? A05 Misconfiguration: debug endpoints, default creds, permissive CORS, verbose errors? A06 Vulnerable Components: known-vuln libs visible from imports? A07 Auth failures: session/token validation, brute-force protection, enumeration? A08 Integrity: untrusted deserialization, SSRF via URL fields, webhook targets? A09 Logging: are sensitive actions logged without leaking secrets? A10 SSRF/redirects: user-controlled URLs fetched/redirected? Then provide concrete exploits (as HTTP requests) for each real issue and minimal fixes; finish with negative tests that must exist before merge. ================================================================================
自动翻译
自动翻译中…