Subdomain takeover of images.crossinstall.com
The subdomain images.crossinstall.com was pointing to an AWS S3 bucket that no longer existed, allowing an attacker to claim that bucket and serve arbitrary content on the domain. This could enable serving malicious content to customers, obtaining TLS certificates, and potentially bypassing OAuth whitelists or accessing cookies scoped to the domain.
- Triaged in 39 hours
- Fixed in 3 days
- Disclosed after 46 days
Summary
images.crossinstall.com points to an AWS S3 bucket that no longer exists. I was able to take control of this bucket and put my own content onto it. I can now serve content on this domain, obtain a TLS certificate for this domain, etc.
If any customers or servers are pointing to anything within this domain, I could serve them arbitrary/malicious content. I could also use this in case your domain whitelists your own domain for OAuth, or if there are cookies scoped to the entire domain. Usually this can have a high impact.
PoC
Visit images.crossinstall.com/index.html; an HTML comment with my username is present.
% dig images.crossinstall.com +short
assets.crossinstall.com.s3.amazonaws.com.
s3-1-w.amazonaws.com.
s3-w.us-east-1.amazonaws.com.
52.217.103.180
% curl images.crossinstall.com/index.html
<!-- hackerone/ian bugcrowd/iangcarroll -->
% whois crossinstall.com | grep Org
Registrant Organization: Twitter, Inc.
Admin Organization: Twitter, Inc.
Tech Organization: Twitter, Inc.
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
The DNS record pointed to an S3 bucket that no longer existed, and the researcher was able to take control of it.
Impact
An attacker could serve arbitrary or malicious content on the subdomain, potentially affecting customers or servers that trust the domain, and could obtain TLS certificates or exploit domain-scoped cookies or OAuth whitelists.
What the attacker needed
DNS record points to deleted S3 bucket; Bucket name is available for registration
How it was found
- Resolve the subdomain to see it points to an S3 bucket.
- Check that the bucket does not exist.
- Create a new S3 bucket with the same name.
- Upload a file to the bucket.
- Access the file via the subdomain to confirm control.
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 takeover happens when a website's subdomain points to a service (like cloud storage) that is no longer in use. If an attacker can claim that service, they can control what appears on the subdomain. Here, the subdomain pointed to an S3 bucket that had been deleted, so the researcher could create a new bucket with the same name and serve their own files.
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.