Skip to content
Subdomain takeover Write-up Beginner

GitHub Pages Subdomain Takeover on aiaa-dpw.larc.nasa.gov (NASA V

A NASA subdomain pointed at GitHub Pages hosting, but no GitHub repository claimed that custom domain, so the address was free for anyone to attach. The researcher attached it to their own repository and served their own page from the trusted nasa.gov subdomain.

Zabed Ullah Poyel Follow

Published on medium.com

During routine reconnaissance under NASA’s Vulnerability Disclosure Program, I identified a GitHub Pages subdomain takeover affecting:

Zabed Ullah Poyel, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a DNS record for the subdomain was left pointing at GitHub Pages after the corresponding GitHub repository or custom-domain mapping was removed, leaving the name unclaimed.

Impact

An attacker could host arbitrary content, including phishing or malware pages, under a trusted nasa.gov subdomain, which the report notes could also allow unauthorised JavaScript execution under that domain.

What the attacker needed

A free GitHub account; DNS record still points at GitHub Pages; no existing claim on the domain

The fix

The dangling DNS records were removed and the unused GitHub Pages mapping was decommissioned, and the report states NASA resolved the issue.

How it was found

  1. Look up the subdomain's DNS records and note they resolve to GitHub Pages addresses.
  2. Visit the subdomain and observe a GitHub placeholder page rather than NASA content.
  3. Create a GitHub Pages repository and set the NASA subdomain as its custom domain.
  4. Complete GitHub's DNS verification so the domain attaches to the repository.
  5. Publish a simple page and confirm it is served from the NASA subdomain.

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 write-up has not been written yet. The Original tab links to the source.

Every website name is looked up in a directory called DNS, which says which server answers for it. Here that directory pointed at GitHub's free page-hosting service, but nobody at NASA had registered the matching GitHub project, so the name was effectively unowned. Anyone who registers that project can then publish their own content at the official-looking address.

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 Zabed Ullah Poyel

View all

1 more disclosed report, best first.

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.