Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain takeover at http://test.www.midigator.com

The subdomain test.www.midigator.com had a CNAME record pointing to an AWS S3 bucket that no longer existed. The researcher was able to claim that bucket and serve their own content on the subdomain.

valluvarsploit_h1 Follow

Originally disclosed on HackerOne

  • Triaged in 21 hours
  • Fixed in 12 days
  • Disclosed after 43 days

Vulnerability

Subdomain test.www.midigator.com points to an AWS S3 bucket that no longer exists. I was able to take control of this bucket and serve my own content on it.

Proof Of Concept

CODE
$ dig test.www.midigator.com
[snipped]
;; ANSWER SECTION:
test.www.midigator.com.	60	IN	CNAME	test.www.midigator.com.s3-website-us-west-1.amazonaws.com.
test.www.midigator.com.s3-website-us-west-1.amazonaws.com. 59 IN CNAME s3-website-us-west-1.amazonaws.com.
s3-website-us-west-1.amazonaws.com. 4 IN A	52.219.193.3
image.png
image.png From the original on HackerOne

Remediation

Remove the CNAME entry for the test.www.midigator.com

Impact

Subdomain Takeover

The original report as published on HackerOne, by valluvarsploit_h1. 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 a dangling CNAME record pointing to a deleted S3 bucket, allowing anyone to register that bucket name and control the subdomain.

Impact

An attacker could serve their own content on the trusted subdomain.

What the attacker needed

None

The fix

The CNAME record for the subdomain should be removed.

How it was found

  1. Look up the DNS records for the subdomain and see that it points to an S3 website endpoint.
  2. Notice that the S3 bucket no longer exists.
  3. Create a new S3 bucket with the same name and serve content from it.

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 prefix like 'test' added to a main domain. Here, that subdomain was set up to point to a cloud storage bucket that had been deleted. Because anyone can create a bucket with the same name, an attacker can take over the subdomain and show their own pages under the trusted domain name.

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 valluvarsploit_h1

View all

1 more disclosed report, best first.

More from Equifax-vdp

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.