Email Verification Bypass via Remember Me
A website allowed users to log in with an unverified email address when the 'remember me' option was selected, and then reach the dashboard by removing the pending-verification path from the URL. An attacker could create accounts with unverified or temporary email addresses and still access the application.
infosecwriteups.com
Published on infosecwriteups.com
We need to understand that bug 🐞 hunting is not a step by step process all the way. You need to think like this- “If I do this that what will happen”.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely broken authentication and session management: the remember-me login path did not check the email-verification state, and the dashboard route trusted that state.
Impact
An attacker could access the dashboard with an unverified email address, bypassing the email-verification requirement; the author notes the bug was not fixed at the time of writing.
What the attacker needed
Ability to sign up with an email address; victim or attacker controls the unverified account
The fix
The login and dashboard routes should check the email-verification state on every request, including remember-me sessions, rather than relying on URL paths.
How it was found
- Submit the signup form with an email and password.
- Get redirected to a pending-verification URL with a random token.
- Remove the pending-verification path from the URL and go to the site root.
- Log in with the same unverified email and password, ticking 'remember me'.
- Get redirected back to the pending-verification URL.
- Remove the pending-verification path again to reach the dashboard.
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 write-up has not been written yet. The Original tab links to the source.
When you sign up, many sites send a link to your email to prove the address is real. This site skipped that check if you ticked 'remember me' at login, and then let you into the dashboard by editing the web address. That means someone could use a fake or temporary email and still get in.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.