The Ghost Email: How Weak Validation Broke Authentication
An email address entered during an incomplete registration on one subdomain was stored without verification, while a separate partners subdomain used that same email for login and password reset. An attacker could use the password reset flow to set a password and log in to the partners portal with an account that was never fully created.
medium.com
Published on medium.com
Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.
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 registration flow stored the email before OTP verification completed, and the partners portal trusted that unverified email as an existing identity for login and password reset.
Impact
An attacker could take over a partners portal account using only an email address entered during an incomplete registration, without ever passing OTP verification.
What the attacker needed
Access to the registration page; an email address you control; no OTP needed for the email
The fix
The application should verify the email before storing it as a usable identity, and the partners portal should not treat unverified emails as existing accounts for login or password reset.
How it was found
- Register on the app subdomain with an email, phone number and password, then stop at the OTP screen.
- Note that the OTP only goes to the phone and the email is never verified.
- Go to the partners subdomain forgot password page and enter the same email.
- Receive a password reset link for that email and set a new password.
- Log in to the partners portal with that email and the new password.
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, a site often asks for an email. Normally it should check that the email really belongs to you before trusting it. Here the site saved the email without checking it, and a different part of the same site later treated that email as a real account, so a password reset could be used to get in.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.