Back to Findings

Broken Authentication - Password Reset Token Reuse

HighOpenCVSS 3.1: 7.4CWE-640
TWP-004Tamkeen Web Portal9 months ago
Description

Password reset tokens are not invalidated after use. An attacker who intercepts a reset token can reuse it multiple times to change the password, even after the legitimate user has already reset their password.

Proof of Concept
Request a password reset, use the token to change the password. Use the same token again — the password change succeeds a second time.
Remediation

Invalidate password reset tokens immediately after first use. Set a short expiration (15 minutes maximum). Store tokens hashed in the database.

Details
Affected Assethttps://app.tamkeen.sa/auth/reset-password
CVSS Score7.4
CVSS VectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
CWECWE-640