Skip to main content

Practice ยท 3 of 3

IDOR Detector

Write findIdor(routes) โ€” routes is an array of { path, hasOwnershipCheck, method }. A route is an IDOR risk when its path contains ":id" (or "/:id/") and hasOwnershipCheck is false. Return the risky paths sorted alphabetically. GET routes count too โ€” reads leak data.

Difficulty: intermediate

Back to lesson: Practice: Authorization Guards โ€” Practice