Security & Auth
Code Review: Authorization & Security Bug
mediumJS / TS
Problem Statement
Review the following document sharing API endpoint. Identify the critical security flaw (Insecure Direct Object Reference - IDOR), explain how an attacker could exploit it, and implement proper authorization checks.
Includes TypeScript & JavaScript starter code
Start Interview with this Problem