Skip to content
Subdomain takeover Write-up Beginner

How I Found My First 3 Bugs Within An Hour

The author found two broken social media links that could be hijacked and one possible subdomain takeover across .gov websites. An attacker could claim the unlinked social media usernames or the dangling subdomain to impersonate the government site.

Om Arora Follow

Published on infosecwriteups.com

Hey Everyone, Welcome to my Blog, Today I am going to discuss about how I found my first 3 bugs in .gov websites within 1 Hour So lets begin

Om Arora, on infosecwriteups.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 the websites linked to social media accounts or subdomains that had expired or been deleted, without removing the references.

Impact

An attacker could take over broken social media links and a subdomain, potentially impersonating the government website, though the author notes many results were false positives.

What the attacker needed

Target uses .gov websites; subdomain list; tools installed

How it was found

  1. Gather subdomains using Amass, SubFinder and AssetFinder.
  2. Remove duplicates with Anew and save to a file.
  3. Filter for live HTTP/HTTPS servers with httprobe.
  4. Run socialhunter on the list to find broken social media links.
  5. Run subzy on the list to find possible subdomain takeovers.
  6. Manually verify the results and create proofs of concept.

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 broken link hijacking happens when a website links to an external account (like a Twitter profile) that no longer exists, so anyone can register that username and the website will then point to the attacker's account. A subdomain takeover is similar: a subdomain points to a service that has been deleted, so an attacker can claim that service and control the subdomain. Both let an attacker make content appear to come from the government website.

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.