register icon indicating copy to clipboard operation
register copied to clipboard

Feedback/suggestion

Open CharlesNaig opened this issue 8 months ago • 7 comments

What do you want added?

Dangling CNAME - subdomain takeover When a user registers a CNAME record pointing to, e.g., name.vercel.app, the validator does not check whether that target host is actually claimed/alive. If the user later abandons their Vercel project but the domain file stays in the repo, anyone can register the same Vercel app name and take over name.is-a.dev. This enables phishing, cookie theft, CSRF bypass, CSP bypass, and OAuth token hijack under a trusted *.is-a.dev origin.

What fix could we take with this? I just noticed this is a security issue, so I suggesting something like an auto-checker app.

CharlesNaig avatar Mar 20 '26 16:03 CharlesNaig

When a user registers a CNAME record pointing to, e.g., name.vercel.app, the validator does not check whether that target host is actually claimed/alive.

i dont think that would work. isnt vercel just returning an error page because it wasnt configured by the project owner to be on another *.is-a.dev? for example github pages returns a 404 in this case

Image

If the user later abandons their Vercel project but the domain file stays in the repo, anyone can register the same Vercel app name and take over name.is-a.dev.

the issue is not on the is-a.dev side but on the project owner's side, since hijackers dont even need to touch is-a.dev repo.

also, vercel requires txt verification so hijackers should update it in is-a.dev repo which is practically impossible because they cant update a file from a github account that does not match the username field in that file.

justdevw avatar Mar 20 '26 18:03 justdevw

Dangling CNAME - subdomain takeover When a user registers a CNAME record pointing to, e.g., name.vercel.app, the validator does not check whether that target host is actually claimed/alive. If the user later abandons their Vercel project but the domain file stays in the repo, anyone can register the same Vercel app name and take over name.is-a.dev. This enables phishing, cookie theft, CSRF bypass, CSP bypass, and OAuth token hijack under a trusted *.is-a.dev origin.

For Vercel I don't think its a major problem since they actually make you verify the domain with a TXT record. If you have seen cases recently where domains pointing to Vercel have been hijacked please let me know. Most subdomain takeovers happen with GitHub Pages (like @justdevw mentioned). We can't do anything since its a problem by the hosting provider's side, not from us. If we happen to see a hijacked domain, we would take it down.

Edit: Thought he mentioned it but he only gave a screenshot, oops.

iostpa avatar Mar 20 '26 19:03 iostpa

This is also really a issue from the user's side if they delete the website or forget to connect the domain, by the way.

iostpa avatar Mar 20 '26 19:03 iostpa

github pages is the only one prone to takeover afaik, but you can use something like this to find all pages which could potentially be or even already taken over by phishing/etc sites

dragsbruh avatar Mar 21 '26 10:03 dragsbruh

I think this issue is a bit overstated, especially regarding Vercel.

Vercel requires domain ownership verification via TXT records before allowing a custom domain to be attached, so a dangling CNAME alone is not sufficient for a takeover. An attacker wouldn’t be able to claim the subdomain without also modifying the DNS records in this repo, which they can’t do.

This type of takeover is mainly possible on providers that don’t enforce domain verification (e.g., historically GitHub Pages). In that case, the risk depends more on the hosting provider than on this repository.

It might be better to scope this issue to specific vulnerable providers instead of treating all CNAME targets as exploitable.

pyzit avatar Mar 22 '26 15:03 pyzit

I think this issue is a bit overstated, especially regarding Vercel.

Vercel requires domain ownership verification via TXT records before allowing a custom domain to be attached, so a dangling CNAME alone is not sufficient for a takeover. An attacker wouldn’t be able to claim the subdomain without also modifying the DNS records in this repo, which they can’t do.

This type of takeover is mainly possible on providers that don’t enforce domain verification (e.g., historically GitHub Pages). In that case, the risk depends more on the hosting provider than on this repository.

It might be better to scope this issue to specific vulnerable providers instead of treating all CNAME targets as exploitable.

Personally its more common for GitHub Pages when a domain is either not connected to any domain or if the website repository gets deleted, leaving the domain to be unclaimed.

It depends on the hosting provider and how the user deals with the domain really, nothing to do with subdomain providers or even domain registrars.

iostpa avatar Mar 23 '26 09:03 iostpa

Closing since its something we can't control

iostpa avatar Mar 25 '26 05:03 iostpa