1. Executive Summary & Scope
Password reset and account recovery flows represent one of the highest-value targets for attackers. Flaws in state transitions—such as allowing step 3 (reset password) to execute without completing step 2 (verify SMS code), or issuing reset tokens that fail to invalidate upon usage—permit complete account takeovers.
2. Threat Model & Attack Vectors
An attacker manipulates hidden form fields, reuses historical reset tokens, or exploits session desynchronization to change passwords on victim accounts without knowledge of previous credentials.
3. Code Analysis & Remediation Playbook
Vulnerable Implementation Pattern
Hardened Defense-in-Depth Implementation
4. Audit Verification Checklist & Pass Criteria
| Verification Phase | Audit Test Description | Mandatory Passing Criteria |
|---|---|---|
| Token Replay Verification | Attempt to submit identical password reset token two times consecutively. | Second attempt is immediately rejected with invalid token error. |
| Session Invalidation Verification | Verify that changing the password immediately terminates all existing active web and mobile sessions. | Existing session cookies are completely invalidated. |
| Enumeration Resistance | Submit password reset request for existing vs non-existent email addresses. | Response message, HTTP code, and response latency are identical, preventing user enumeration. |
WebOTG Application Security Directorate
WebOTG provides benchmark reference documentation, automated matrix evaluators, and security test harnesses for government digital platforms, WQMS architectures, and STQC compliance frameworks.