Skip to content

subdomain takeover via ngrok service #92

@PareshParmar

Description

@PareshParmar

Service name

ngrok
this already mentioned in #85
but few steps are missing there. and that won't work.
when you run ./ngrok http 80 -subdomain cnameentry it will run ngrok on cname domain only , not subdomain, i set up ngrok on my own subdomain to test it.

Proof

if you visit vulnerable subdomain, error will be: Tunnel subdomain.example.com not found
check cname entry of subdomain, it will be something like http://xxxxxxxx.cname.us.ngrok.io/

  1. set up account on https://ngrok.com/

  2. subdomain service for ngrok is only available on paid version.
    suggest you to purchase paid version: https://dashboard.ngrok.com/billing (15 days money return policy)

  3. once your account is done, set up ngrok to your local machine , follow these steps: https://dashboard.ngrok.com/get-started

  4. once you're done with set up locally. go to here: https://dashboard.ngrok.com/reserved
    Where you can reserve vulnerable subdomain. enter subdomain and click on reserve.
    Screenshot (2350)

  5. now go to your local machine and run this command to takeover subdomain:
    ngrok http -region=us -hostname=subdomain.example.com 80

Screenshot (2352)
Screenshot (2353)

Documentation

https://ngrok.com/docs
check Tunnels on custom domains (white label URLs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsvulnerableSomeone has provided proof in the issue ticket that one can hijack subdomains on this service.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions