Saturday, August 22, 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


Continue reading


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

No comments:

Post a Comment