:
:

Powered by GetResponse email marketing software

Actually Make Money Online

Your Helpful Resource About "Actually Make Money Online"

Thursday, August 20, 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. Hacking Tools Hardware
  2. Pentest Tools Online
  3. Hacks And Tools
  4. Hacking Tools For Pc
  5. Hack Tool Apk
  6. Pentest Tools Url Fuzzer
  7. Hack Tools For Pc
  8. Pentest Tools Nmap
  9. Hacking Tools For Windows
  10. Game Hacking
  11. Hacker Tools
  12. World No 1 Hacker Software
  13. Nsa Hacker Tools
  14. Hacking Tools Usb
  15. What Is Hacking Tools
  16. Hack Tool Apk
  17. Hacker Tools Github
  18. Hacker Tools Free Download
  19. Hacker Tools 2019
  20. Hack Tools For Games
  21. Hack And Tools
  22. Hacking App
  23. Bluetooth Hacking Tools Kali
  24. Hacking Tools Online
  25. Hack Tools For Pc
  26. Pentest Tools
  27. Beginner Hacker Tools
  28. Pentest Tools Kali Linux
  29. Hacking Tools For Mac
  30. Hack Tool Apk
  31. Black Hat Hacker Tools
  32. Hacking Apps
  33. Tools Used For Hacking
  34. Hacking Tools Free Download
  35. New Hacker Tools
  36. World No 1 Hacker Software
  37. Hacking Tools For Beginners
  38. Hack Tools For Windows
  39. Install Pentest Tools Ubuntu
  40. Best Hacking Tools 2020
  41. Hacking Tools 2020
  42. How To Install Pentest Tools In Ubuntu
  43. Hacker Tools Github
  44. Hack Tools
  45. Underground Hacker Sites
  46. Hacking Tools Software
  47. Hacking Tools For Pc
  48. Nsa Hack Tools Download
  49. Pentest Reporting Tools
  50. Game Hacking
  51. Hacking Tools
  52. Hacker Tools Free
  53. Pentest Tools Android
  54. Tools Used For Hacking
  55. Pentest Reporting Tools
  56. Hacker Tools
  57. Hacker Tools For Pc
  58. Nsa Hacker Tools
  59. Hacking Tools For Beginners
  60. Hak5 Tools
  61. Best Pentesting Tools 2018
  62. Hack Website Online Tool
  63. Hacking Tools 2019
  64. Hack Tools Online
  65. Hackers Toolbox
  66. Hacking Apps
  67. Hack Tools Pc
  68. Pentest Tools Kali Linux
  69. Physical Pentest Tools
  70. Pentest Tools Online
  71. What Are Hacking Tools
  72. Hack Tools Github
  73. How To Hack
  74. Pentest Tools Apk
  75. Hacker Tools
  76. Hacking Tools Usb
  77. Hacker Tools
  78. Pentest Tools Nmap
  79. Hacks And Tools
  80. Hack Tool Apk
  81. Pentest Tools Apk
  82. Hacking Tools Github
  83. Hak5 Tools
  84. Hacking Tools 2019
  85. Pentest Tools Website
  86. Hacking Tools Pc
  87. Hak5 Tools
  88. New Hack Tools
  89. How To Hack
  90. Beginner Hacker Tools
  91. Hacker Tools Free
  92. Pentest Tools Windows
  93. Hackrf Tools
  94. Beginner Hacker Tools

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home