One Program, Three Takeovers — A Deep Dive into Subdomain Hijacking!
Three subdomains of a program were left pointing to an external hosting provider (Adobe AEM Cloud) that no longer served them, allowing an attacker to claim them by setting up a free Netlify site and adding DNS records. The attacker could then host arbitrary content on those subdomains, enabling phishing or other attacks.
Published on medium.com
https://www.linkedin.com/posts/ahmed-samy-71b111332%D8%A8%D8%B3%D9%85-%D8%A7%D9%84%D9%84%D9%87-%D8%A7%D9%84%D8%B1%D8%AD%D9%85%D9%86-%D8%A7%D9%84%D8%B1%D8%AD%D9%8A%D9%85-hey-hackers-im-activity-7302462244229947392-SC3q?utmsource=share&utmmedium=memberdesktop&rcm=ACoAAFOqh8cBcprvqD5ggtPIeUNpK-MXKfmE9hc
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 subdomains had DNS records pointing to a third-party service (Adobe AEM Cloud) that no longer hosted content for them, and the service allowed anyone to claim the domain.
Impact
An attacker could host arbitrary content on the subdomains, which could be used for phishing, XSS attacks, or data breaches.
What the attacker needed
Subdomains point to a claimable service; attacker can create a free Netlify account; attacker can add DNS records
The fix
The subdomains should be removed from DNS or pointed to a service that requires domain verification to prevent unauthorised takeover.
How it was found
- Enumerate subdomains of the target program.
- Run Subzy to check for takeover vulnerabilities.
- Verify hosting details with DNS lookup commands.
- Create a simple HTML page and upload it to Netlify.
- Configure a CNAME record pointing to the subdomain and add an A record.
- Confirm full control over the subdomains.
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 prefix like 'blog' in blog.example.com. If it points to a service the owner no longer uses, anyone can sign up for that service and claim the subdomain, then put their own content there. This is called subdomain takeover.
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.