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.78k stars 712 forks source link

Subdomains pointing to vercel.com are vulnerable #183

Closed ScrubsAndStats closed 5 months ago

ScrubsAndStats commented 3 years ago

Service name

Vercel

Proof

Successful subdomain takeover on a harvard.edu subdomain (screenshot). proof-vercel

Documentation

marcelo321 commented 3 years ago

Can you share the cname regex and the fingerprint?

ScrubsAndStats commented 3 years ago

Can you share the cname regex and the fingerprint?

Sure

{ "service": "vercel", "cname": [ "" ], "fingerprint": [ "The deployment could not be found on Vercel." ], "nxdomain": false }

adityathebe commented 3 years ago

There are definitely edge cases here.

$ host -t CNAME anythingrandom.console.dev.twilio.com
anythingrandom.console.dev.twilio.com is an alias for cname.vercel-dns.com.
$ curl 'https://anythingrandom.console.dev.twilio.com/'                                                                                                     10:12:48
The deployment could not be found on Vercel.

DEPLOYMENT_NOT_FOUND

image

marcelo321 commented 3 years ago

so the cname we need to grep is vercel-dns.com not vercel.com. thank you @adityathebe

blackcodersec commented 3 years ago

Can you share the cname regex and the fingerprint?

Sure

{ "service": "vercel", "cname": [ "" ], "fingerprint": [ "The deployment could not be found on Vercel." ], "nxdomain": false }

are you takeover any subdomain? Do you have any poc?

raladev commented 3 years ago

Summary for 2021: U can takeover mashed.potato.com only if potato.com is not used in the account of the victim, otherwise, u will get Already owned err.

dark-ninja10 commented 2 years ago

This can be closed as Edge-case

M359AH commented 2 years ago

It still vulnerable yesterday I takeover 2 subdomains and I've upload my index

dark-ninja10 commented 2 years ago

@M359AH u took over mashed.potato.com even when potato.com is already registered? If yes, please share how you managed to do that? Just curious :0

M359AH commented 2 years ago

@jan-muhammad-zaidi

Hello Muhammed

I've found the subdomain I got this error page

Screen Shot 2022-02-07 at 12 20 49 PM

;; AUTHORITY SECTION:
vercel.app.     60  IN  SOA ns1.vercel-dns.com. hostmaster.nsone.net. 1644228969 43200 7200 1209600 60

;; Query time: 134 msec
;; SERVER:#53(.131)
;; WHEN: Mon Feb 07 12:41:00 EET 2022
;; MSG SIZE  rcvd: 119

Now I go to vercel.app and add a public repository contains my PoC index and after import the project I've add the domain and added successfully

and my PoC has been uploaded

dark-ninja10 commented 2 years ago

How come it's not showing a domain already registered error? Like this image

M359AH commented 2 years ago

Hello @jan-muhammad-zaidi

I think your target is not vulnerable because It should be registered without an errors like my comment above

M359AH commented 2 years ago

Your index should be uploaded like It:

Screen Shot 2022-02-07 at 3 38 12 PM

Sorry for my bad image edit 😅 😂 😂

dark-ninja10 commented 2 years ago

@M359AH no issues with the edit though :P

umar98 commented 2 years ago

Untitled

Any luck on how to do this?

Fatmanpoc commented 2 years ago

Untitled

Any luck on how to do this?

got same error...any clue on this?

M359AH commented 2 years ago

Hello Fatma, Umar

Unfortunately, I didn't find this error before

jareddarkweb commented 2 years ago

me aswelll

Faizee-Asad commented 2 years ago

https://vercel.com/docs/concepts/projects/custom-domains

worldclassdev commented 1 year ago

Untitled

Any luck on how to do this?

same error , vercel fixed the bug no luck

abuvanth commented 1 year ago

no more takeover

joren485 commented 1 year ago

Domain takeovers using Vercel are definitely still possible.

However, they are limited. In my testing, I found that a domain is not vulnerable if:

In practice, this means many subdomains will not be vulnerable (but subdomains definitely can be vulnerable).

There seems to be only one way to be sure a domain is vulnerable or not: try it out.

I created a PR to update the README: #375

badhacker0x1 commented 1 year ago

image

aravindb26 commented 1 year ago

I have the same error but it can be only possible if we configure DNS to that custom domain that should be shown in the Domains category but it's not showing, how could we add DNS?

excommunicado110 commented 1 year ago

Any success on this?

brijesh1353 commented 12 months ago

I have the same error but it can be only possible if we configure DNS to that custom domain that should be shown in the Domains category but it's not showing, how could we add DNS?

This has happened to me too, please show me the solution

xElkomy commented 9 months ago

It's not possible anymore because you have to add a txt record, and that is not possible in the case of subdomain takeover.

image

M359AH commented 9 months ago

Yes I think the exploitation now will not complete

rew1nter commented 8 months ago

Shouldn't this be marked not vulnerable at this point?

dark-ninja10 commented 6 months ago

It should be closed as Not Vulnerable

Atharv34 commented 5 months ago

Edge Case. Screenshot 2024-04-18 231240

pdelteil commented 5 months ago

Edge Case. Screenshot 2024-04-18 231240

This is not the example of an edge case. Edge case would be if you managed to take over the subdomain due to uncommon or unknown conditions.

zangcc commented 3 months ago

Is this vulnerability no longer exploitable? Why hasn't the Status changed to Not vulnerable?

image