[www.drive2.ru] Insufficient Session Expiration - Previously issued email change tokens do not expire upon issuing a new email change token
When a user requested a new email change verification code, previously issued codes remained valid instead of expiring. An attacker holding an older code could still use it to confirm an email change even after a newer code was generated.
- Triaged in under an hour
- Fixed in 7 months
- Disclosed after 7 months
Summary by the program
The email verification code was not expired when a new one was generated. It was fixed.
Summary by the researcher
###Summary When a user changes their email, they can receive a verification code in the changed email. This verification code will be used when changing your email.
but, drive2.ru can reuse a corrupted verification code because the previously issued email change verification code does not expire when a new email change verification code is issued due to improper session expiration.
###Risk There are currently no immediate security risks. However, according to OWASP, old sessions must expire when requesting a new session, so it may be best security practice to expire old unused verification codes when issuing a new verification code.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application stored each new email change code without invalidating or expiring the previously issued ones, so multiple codes stayed valid at once.
Impact
The researcher states there are no immediate security risks, but notes that old unused codes should expire as a security best practice.
What the attacker needed
A user account; ability to request email change codes
The fix
The issue was fixed, and the recommended practice is to expire old unused verification codes whenever a new one is issued.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you change your email address, the site sends a short code to prove the new address is yours. Normally, asking for a fresh code should cancel the old one so only the newest works. Here the old codes kept working, so anyone who still had an earlier code could use it later.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.