Possible Take Over Subdomain For Inbound Emails
A DNS CNAME record for sendgrid.khanacademy.org pointed to sendgrid.net, which the researcher claimed could allow an attacker to register that subdomain on SendGrid and take it over. The attacker could then potentially intercept inbound emails sent to that subdomain.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 38 days
- Disclosed after 2 months
Hello KhanAcademy Security Team,
I'm rootbakar, The researcher identified that the affected url points to sendgrid.net, via a DNS CNAME record. As a result of this an attacker could potentially initate a subdomain take over by registering the subdomain sendgrid.khanacademy.org on sendgrid and consiquently leverage this for further attacks. Additionally it has been noted that sendgrid is a service for email marketing so theoretically should an attacker be able to gain access to the subdomain they could potentially gain access to emails too.
###Affected URLs sendgrid.khanacademy.org
###Risk Breakdown Risk: Medium Difficulty to Exploit: Medium Authentication: None
###Recommended Fix Check your DNS-configuration for subdomains pointing to services not in use. Set up your external service so it fully listens to your wildcard DNS.
###Reference https://www.hackerone.com/blog/Guide-Subdomain-Takeovers http://blog.pentestnepal.tech/post/149985438982/reading-ubers-internal-emails-uber-bug-bounty https://hackerone.com/reports/166826
Impact
a way to take over subdomain for inbound emails
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
Impact
An attacker could potentially take over the subdomain and, in theory, gain access to emails sent to it.
What the attacker needed
DNS CNAME points to unclaimed SendGrid subdomain; Attacker can register the subdomain on SendGrid
The fix
Check DNS configuration for subdomains pointing to unused services and ensure external services fully listen to the wildcard DNS.
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 'sendgrid' added to a main domain. If that subdomain points to an external service that is no longer used, someone else might be able to claim it. Here, the researcher says the subdomain pointed to SendGrid, an email service, so an attacker might register it and receive emails meant for the organisation.
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.