MediumScenarioAppSec and OWASP scenarios
A pen test finds that changing /api/orders/123 to /124 shows another user's order. What is it and how do you fix it?
What a good answer covers
Broken object level authorisation (IDOR). Enforce ownership checks server-side on every object access using the authenticated identity, use central authorisation middleware, add tests, and do not rely on unguessable IDs.
PreviousHow would you triage thousands of vulnerability scanner findings?Next A search page reflects input into HTML and an attacker steals session cookies. Describe the defences.
More on AppSec and OWASP scenarios
Flashcards for this topic- MediumA search page reflects input into HTML and an attacker steals session cookies. Describe the defences.
- HardYour API accepts a URL to fetch images and an attacker reaches the cloud metadata endpoint. What is the attack and mitigation?
- MediumHow does parameterised querying prevent SQL injection?
- MediumA JWT-protected API accepts tokens with alg none. What went wrong?