Skip to content
Subdomain takeover Disclosed report Beginner

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:

  1. Go to https://kubernetes-csi.github.io/docs/drivers.html
  2. Search for MacroSAN
  3. Click on MacroSAN
  4. You will be taken to this repository https://github.com/macrosan-csi/macrosan-csi-driver
  5. You will see takeover message there

Supporting Material/References:

Screenshot_from_2021-12-23_19-20-35.png
Screenshot_from_2021-12-23_19-20-35.png From the original on HackerOne

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.

The original report as published on HackerOne, by codermak. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Open the drivers list page in the Kubernetes CSI documentation.
  2. Find the entry named MacroSAN.
  3. Follow the MacroSAN link.
  4. The link leads to a GitHub repository under an unclaimed organisation name.
  5. 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.

More by codermak

View all

10 more disclosed reports, best first.

More from Kubernetes

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.