Fix predictable password-reset tokens
Not solvedReset tokens come from Math.random() and the clock, and stay valid for a week. Make them unguessable and short-lived.
- Level
- Foundational
- Estimated time
- ~15 min
- Points
- 0/70 pts
- Questions
- 0/0 answered
- OWASP
- A04:2025
- OWASP
- A07:2025
- CWE
- CWE-330
- CWE
- CWE-640
reset-token.js
Test results
Run the tests to check your code. It runs on the server in an isolated sandbox with no network access.