EdOverflow / can-i-take-over-xyz

"Can I take over XYZ?" — a list of services and how to claim (sub)domains with dangling DNS records.
Creative Commons Attribution 4.0 International
4.87k stars 716 forks source link

Discourse hosted subdomain takeover possible? #49

Open chackmate opened 6 years ago

chackmate commented 6 years ago

Is subdomains hosted at discourse is vulnerable to takeover or not?

mardinyadegar commented 5 years ago

It doesn't appear so, I found a discourse subdomain that was serving me a 404 when visiting. Upon trying to create a demo using the subdomain that was returning a 404, I was given the following error you can see in the attached image.

screen shot 2019-01-08 at 10 35 02 pm
pdelteil commented 4 years ago

More info from 2017.

https://hackerone.com/reports/264494

jbreed commented 3 years ago

@pdelteil Following back up on this. Do we know what the site displays (search text) for when a domain is vulnerable? Seems like this is pretty old, but not seeing it anywhere.

NagliNagli commented 3 years ago

So yesterday I found a google acquisition who pointed to xxx.trydiscourse.com, I registered the discourse account with the trial and managed to takeover the CNAME the original one pointed to, for some weird caching issues the original domain remained at 404, but I managed to takeover the CNAME linked to it.

h3cksamrat commented 3 years ago

I found out that .trydiscourse.com is vulnerable whereas, .hosted-by-discourse.com is not vulnerable.

So, subdomain takeover on discourse is possible in edge cases.

ghost commented 3 years ago

I can confirm that *.hosted-by-discourse.com is not vulnerable.
When you sign up they give you a unique CNAME and they validate that you have the correct CNAME in your DNS config.

image