Dangling cname that missed by a lot of Hackers
A subdomain of the target had a CNAME record pointing to a third-party hosting service that nobody had claimed. The author claimed that service account and gained control of the subdomain, allowing them to send and receive email from addresses on the organisation's domain.
medium.com
Published on medium.com
I’m gone share with you one of my findings Today that missed by a lot of hackers, by using some RECON and tools i find juice bug in (soundcloud,Netflix,Dropbox,hubspot,linktree,Riot,etc…..)
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 a DNS record was left pointing at a third-party service after the organisation stopped using it, and the service did not require proof of domain ownership before an account could claim the name.
Impact
An attacker could send and receive email as any address on the organisation's subdomain, which could be used for phishing or spoofing; the text does not say whether any defence limited this.
What the attacker needed
Ability to enumerate DNS records; CNAME target unclaimed; free account on the provider
The fix
DNS records should be audited regularly so orphaned CNAME entries are removed, with automated detection and ownership monitoring for third-party integrations.
How it was found
- Enumerate subdomains of the main domain with common discovery tools.
- Look up the DNS record for the email subdomain and note its CNAME target.
- Check whether the CNAME target is unclaimed or inactive.
- Register with the hosting provider and claim the subdomain there.
- Confirm control by serving a page or sending mail from an address 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 write-up has not been written yet. The Original tab links to the source.
A CNAME is a DNS record that says 'this name is really just another name elsewhere'. If that other name belongs to a service nobody has signed up for, anyone can sign up and take over the first name. Here that let the author run email on a company subdomain, which is useful for convincing phishing.
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.