punk-security / dnsReaper

dnsReaper - subdomain takeover tool for attackers, bug bounty hunters and the blue team!
GNU Affero General Public License v3.0
1.93k stars 150 forks source link

test for js takeover #108

Closed SimonGurney closed 1 year ago

SimonGurney commented 1 year ago

There is a takeover vector which doesnt get as much love, which is when the website resolves and provides a web response but includes a js file from an old unregistered domain. If we register the domain, we can provide our own JS file and execute arbitrary javascript on the page. This leads to full website takeover via redirect etc.

I think we can parse out the js files using beautiful soup

SimonGurney commented 1 year ago

Yeah so this is prone to false positives and hugely slow. I tested the project discovery domains and found nothing genuine, closing this down.