Wednesday, August 26, 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 posts


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

No comments:

Post a Comment