Subdomain takeover of v.zego.com
The subdomain v.zego.com pointed to an AWS EC2 IP address that was no longer in use. The researcher claimed the IP and ran their own instance, allowing them to serve content on that domain and potentially obtain a TLS certificate.
- Disclosed after 57 days
Summary
v.zego.com points to an AWS EC2 instance at 52.214.138.192 that no longer exists. I was able to take control of this IP address and run my own EC2 instance. 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
% dig +short v.zego.com
52.214.138.192
% curl v.zego.com
<!-- hackerone.com/ian -->
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 DNS record pointing to a released cloud IP address.
Impact
The attacker could serve arbitrary or malicious content on the subdomain, potentially affecting customers or servers that trust the domain, and could obtain a TLS certificate for it.
What the attacker needed
DNS record points to released IP; Attacker can claim that IP
How it was found
- Resolve the subdomain to its IP address.
- Check that the IP address is no longer in use.
- Claim the IP address by launching a new EC2 instance.
- Serve content on the subdomain.
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 that is no longer controlled by the owner. An attacker can claim that abandoned service and then control what appears on the subdomain. This can let them trick users or bypass security checks that trust the domain.
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.