Subdomain misconfiguration [mail.legalrobot.com]
A subdomain had a CNAME record pointing to a Google service, and the reporter was able to claim that domain in a G Suite account. This could allow an attacker to take over the subdomain, though full takeover was not verified.
Originally disclosed on HackerOne
- Disclosed after 13 days
Hi Team,
You subdomain mail.legalrobot.com has a CNAME record that resolved to ghs.google.com and shows error when navigating to subdomain, should remove CNAME entry for that subdomain pointing towards ghs.google.com.I couldn't verify the domain ownership process to fully takeover subdomain. mail.legalrobot.com canonical name = ghs.google.com For POC i have claim the domain of gsuite account using mail.legalrobot.com
Fix: To fully resolve the issue you need to remove the CNAME record and put in place a web forwarding rule for mail.legalrobot.com towards new web landing page.
Please find the attachment of POC.
Thanks _prakash
Attachments


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 third-party service (ghs.google.com) that allowed domain claiming.
Impact
An attacker could potentially take over the subdomain and serve content under the organisation's domain, though full takeover was not confirmed.
What the attacker needed
Ability to claim the domain in a G Suite account
The fix
The CNAME record should be removed and replaced with a web forwarding rule to a new landing page.
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 'mail' added to a main domain. A CNAME record is a DNS setting that points one name to another. If that other name is a service where anyone can register the same name, an attacker can claim it and control what the subdomain shows.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.