Uniform Lookup Messages
Medium About 15 min Katabench Pro
Return the same message whether or not an account exists, to stop enumeration.
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
- Information disclosure
- Keep stack traces, account existence and card numbers out of responses and logs.
Related katas
- Redact Card Numbers From Logs Medium Pro Mask every card number in a log line, in whatever shape it was written, before the line reaches log storage.
- Scrub the Error Message Easy Pro Return a safe user-facing error that never leaks internal details.
- Block Private Hosts (SSRF) Medium Free Reject internal hosts so a user-supplied URL cannot make the server call itself or its neighbors.
- Comment Renderer (HTML Injection) Easy Free Fix a stored-XSS hole in a comment renderer without breaking its output.