When OAuth Bypasses Email Restrictions — A Simple Signup Logic Flaw
The application blocked Gmail alias addresses during its normal signup flow, but the LinkedIn OAuth signup path did not apply the same check. An attacker could therefore create an account with an email address the platform's own policy explicitly forbids.
Published on strangerwhite.medium.com
I know I’ve been a bit inactive, but now I’m planning to stay consistent and keep sharing whatever I find during my testing journey. Recently, I got back into testing and while casually exploring a fintech application, something small felt off.
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 email restriction was implemented only in the traditional signup handler and not in the OAuth account-creation path, so the two flows applied different validation.
Impact
The platform's identity policy could be bypassed, allowing accounts with alias addresses it deliberately blocks; the text does not show any further harm beyond that policy violation.
What the attacker needed
A LinkedIn account; a Gmail alias address; no special tools needed
How it was found
- Try signing up with a Gmail alias address through the normal form and observe that it is rejected.
- Create a LinkedIn account using a Gmail alias address and verify it.
- Return to the target site and choose the LinkedIn signup option.
- Observe that the account is created with the blocked alias address.
- Confirm that login, password reset and normal account access all work.
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.
Many sites let you sign up either with a normal form or by logging in through another service such as Google or LinkedIn. Here the normal form rejected certain email addresses, but the LinkedIn route never checked them, so the same address got in through the side door. It is a rule enforced in one place and forgotten in another.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.