Skip to content
Subdomain takeover Disclosed report Beginner

Broken link hijacing in https://kubernetes-csi.github.io/docs/drivers.html

A link on the Kubernetes CSI documentation page pointed to a GitHub repository that no longer existed, so an attacker could register that username and repository to control where the link led. Visitors clicking the link would then be sent to the attacker's repository instead of the intended one.

tendermint Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Triaged in 10 days
  • Fixed in 4 months
  • Paid in 2 months
  • Disclosed after 5 months

Summary : When a web application has any pages, sources, links to external 3rd party services and are broken then the attacker can claim those endpoints to successfully conduct the attack and claim those endpoints on behalf of the target website and impersonate his identity.

Steps To Reproduce

  1. visit https://kubernetes-csi.github.io/docs/drivers.html
  2. search for DriveScale
  3. click on that link
  4. you will be redirected to github and it shows 404
  5. change your username to DriveScale
  6. create k8s-plugins repository
  7. When someone clicks on DriveScale link they will be redirected to attacker repository

References https://hackerone.com/reports/1031321 https://hackerone.com/reports/1117079 https://edoverflow.com/2017/broken-link-hijacking/

For POC I have attached video

Impact

The user will install wrong CSI driver which leads to impersonation attack. The attacker can install Ransomware, trojan etc.

Attachments

kubernetes_github_account_hijack_may_30.mp4 From the original on HackerOne

The original report as published on HackerOne, by tendermint. 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 contained a link to an external GitHub repository that had been deleted or renamed, and the username was available for anyone to claim.

Impact

A visitor could be tricked into installing a malicious CSI driver from the attacker's repository, which could lead to impersonation or malware installation.

What the attacker needed

The external GitHub repository is deleted; The GitHub username is available; Victim clicks the broken link

How it was found

  1. Visit the Kubernetes CSI drivers documentation page.
  2. Find the DriveScale link on that page.
  3. Click the link and observe it redirects to GitHub and shows a 404 error.
  4. Change your GitHub username to DriveScale.
  5. Create a repository named k8s-plugins.
  6. When someone clicks the DriveScale link, they are redirected to the attacker's 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 broken link hijack happens when a website links to an external account or page that has been deleted. If someone else can sign up for that same name, they can take over the link and show visitors their own content. Here, the documentation linked to a GitHub repository that was gone, so anyone could create a GitHub account with that name and put their own code there.

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 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.