A new tool you say… what does it do?
With this tool you’ll be able to discover the origin ASN of most proxied domains on Cloudflare. The URL structure is simply https://origin-asn.asp.gg/<domain>?magic_word=kraken
. Usually it won’t take more than a second, but in rare cases it might take up to a minute.
I intend for this to be used when helping people here in the community. Maybe it can help identify people using special setups such as SSL for SaaS - not too sure about that though. Otherwise it’s just a cool tool I wanted to share haha.
For example, www.cloudflare.com
uses Google:
[albert@endeavouros ~]$ curl 'https://origin-asn.asp.gg/www.cloudflare.com?magic_word=kraken'
{
"asn": 15169,
"name": "GOOGLE",
"description": "Google LLC"
}
I would recommend you don’t jump the gun if you see an ASN like Google, Amazon or Microsoft. There’s a good chance the hosting provider is not Google, Amazon or Microsoft but rather a reseller that doesn’t have its own ASN. However, this does not necessarily mean it’s a small provider. Shopify, for instance, uses Google infrastructure and querying a custom Shopify domain will therefore return Google’s ASN. But if you see something like “GoDaddy”, then there’s a pretty good chance it’s actually GoDaddy.
Do note there’s a few cases where this tool won’t work. For example when the origin is exposed with Cloudflare Tunnel, the domain points to a “discard” address such as 100::
or 192.168.2.1
or it is using Cloudflare Access.
I believe this goes without saying but please don’t abuse this tool or share it outside the Lounge. Also please think twice - and probably decide you shouldn’t - before using this to find the hosting provider of a site hosting illegal or copyrighted content. I am not looking to obsolete the Trust and Safety team
I won’t go into details on how exactly the tool works, sorry, but I will say it “exploits” an unintended bug to get the ASN. It is therefore possible - probably even likely after I post this here - that it will be fixed at any time. And don’t worry, the ASN is the only thing I’ve been able to disclose with this bug, even though I’ve been quite thorough in my testing - and I don’t really consider the ASN sensitive information. So that is why I am sharing it rather than reporting it.
Please don’t ban me, Cloudflare…