OWASP Top 10 (web + API), mapped to your projects
A review checklist. Each OWASP Top 10 and API Security Top 10 risk, where your projects defend against it, and where the analysis found gaps.
OWASP Top 10 (web, 2021)
| # | Risk | Defences in your projects | Gaps found |
|---|---|---|---|
| A01 | Broken Access Control | @PreAuthorize (RM), @RequirePermission (IR3D, SperoTek), tenant isolation (SperoTek), ownership checks (Store orders and users) |
Store’s missing admin/owner checks were fixed in Store PR #1. Open guest carts are by design |
| A02 | Cryptographic Failures | Argon2/BCrypt, AES-GCM key rings, hashed tokens, HTTPS/HSTS | Hostel’s plaintext refresh tokens were fixed in Hostel PR #1 |
| A03 | Injection (SQL, XSS, command) | Parameterised JPA/JdbcClient, sort whitelist, @SafeText/@NoHtml, XssFilter, ProcessBuilder args |
Check ffmpeg/yt-dlp argument handling in IR3D |
| A04 | Insecure Design | State machines, maker-checker approvals, DB invariants, rate limits | n/a |
| A05 | Security Misconfiguration | Security headers, show-details: never, separate management port |
RM CORS max-age; SperoTek Swagger public; RM CSRF disabled with a cookie JWT |
| A06 | Vulnerable Components | Recent Spring Boot 3.5/4.x, Java 25 | Add Dependabot plus dependency-check or Snyk |
| A07 | Identification & Auth Failures | MFA, passkeys, lockout, HIBP, refresh rotation and reuse detection | Hostel’s token TTL units bug was fixed in Hostel PR #1 |
| A08 | Software & Data Integrity | Webhook HMAC, signed delivery receipts, immutable ledgers, OIDC CI | Pin GitHub Actions to SHAs |
| A09 | Logging & Monitoring Failures | Audit logs, Sentry, Prometheus, correlation ids, 403 recording, SLF4J | n/a (Store’s System.out was fixed) |
| A10 | SSRF | IR3D SafeHttpFetcher (IP checks + redirect re-validation) |
Enable IMDSv2 on EC2 |
OWASP API Security Top 10 (2023)
| # | Risk | One-line defence |
|---|---|---|
| API1 | Broken Object-Level Authorization (BOLA/IDOR) | Check ownership or tenant on every /{id} |
| API2 | Broken Authentication | Short tokens, rotation, MFA, rate-limited login |
| API3 | Broken Object Property Level Authorization | Request/response DTOs; no mass assignment; don’t leak fields |
| API4 | Unrestricted Resource Consumption | Pagination caps, rate limits, upload size limits, timeouts |
| API5 | Broken Function Level Authorization | Admin endpoints locked (/admin/** role rules) |
| API6 | Unrestricted Access to Sensitive Business Flows | Bot and abuse limits on signup, checkout, referral and invite codes |
| API7 | SSRF | Same as A10 |
| API8 | Security Misconfiguration | Same as A05 |
| API9 | Improper Inventory Management | Document and version APIs; retire old ones (/api/v1) |
| API10 | Unsafe Consumption of APIs | Validate third-party responses; timeouts; verify webhooks |
Check yourself
1. #1 risk in the OWASP API Top 10?
2. Missing pagination caps and upload limits map to…