Bug Chain: pre-auth takeover to permanent access.
The application created accounts from an email address without verifying ownership, allowing an attacker to pre-register an account with a victim's email. The attacker could then invite a second email as an owner via a request parameter that was only restricted in the front end, creating a permanent backdoor that the victim could not remove.
Grey here! In this blog, I’ll share how I escalated a normal pre-authentication account takeover into a permanent access backdoor.
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 application trusted client-side restrictions for the staff access level and did not verify email ownership during account creation, combined with a business logic flaw that prevented owners from deleting other owners.
Impact
An attacker could take over a victim's business account before the victim registers and maintain permanent access via a second owner account that the victim cannot remove.
What the attacker needed
Victim's email address known; victim has not yet registered
The fix
The application should verify email ownership during account creation and enforce role restrictions on the server side, and should allow owners to remove other owners.
How it was found
- Create an account using the victim's email address on the free trial form.
- Invite a second email address as a manager and capture the HTTP request.
- Change the staff_access_level value from manager to owner and send the request.
- Recover the password of the victim's account to confirm access to the business.
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 for a service, the site should check that the email address really belongs to you, usually by sending a confirmation link. Here, the site skipped that check, so anyone could create an account using someone else's email before that person signed up. The attacker then used a hidden setting to add a second owner to the business, and the site's rules made it impossible for the real owner to remove that second owner.
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.