Two Factor Authentication Bypass | SendGrid
SendGrid's two-factor authentication could be bypassed by entering a hardcoded master code (1234567) instead of the real one-time password sent to the user's phone. An attacker who knew a victim's username and password could log in without access to the victim's phone.
Published on bugbaba.blogspot.com
The original lives on bugbaba.blogspot.com
We do not hold its text, 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
Impact
An attacker with a victim's username and password could bypass 2FA and access the account without the victim's phone.
What the attacker needed
Valid username and password; knowledge of the master code
The fix
The hardcoded master code was removed and the bug was fixed by the SendGrid team.
How it was found
- Log in with a valid username and password to reach the 2FA prompt.
- Enter the hardcoded master code instead of the real OTP.
- The system accepts it and redirects to the 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 write-up has not been written yet. The Original tab links to the source.
Two-factor authentication (2FA) is a second lock on your account: after your password, you also type a short code sent to your phone. Here, the developers left a secret universal code in the system that always worked, so anyone who knew the password could skip the phone step entirely.
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.