Critical Auth Bypass: How Forgot Password Feature Allowed Unverif
An unverified user could bypass admin verification by using the password reset feature, which automatically logged them in without checking their verification status. This allowed full access to the application's dashboard and features.
Muhammad Rizqi Ramadhan Follow
Published on medium.com
In many modern applications, admin account verification is a crucial security layer to ensure only authorized users can access the system. However, logical flaws in authentication implementations often leave critical gaps open for attackers to exploit.
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 the password reset flow creates an active session without verifying the account's verification status, and there is a lack of access control checks on subsequent pages.
Impact
An unverified user could gain full access to the application, bypassing admin verification controls.
What the attacker needed
Ability to sign up; access to email for reset link
The fix
The system should not log in users immediately after password reset; instead, redirect to login and check verification status, and enforce verification checks on every session and endpoint.
How it was found
- Sign up as a new user with the required details.
- Attempt to log in and observe the error that the account is not verified.
- Go to the login page and request a password reset.
- Open the reset link from the email and set a new password.
- After resetting, the user is automatically logged in and can access 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.
Some websites require an admin to approve your account before you can log in. This report shows that if you used the 'forgot password' link, the site would log you in straight away without checking if you were approved. That meant anyone who signed up could get in without waiting for approval.
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.