Advertisement
Guest User

Bypassing CloudFlare Part 1

a guest
Jun 7th, 2017
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. Courtesy of gf2juatsqdph6x2h.onion
  2.  
  3. There are many ways to locate the backend IP of a site using CloudFlare, here is one way.
  4. CloudFlare only acts as a reverse proxy between the client and the server, although there are many ways to reveal the backend IP to run uninterrupted scans.
  5.  
  6. The most common way is by finding a subdomain that hosts the webapp and isn't behined cloudflare, this is bad and lazy implementation of the service and can instantly be undermined. Although by running a subbrute even if you don't find the backend location of the webapp you might still find a mail or admin server.
  7.  
  8. For this example we will use knock, a neat little subbruter written in python that comes with a default subdomain wordlist of around 2000. Since this tool isn't out of the box on some major pentesting distros you might need to download it, also make sure you have python installed.
  9. :~$ python --version
  10. :~$ git clone https://github.com/guelfoweb/knock knock (then enter that directory)
  11. :~$ python knock.py domain.com
  12.  
  13. Common subdomain leakers are ftp,mail,email,adm,admin,dev
  14.  
  15. Here is an example of a website that is owned by the second richest man in the world:
  16. blueorigin.com and www.blueorigin.com are both behind CloudFlare:
  17.  
  18. http://blueorigin.com [302] HTTPServer[cloudflare-nginx],
  19. IP[104.20.30.25],
  20. RedirectLocation[https://www.blueorigin.com],
  21. UncommonHeaders[cf-ray],
  22. cloudflare
  23.  
  24. But au.blueorigin.com leaks 23.21.219.158 - now you can run a scan and find what you couldn't from scanning through CloudFlare like php info disclosure at 23.21.219.158/static/phpinfo.php or
  25. Emails found:
  26. rachel.h.kraft@nasa.gov
  27. candrea.k.thomas@nasa.gov
  28. mike@hyperreal.org
  29. michael.j.braukus@nasa.gov
  30. kevinh@kevcom.com
  31. gwen@griffincg.com
  32. astronauts@blueorigin.com
  33. jobs@blueorigin.com
  34. brooke@griffincg.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement