Password Reset Token Scope
Medium About 20 min Katabench Pro
Bind a verified reset token to its subject, purpose, validity window, and one-time state.
The full brief is part of Katabench Pro
Pro opens this kata's brief, its starter code and its grader. To see how the track works first, try Block Private Hosts (SSRF), which is free.
How it is graded
Functional tests and adversarial payloads both have to pass before the solution is accepted.
What it practices
- Authorization
- Scope access by tenant, subject, purpose and delegated capability, not ownership alone.
- Numeric abuse
- Defend arithmetic against overflow, negative amounts and out-of-range values.
Related katas
- Quantity x Price Overflow Medium Pro Compute an order total that can't be wrapped by integer overflow.
- Tenant-Scoped Authorization Medium Pro Close a cross-tenant authorization hole that ownership and role checks alone cannot see.
- Validate an Attenuated Delegation Chain Hard Pro Validate every grant ancestor so a delegated capability cannot regain permissions, extend expiry, or switch resources.
- Clamp the Page Size Easy Pro Bound a user-requested page size so a huge value cannot exhaust the server.