Skip to main content

Practice ยท 2 of 3

Endpoint Audit

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.

Difficulty: intermediate

Back to lesson: Practice: Secure the App โ€” Practice