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.
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
$ 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

Remediation
Remove the CNAME entry for the test.www.midigator.com
Impact
Subdomain Takeover
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
- Look up the DNS records for the subdomain and see that it points to an S3 website endpoint.
- Notice that the S3 bucket no longer exists.
- 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.