Github Account Takeover from Docs page of `kubernetes-csi.github.io`
A driver listed in the Kubernetes CSI documentation linked to a GitHub organisation that had not been registered, so anyone could claim it. An attacker who registered it could host malicious code that visitors following the docs might download.
codermak Follow with milankatwal99
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 4 months
- Paid in 40 days
- Disclosed after 5 months
Report Submission Form
Summary:
Kubernetes in its docs https://kubernetes-csi.github.io have a drivers list. One of the driver was pointing to an external github account. That github account was not registered on github.com So I was able to takeover the account and host PoC
Kubernetes Version:
NA
Component Version:
NA
Steps To Reproduce:
- Go to https://kubernetes-csi.github.io/docs/drivers.html
- Search for
MacroSAN - Click on
MacroSAN - You will be taken to this repository https://github.com/macrosan-csi/macrosan-csi-driver
- You will see takeover message there
Supporting Material/References:
- https://github.com/macrosan-csi/macrosan-csi-driver
- https://kubernetes-csi.github.io/docs/drivers.html

Reference
Impact
An attacker can takeover the repository and host malicious code on it, when any user or employee will refer the docs and tries to download the dirver, they will end up using malicious code which could lead to RCE.
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 the documentation linked to an external GitHub organisation that was never registered, leaving the name free for anyone to claim.
Impact
An attacker could take over the repository and host malicious code, so users or employees following the docs and downloading the driver could end up running malicious code, which could lead to RCE.
What the attacker needed
Unregistered GitHub org name; victim follows docs link and downloads
How it was found
- Open the drivers list page in the Kubernetes CSI documentation.
- Find the entry named MacroSAN.
- Follow the MacroSAN link.
- The link leads to a GitHub repository under an unclaimed organisation name.
- The repository shows the takeover message placed by the researcher.
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.
The documentation page linked to a GitHub account that nobody had actually created yet. GitHub lets anyone register a free account name, so the researcher claimed it first and put a harmless proof-of-concept page there. If a real attacker had done this, people who trusted the docs and downloaded the driver could have received malicious software instead.
What is Subdomain takeover?
A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.