Account pre-Takeover on https://pontoon.mozilla.org/ because pontoon allows unverified email change different from Firefox Account email
Pontoon allowed an attacker to change their account email to the victim's Firefox Account email before the victim registered. When the victim later signed up via Firefox OAuth, the attacker's session was logged into the victim's account, enabling account pre-takeover.
- Fixed in 6 days
- Paid in 23 days
- Disclosed after 6 days
hello everyone, welcome to 2022.
I see that registering an account at https://pontoon.mozilla.org/ can only use oauth Firefox, meaning you are only allowed to create an account with the same email as your Firefox account. when the victim has not registered a pontoon account and the attacker precedes registering with the victim's Firefox email, the victim's account will be taken in full by the attacker, I think this is also an error in OAuth Firefox which states logging in using the attacker's email and still logging in to the victim's account after changing the email on pontoon mozilla.
Production steps:
1. The attacker creates an account https://pontoon.mozilla.org/ and changes the email to the victim's Firefox email
2. Then the victim also registers an account https://pontoon.mozilla.org/ with OAuth provided by Firefox
3. without the victim knowing, even though the attacker logs in using his email (oauth Firefox) he still logs into the victim's account
POC details (Videos) :
- https://drive.google.com/file/d/1FXxZuexgZZfBcb0z-hK4pYcZ8E3Ccjs8/view?usp=sharing
impact :
there's no way the victim can fix the account taking over again due to an error in oauth Misconfiguration in Firefox
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 Pontoon did not verify that the email changed on its side matched the Firefox Account email, and it linked accounts by email rather than by a unique OAuth identifier.
Impact
The attacker could take over the victim's Pontoon account, and the victim may have no way to recover it due to the OAuth misconfiguration.
What the attacker needed
Victim has not registered a Pontoon account; attacker knows victim's Firefox email; attacker registers first
How it was found
- The attacker creates a Pontoon account and changes its email to the victim's Firefox email.
- The victim registers a Pontoon account using Firefox OAuth.
- The attacker logs in with their own Firefox OAuth and is logged into the victim's account.
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 sign in with another service like Firefox, the website trusts that service to tell it who you are. Here, Pontoon let someone change their email to match a victim's Firefox email before the victim even signed up. Later, the victim's login was mixed up with the attacker's account, giving the attacker control.
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.