lunes, 24 de agosto de 2020

CloudFrunt - A Tool For Identifying Misconfigured CloudFront Domains


CloudFrunt is a tool for identifying misconfigured CloudFront domains.

Background
CloudFront is a Content Delivery Network (CDN) provided by Amazon Web Services (AWS). CloudFront users create "distributions" that serve content from specific sources (an S3 bucket, for example).
Each CloudFront distribution has a unique endpoint for users to point their DNS records to (ex. d111111abcdef8.cloudfront.net). All of the domains using a specific distribution need to be listed in the "Alternate Domain Names (CNAMEs)" field in the options for that distribution.
When a CloudFront endpoint receives a request, it does NOT automatically serve content from the corresponding distribution. Instead, CloudFront uses the HOST header of the request to determine which distribution to use. This means two things:

  1. If the HOST header does not match an entry in the "Alternate Domain Names (CNAMEs)" field of the intended distribution, the request will fail.
  2. Any other distribution that contains the specific domain in the HOST header will receive the request and respond to it normally.
This is what allows the domains to be hijacked. There are many cases where a CloudFront user fails to list all the necessary domains that might be received in the HOST header. For example:
  • The domain "test.disloops.com" is a CNAME record that points to "disloops.com".
  • The "disloops.com" domain is set up to use a CloudFront distribution.
  • Because "test.disloops.com" was not added to the "Alternate Domain Names (CNAMEs)" field for the distribution, requests to "test.disloops.com" will fail.
  • Another user can create a CloudFront distribution and add "test.disloops.com" to the "Alternate Domain Names (CNAMEs)" field to hijack the domain.
This means that the unique endpoint that CloudFront binds to a single distribution is effectively meaningless. A request to one specific CloudFront subdomain is not limited to the distribution it is associated with.

Installation
$ pip install boto3
$ pip install netaddr
$ pip install dnspython
$ git clone https://github.com/disloops/cloudfrunt.git
$ cd cloudfrunt
$ git clone https://github.com/darkoperator/dnsrecon.git
CloudFrunt expects the dnsrecon script to be cloned into a subdirectory called dnsrecon.

Usage
cloudfrunt.py [-h] [-l TARGET_FILE] [-d DOMAINS] [-o ORIGIN] [-i ORIGIN_ID] [-s] [-N]

-h, --help Show this message and exit
-s, --save Save the results to results.txt
-N, --no-dns Do not use dnsrecon to expand scope
-l, --target-file TARGET_FILE File containing a list of domains (one per line)
-d, --domains DOMAINS Comma-separated list of domains to scan
-o, --origin ORIGIN Add vulnerable domains to new distributions with this origin
-i, --origin-id ORIGIN_ID The origin ID to use with new distributions

Example
$ python cloudfrunt.py -o cloudfrunt.com.s3-website-us-east-1.amazonaws.com -i S3-cloudfrunt -l list.txt

CloudFrunt v1.0.3

[+] Enumerating DNS entries for google.com
[-] No issues found for google.com

[+] Enumerating DNS entries for disloops.com
[+] Found CloudFront domain --> cdn.disloops.com
[+] Found CloudFront domain --> test.disloops.com
[-] Potentially misconfigured CloudFront domains:
[#] --> test.disloops.com
[+] Created new CloudFront distribution EXBC12DE3F45G
[+] Added test.disloops.com to CloudFront distribution EXBC12DE3F45G


More information


  1. Black Hat Hacker Tools
  2. Blackhat Hacker Tools
  3. Pentest Recon Tools
  4. Game Hacking
  5. Hacking Tools Windows
  6. Hacker Tools Free
  7. Hack Tools For Ubuntu
  8. Free Pentest Tools For Windows
  9. New Hack Tools
  10. Hacker Tools Windows
  11. Hacking Apps
  12. Hack Tools Pc
  13. Hacking Tools Windows 10
  14. Usb Pentest Tools
  15. Hack Tools For Pc
  16. Nsa Hack Tools
  17. How To Hack
  18. Hacker Search Tools
  19. Hacker Tools
  20. Hacker Tools For Pc
  21. Hacker Tool Kit
  22. Hacker Hardware Tools
  23. Hacking Tools Windows 10
  24. Pentest Tools Nmap
  25. Hacking App
  26. Hack And Tools
  27. Install Pentest Tools Ubuntu
  28. Hacking Tools
  29. Hack Tools Mac
  30. Hacking Tools For Windows 7
  31. Hackrf Tools
  32. Hacking Tools 2019
  33. How To Hack
  34. Hacker Tools List
  35. Hacking Tools 2019
  36. Hacking Tools Windows 10
  37. Hacking Tools Windows
  38. Hacking Tools Online
  39. Hacking Tools For Windows
  40. Hack Tools Download
  41. Easy Hack Tools
  42. Pentest Tools Framework
  43. Hacker Tools Software
  44. Hacker Tools Online
  45. Pentest Recon Tools
  46. Blackhat Hacker Tools
  47. Hack Tool Apk No Root
  48. Computer Hacker
  49. Hacker Tools For Windows
  50. Pentest Tools For Windows
  51. Pentest Tools Find Subdomains
  52. Hack Tools For Mac
  53. Hack Tools For Mac
  54. Hack Tools Github
  55. Hack Apps
  56. Hacker Tools For Ios
  57. Hack Tools For Ubuntu
  58. Hacking Tools For Windows 7
  59. Easy Hack Tools
  60. Hacker Tools Hardware
  61. Hacker Tools For Pc
  62. Pentest Automation Tools
  63. New Hacker Tools
  64. Pentest Tools Open Source
  65. Game Hacking
  66. Termux Hacking Tools 2019
  67. Hacker Hardware Tools
  68. Hacking Tools Mac
  69. Pentest Tools Github
  70. Hack Tools Github
  71. Hacker Tools For Windows
  72. Pentest Tools For Ubuntu
  73. Blackhat Hacker Tools
  74. Hacking Tools Pc
  75. Hacking Tools For Kali Linux
  76. What Is Hacking Tools
  77. Hacking Tools For Windows 7
  78. Hacking Tools And Software
  79. Pentest Tools For Windows
  80. Hacking Apps
  81. Hacker Tools Github
  82. Physical Pentest Tools
  83. Game Hacking
  84. Hacking Tools Windows
  85. Hacking Tools For Windows 7
  86. Hacking Tools Software
  87. Usb Pentest Tools
  88. Hacker Tools Apk Download
  89. Top Pentest Tools
  90. Beginner Hacker Tools
  91. Pentest Tools Website
  92. Blackhat Hacker Tools
  93. Hacking Tools For Games
  94. Hacking Tools For Windows
  95. Pentest Tools Nmap
  96. Best Pentesting Tools 2018
  97. Pentest Tools Github
  98. Hack Tools Pc
  99. Hacker Tools For Pc
  100. Pentest Tools Nmap
  101. Pentest Tools List
  102. Black Hat Hacker Tools
  103. Pentest Tools Find Subdomains
  104. Pentest Tools Download
  105. Pentest Tools Url Fuzzer
  106. Hacker Tools Apk Download
  107. Hacking Tools For Beginners
  108. Hacker Tools Mac
  109. Hacking Tools Software
  110. Physical Pentest Tools
  111. How To Make Hacking Tools
  112. Hacking Tools For Games
  113. Pentest Box Tools Download
  114. Pentest Tools Windows
  115. Hacking Tools For Beginners
  116. Hacking Tools For Mac

No hay comentarios:

Publicar un comentario