Skip to content
Subdomain takeover Disclosed report Intermediate

Takeover of hackerone.engineering via Github

A DNS record for a subdomain still pointed at GitHub Pages after the organisation's domain verification lapsed, so a third party could claim the hostname in their own GitHub repository. For roughly ten minutes an attacker controlled the site served on that hostname.

m0chan Follow

Originally disclosed on HackerOne

Medium 5.9 View original
  • Triaged in 19 hours
  • Fixed in 43 hours
  • Paid in 5 days
  • Disclosed after 5 days

Summary by the program

The hacker was able to takeover https://hackerone.engineering after a small window of misconfiguration (~10 minutes) introduced by us, where GitHub released the CNAME hold whilst the DNS records were still pointing towards GitHub, allowing them to claim the domain in their own repository.

We've added Domain Verification on GitHub for this host and the GitHub Pages Domain has been transferred back since. (https://docs.github.com/en/organizations/managing-organization-settings/verifying-or-approving-a-domain-for-your-organization)

Something that's different from usual reports we get is that this was an asset not considered in scope nor out of scope, so we didn't have a concrete bounty table and it brought our team to the drawing board on how we want to handle such reports. Whilst we want to encourage hackers to hack on non-listed assets belonging to us, it's also something we currently do not have clear guidelines for. We opted to give a bonus without bounty instead to speed the process along.

For anyone visiting the Engineering Blog whilst it was taken over, we've confirmed no malware was hosted on that site whilst it was live.

Regarding limited disclosure: There's a few comments we considered redacting but making them internal would just make the conversation look really broken, I think this summary encapsulates everything.

The original report as published on HackerOne, by m0chan. 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 DNS record kept pointing at GitHub Pages while the domain-ownership verification on GitHub was removed, leaving the hostname claimable by anyone.

Impact

For about ten minutes an attacker could serve their own content on the organisation's engineering blog hostname; the team confirmed no malware was hosted during that time.

What the attacker needed

DNS record points at GitHub Pages; GitHub domain verification lapses; attacker claims the hostname

The fix

Domain verification was added on GitHub for the host and the GitHub Pages domain was transferred back.

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 subdomain is a name like blog.example.com that points at some service. Here it pointed at GitHub Pages, a free way to host a website from a code repository. GitHub only lets you attach a custom name to your repository if you prove you own it; when that proof lapsed for a short time, someone else could attach the same name to their own repository and serve their own content on it.

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 HackerOne

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.