Level 1 · Apprentice0 XP
Being logged in is not the same as being allowed. And keys do not belong in code.
Step 1 / 5
ProblemA user opens /invoices/1001 and sees their invoice. They change it to 1002 and see someone else's. The server checked that they were logged in. It never checked that invoice 1002 was theirs.
← → step
Before this: Zero trust: passkeys and service identity
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Pick one endpoint that returns an object by id, such as GET /orders/{id}. Write the test 'user A cannot read user B's order' first, watch it fail if the check is missing, then add the ownership check. Finally search the repository for anything that looks like a key or password.