.

sábado, 22 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


Related articles
  1. Kik Hack Tools
  2. Hacker Tools Apk Download
  3. Usb Pentest Tools
  4. Hacker Search Tools
  5. Hack Apps
  6. Hacking Tools Software
  7. Beginner Hacker Tools
  8. Bluetooth Hacking Tools Kali
  9. Pentest Tools Alternative
  10. Pentest Recon Tools
  11. Hacker Tools Free
  12. Hack Tools
  13. Pentest Reporting Tools
  14. Hacking Tools For Games
  15. Ethical Hacker Tools
  16. Hacker Tool Kit
  17. Pentest Tools Website
  18. Pentest Tools Apk
  19. What Are Hacking Tools
  20. Kik Hack Tools
  21. Hacking Tools For Windows
  22. Pentest Tools Windows
  23. Pentest Tools Find Subdomains
  24. Hack Tools Online
  25. Hacking Tools 2020
  26. Pentest Tools Apk
  27. Hacker Tools Software
  28. Hacker Search Tools
  29. How To Hack
  30. Hacking Tools Github
  31. Pentest Tools Alternative
  32. Pentest Tools Bluekeep
  33. Ethical Hacker Tools
  34. Hack Tool Apk No Root
  35. Hack Tools Github
  36. Pentest Reporting Tools
  37. Easy Hack Tools
  38. Tools 4 Hack
  39. Hacker Tools List
  40. Hacking Tools Online
  41. Pentest Box Tools Download
  42. Hack Tool Apk
  43. Pentest Tools Online
  44. Hacker Tools Github
  45. Hacking Tools For Games
  46. Hacker Tools For Ios
  47. Hackers Toolbox
  48. Hack Tools For Mac
  49. Pentest Tools Kali Linux
  50. What Is Hacking Tools
  51. Bluetooth Hacking Tools Kali
  52. Pentest Tools Alternative
  53. Best Hacking Tools 2019
  54. Pentest Tools Nmap
  55. Best Pentesting Tools 2018
  56. Hack App
  57. Hacker Tools Apk Download
  58. Hacking Tools For Windows Free Download
  59. Wifi Hacker Tools For Windows
  60. Hacker Tools Hardware
  61. Hack Tools
  62. Hacker Tools Online
  63. Hacking Tools 2020
  64. New Hack Tools
  65. Pentest Tools Online
  66. Hacking Tools
  67. Hacker Tools Free
  68. Hacking Tools Kit
  69. Underground Hacker Sites
  70. Pentest Tools Download
  71. Hacking Tools Windows
  72. Pentest Tools Url Fuzzer
  73. Pentest Tools Online
  74. Game Hacking
  75. Pentest Tools Subdomain
  76. New Hacker Tools
  77. Pentest Tools Website Vulnerability
  78. Hacking Tools For Beginners
  79. Hacker Tools Hardware
  80. Hacker Search Tools
  81. Hack Website Online Tool
  82. Pentest Reporting Tools
  83. Tools For Hacker
  84. Pentest Tools Windows
  85. Pentest Tools Website
  86. Tools For Hacker
  87. Hak5 Tools
  88. Tools For Hacker
  89. Pentest Tools List
  90. Pentest Recon Tools
  91. Pentest Recon Tools
  92. Pentest Tools List
  93. Hacker Tools For Mac
  94. Pentest Tools Nmap
  95. Bluetooth Hacking Tools Kali
  96. Hacker Tools Windows
  97. Underground Hacker Sites
  98. Underground Hacker Sites
  99. Black Hat Hacker Tools
  100. Hacker
  101. Hack Tools For Mac
  102. Growth Hacker Tools
  103. Nsa Hack Tools
  104. Hacking Tools Hardware
  105. Hacking Tools 2020
  106. Hacking Tools For Games
  107. Hacking Tools For Kali Linux
  108. Usb Pentest Tools
  109. Hacking Tools Github
  110. Hacking Tools Pc
  111. Hackers Toolbox
  112. Android Hack Tools Github
  113. Pentest Tools For Android
  114. Pentest Tools
  115. Best Hacking Tools 2020
  116. Hacking Tools Hardware
  117. Tools For Hacker
  118. World No 1 Hacker Software
  119. Black Hat Hacker Tools
  120. Tools 4 Hack
  121. Pentest Tools Free
  122. Hacking Tools Windows
  123. Pentest Tools List
  124. Pentest Tools Subdomain
  125. Hacking Tools Online
  126. Pentest Automation Tools
  127. Hacker Tools List
  128. Nsa Hack Tools
  129. Hack Tools Mac
  130. How To Install Pentest Tools In Ubuntu
  131. Best Hacking Tools 2019
  132. Hack Tools Download
  133. Hacking Tools Mac
  134. Free Pentest Tools For Windows
  135. Pentest Box Tools Download
  136. Hackers Toolbox
  137. Pentest Tools Url Fuzzer
  138. Pentest Tools Nmap
  139. Hack Tools 2019
  140. Hacker Security Tools
  141. Top Pentest Tools
  142. Best Hacking Tools 2020
  143. Hacker Tools Linux
  144. Hack Tools
  145. Pentest Tools Url Fuzzer
  146. Free Pentest Tools For Windows
  147. Pentest Tools Open Source
  148. Github Hacking Tools
  149. Hack Tools
  150. Hacking Tools Free Download
  151. Hack App
  152. Hack App
  153. Hacking Tools Kit
  154. Best Hacking Tools 2020
  155. Hack Tools Mac
  156. Bluetooth Hacking Tools Kali
  157. Hak5 Tools
  158. Pentest Tools Download
  159. Tools Used For Hacking
  160. Hack Apps
  161. Black Hat Hacker Tools
  162. Hacker Tools Software
  163. Easy Hack Tools
  164. Pentest Tools Open Source
  165. Usb Pentest Tools
  166. Hacker Tools Software
  167. Hacker Tools Apk
  168. How To Install Pentest Tools In Ubuntu
  169. How To Install Pentest Tools In Ubuntu
  170. Hack Tools Pc
  171. Hacking Tools For Pc
  172. Top Pentest Tools
  173. Install Pentest Tools Ubuntu
  174. Hacker Tools Free
  175. Hacking Tools Name
  176. Growth Hacker Tools
  177. New Hack Tools