Practice ยท 2 of 3
Endpoint Audit
CHALLENGE
Difficulty: intermediate+25 XP
Write auditEndpoints(routes) โ routes is an array of { path, method, authRequired, rateLimited, validatesInput }. A route is CRITICAL when: authRequired false AND method !== "GET"; or rateLimited false AND path includes "login|register|reset". A route is a WARNING when it validatesInput false. Return { critical: n, warnings: n }. State-changing unauthenticated routes are the classic breach vector.
Press Submit to check your solution.
Back to lesson: Practice: Secure the App โ Practice