Skip to content
Subdomain takeover Write-up Beginner

First Bug report as a beginner in Bug Bounty

A subdomain was found to be mapped to Heroku but not claimed, allowing an attacker to register it on their own Heroku app and take control of the subdomain. The author reports this as a subdomain takeover, though the full details are withheld until the issue is resolved.

blue3dot Follow

Published on blue3dot.medium.com

This is my first bug reported in hackerone, i am writing this on own with my English no AI involved ๐Ÿ™ƒ

Manikanta G, on blue3dot.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 pointing to a Heroku app that was never claimed, allowing anyone to register it.

Impact

An attacker could take control of the subdomain and serve their own content under the organisation's domain, though the author does not detail any further exploitation.

What the attacker needed

A Heroku account; knowledge of the unclaimed subdomain

The fix

The organisation should remove the dangling DNS record or claim the Heroku app name to prevent takeover.

How it was found

  1. Downloaded the scope and extracted all domains.
  2. Used subfinder and assetfinder to find subdomains.
  3. Used httpx to check which subdomains were live.
  4. Searched for subdomain takeover using subzy and subjack.
  5. Found a subdomain mapped to Heroku.
  6. Created a Heroku app and added the unclaimed subdomain to it, successfully taking it over.

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.

A subdomain is a smaller part of a website's address, like blog.example.com. If that subdomain points to a service like Heroku but nobody has claimed it there, anyone can sign up and claim it, making the subdomain show their content instead. This is called subdomain takeover and can be used to host fake pages or steal cookies.

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.

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.