GitHub Retired UsernameTakeover From [aws/████████]
A link in a GitHub repository pointed to a GitHub username that had been retired and was unclaimed. The researcher registered that username and created a repository, so the original link now led to attacker-controlled content.
- Fixed in 11 days
- Disclosed after 7 months
#Summary
In one of Github Repository, there is a link to a GitHub repository under the username ████████, which was unclaimed. I registered the retired username and created a repository with the name PoC. As a result, the original link now points to my controlled Account, enabling a persistent repository hijack.
#Description
I have found a link which was ████████ and it was throwing 404 Not Found , i went on to register the unclaimed (retired) username and host PoC Repo with my own content
#Steps To Reproduce
- Navigate to: ████████
- Search For
████████ - Navigate to this Account & Open the PoC Reporistory
- Notice that the repo is taken over and saying
Taken Over By ████████
#PoC ████████
#Recommendations All Links assosicated with this retired username should be removed from the repository
#Reference
Regards ████████
Impact
Users accessing the link from Your Official GitHub are serving content from an attacker-controlled repository, breaking the trust model. This allows an attacker to easily convince users to take actions that could be malicious.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a link in a GitHub repository referenced a GitHub username that had been retired and was no longer owned, allowing anyone to register it and control the destination.
Impact
Users following the official link could be served content from an attacker-controlled repository, which could be used to convince them to take malicious actions.
What the attacker needed
The retired username is unclaimed; a link to the retired username exists
The fix
Links associated with the retired username should be removed or updated from the repository.
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 report has not been written yet. The Original tab links to the source.
A GitHub username can become retired and unclaimed. If a site still links to that old username, anyone who registers it can control where the link goes. Here, a link in a GitHub repository pointed to such a username, and the researcher claimed it to show the link could be hijacked.
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.