hard20 pts · first answer countsauthenticationrace-conditionspassword-reset
A reset link used twice at once
Two requests use the same password reset token at the same moment, and both succeed. The code reads the token, checks used = false, then sets used = true. What is the fix?
Discussion 0
Join free to post in the discussion.
Related questions
- How to store passwordsBackend Developer
- What HttpOnly does on a cookieBackend Developer
- Authentication versus authorizationBackend Developer
- What a password salt is forBackend Developer
- Is HTTP Basic auth encryptedBackend Developer
- Sending an access token to an APIBackend Developer
- What the Secure cookie flag doesBackend Developer
- Header that goes with a 401Backend Developer