Bounty Evaluation GitHub = $15,000 US Dollars
The GitHub login email verification code could be brute-forced because no rate limit was enforced on the number of attempts. An attacker could try many codes until the correct one was found, potentially bypassing email verification.
Published on medium.com
I found the bug on GitHub website where, I bypassed the login authentication. In this walk through I will show it was done.
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
Impact
An attacker could bypass email verification and potentially access accounts, which is significant because GitHub accounts are used for third-party sign-in.
What the attacker needed
A GitHub account with an email address; ability to intercept HTTP requests
How it was found
- Create an account on GitHub with an email address.
- Attempt to log in and receive a verification code by email.
- Capture the code submission request in Burp Suite.
- Configure a cluster bomb attack with numeric payloads for the code.
- Start the brute-force attack and monitor response sizes.
- Identify the correct code by matching the response size difference.
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 in, GitHub sends a code to your email to prove it is you. The website should limit how many times you can guess that code. Here it did not, so someone could keep guessing until they got 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.