Friday, August 28, 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. Physical Pentest Tools
  2. What Are Hacking Tools
  3. Hacker Techniques Tools And Incident Handling
  4. Pentest Tools Open Source
  5. Hacker Tools For Windows
  6. Hacking Tools For Pc
  7. Hacks And Tools
  8. New Hack Tools
  9. Hack Tools Pc
  10. Hacker Tools Github
  11. What Is Hacking Tools
  12. Hack Tools For Ubuntu
  13. Bluetooth Hacking Tools Kali
  14. Pentest Tools Find Subdomains
  15. Hacker Tools Free
  16. Hacking Tools Kit
  17. Beginner Hacker Tools
  18. Pentest Tools Free
  19. Hacking Tools For Kali Linux
  20. Pentest Tools For Mac
  21. Hacker Tools For Windows
  22. Hack Website Online Tool
  23. Hacking Tools Mac
  24. Hack App
  25. How To Hack
  26. Pentest Tools Windows
  27. Beginner Hacker Tools
  28. Growth Hacker Tools
  29. Hacker Tools Mac
  30. Hacks And Tools
  31. Underground Hacker Sites
  32. Best Hacking Tools 2019
  33. Hacker
  34. Pentest Tools Android
  35. Hacker Tools Hardware
  36. Hacker Tools For Ios
  37. Tools 4 Hack
  38. Blackhat Hacker Tools
  39. Pentest Tools Download
  40. Hack Tools For Mac
  41. Beginner Hacker Tools
  42. Hacker Tools Hardware
  43. Hacker Tools Windows
  44. Pentest Reporting Tools
  45. Game Hacking
  46. Hack Tools Mac
  47. Hacking Tools Name
  48. Hack Tools
  49. Hacker Tools For Windows
  50. Best Pentesting Tools 2018
  51. Hacker Tools
  52. Pentest Tools For Ubuntu
  53. Hacking Tools Download
  54. Hacking Tools For Beginners
  55. Pentest Automation Tools
  56. Wifi Hacker Tools For Windows
  57. Hacking Tools Windows
  58. Hacker Tools Apk Download
  59. Pentest Tools List
  60. Hacking Tools Kit
  61. Pentest Automation Tools
  62. Tools 4 Hack
  63. Hack Tools For Mac
  64. Hacking Tools Hardware
  65. Hacking Tools 2020
  66. Pentest Tools Framework
  67. Bluetooth Hacking Tools Kali
  68. Best Hacking Tools 2019
  69. How To Make Hacking Tools
  70. Hacker Tools Apk
  71. Pentest Tools Free
  72. Termux Hacking Tools 2019
  73. Hack Rom Tools
  74. What Is Hacking Tools
  75. Termux Hacking Tools 2019
  76. Hack Tools For Games
  77. Pentest Tools Website Vulnerability
  78. Hacking Tools Windows 10
  79. Hacking Tools
  80. Hack Tools For Pc
  81. Hacker Tools
  82. Nsa Hack Tools Download
  83. Pentest Tools Review
  84. What Is Hacking Tools
  85. Free Pentest Tools For Windows
  86. Hacking Tools Github
  87. Hacking Tools For Kali Linux
  88. Underground Hacker Sites
  89. Hacking Tools Usb
  90. Hacker
  91. Hack Tools Pc
  92. Hack Tools Online
  93. How To Hack
  94. Pentest Tools Tcp Port Scanner
  95. Hacker Tools Linux
  96. Tools 4 Hack
  97. Hacking Tools Windows
  98. Hacker Tools Windows
  99. Pentest Tools Url Fuzzer
  100. Hack Tools For Pc
  101. Hacking Tools For Kali Linux
  102. Hacking Tools Pc
  103. Best Hacking Tools 2019
  104. Hacker Hardware Tools
  105. Hack Tools
  106. Hacking Tools For Pc
  107. Hacking Tools Hardware
  108. Hacking Tools Hardware
  109. Hacker Tools 2020
  110. Hacker Tools Apk Download
  111. Hacker Search Tools
  112. Usb Pentest Tools
  113. Pentest Tools Subdomain
  114. Physical Pentest Tools
  115. Hack Tool Apk No Root
  116. Hack Website Online Tool
  117. Hacking Tools Software
  118. Pentest Tools Website
  119. Beginner Hacker Tools
  120. Hacking Tools Usb
  121. Hack Tool Apk
  122. Hack Tools For Ubuntu
  123. Pentest Tools Linux
  124. Pentest Tools Subdomain
  125. Hackers Toolbox
  126. Pentest Tools Website Vulnerability
  127. Pentest Tools Framework
  128. Hack Tools Pc
  129. Hacking Tools
  130. Pentest Tools
  131. Pentest Reporting Tools
  132. Growth Hacker Tools
  133. Hacker Tools 2019
  134. Hacking Tools Pc
  135. Pentest Tools Download

0 Comments:

Post a Comment

<< Home