From Github Recon To Account Takeover
A developer's GitHub repository contained a configuration file with a valid password for the third-party SMS provider the app used to deliver OTPs. By logging into that provider's portal, the author could read every user's OTP delivery report and log in to any user's account.
Published on addictivehackers.blogspot.com
authentication
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 a secret (the SMS provider's credentials) was committed to a public GitHub repository, and the SMS portal exposed OTP contents to anyone holding those credentials.
Impact
The author could log in to any user's account, giving full account takeover of every registered user.
What the attacker needed
Access to the target's public GitHub; SMS provider credentials in a repo file
How it was found
- Search the target's GitHub for the keyword passwd and review the results
- Find a valid password inside a file named config.properties
- Log into the third-party SMS provider portal with those credentials
- Open the SMS delivery section to see phone numbers and sent OTP texts
- Request an OTP for a target account and read it from the delivery report
- Log in to that user's account with the OTP
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.
The app sent one-time login codes (OTPs) by text message through an outside company. Someone had put that company's password into a file on a public code-hosting site, so anyone could find it. With that password, the author could read the texts sent to every user, including their login codes, and sign in as them.
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.