Loading lesson…
Level 1 · Apprentice0 XP
Validate everything, expose only what is needed, and assume the client is hostile.
Step 1 / 6
ProblemThe app only lets users enter a quantity from 1 to 10. Someone calls the API directly with quantity -50 and gets a refund. The server trusted the app.
← → step
Before this: Cryptography for developers
🛠️ 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 write endpoint. Replace any entity binding with an explicit request type, add validation annotations, a body size limit and a per-user rate limit. Try calling it directly with bad values to confirm.