From Low Privileges to Owner Rights: A Wild Journey Through an ATO Vulnerability
A user's internal identifier was derived from their GitHub username, and group permissions stacked onto the account. An attacker could rename their GitHub account to match a lingering identifier of a high-privileged SSO user and log in as that user.
Today, I’m thrilled to share a unique Account Takeover (ATO) vulnerability discovery that kept me grinning (and scratching my head) throughout. This one is for all of you bug bounty hunters and developers out there — yes, even you developers who might be unintentionally feeding us with these “meals” to hunt.
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 application derived the internal UserID from the mutable GitHub username and did not prevent reuse of a lingering UserID after the original SSO user was removed or renamed.
Impact
An attacker with a GitHub account could take over a high-privileged SSO user's account and gain full admin rights, though the report notes the exploit required specific prerequisites and was rated medium severity.
What the attacker needed
Attacker controls a GitHub account; app allows SSO login via GitHub groups; a high-privileged SSO user's UserID lingers; attacker can rename GitHub username
How it was found
- Configure a GitHub group in the app to allow logins with minimal permissions.
- Create a GitHub user and log in so the app creates a UserID for it.
- Add that user to an internal app group with Owner-level permissions.
- Rename the GitHub account to match the lingering UserID of a high-privileged SSO user.
- Log in again and observe that the session is now the Admin with full rights.
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 log in with GitHub, the app creates an internal name for you based on your GitHub username. If that name is not fixed and someone else can take it over by renaming their GitHub account, they can become that user. Here, the attacker renamed their GitHub account to match a leftover name of an admin and logged 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.