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:
- If the HOST header does not match an entry in the "Alternate Domain Names (CNAMEs)" field of the intended distribution, the request will fail.
- 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
- Hacker Tools Apk Download
- Pentest Tools Website Vulnerability
- Termux Hacking Tools 2019
- Hacker Tools Windows
- Hack Tools
- Best Hacking Tools 2020
- Pentest Tools Website
- Hacker Hardware Tools
- Pentest Tools Linux
- Pentest Tools Github
- Hacking Tools Mac
- Pentest Automation Tools
- Hack Tools Mac
- Hacker Tools Hardware
- Pentest Tools Github
- Hacker Tools Hardware
- Hacker Tools Hardware
- Pentest Tools Framework
- Termux Hacking Tools 2019
- Pentest Tools Framework
- Pentest Tools For Windows
- Pentest Tools Online
- Pentest Tools For Ubuntu
- Pentest Tools Url Fuzzer
- Hacker Tools List
- Hack App
- Hack Rom Tools
- Termux Hacking Tools 2019
- Free Pentest Tools For Windows
- Pentest Tools Open Source
- Growth Hacker Tools
- Hacking App
- Hacking Tools Free Download
- Hacker Tool Kit
- Pentest Tools Framework
- Hack Tools Pc
- Hacker Tools 2020
- Pentest Tools Free
- Hack Tool Apk
- Hack Rom Tools
- Hacker Tools List
- Hacking Tools And Software
- Hacking Tools Mac
- Hacker Tools Software
- Hacking Tools Windows
- Pentest Tools Bluekeep
- Hacking Tools For Windows Free Download
- Hacker Tools
- Nsa Hack Tools Download
- Pentest Tools Apk
- Hack Tools For Mac
- Pentest Tools For Ubuntu
- Best Pentesting Tools 2018
- Hack Tools Mac
- Pentest Tools Online
- Hacker Tools List
- Hacker Tools For Ios
- Hacker
- Pentest Automation Tools
- Hack Tool Apk No Root
- What Is Hacking Tools
- What Is Hacking Tools
- Hacking Tools And Software
- Pentest Tools For Windows
- Hacker Security Tools
- Hacker Tools 2019
- Hacking Tools And Software
- Hack Tools Mac
- Pentest Tools Download
- Hacker Tools Software
- Pentest Box Tools Download
- Bluetooth Hacking Tools Kali
- Pentest Tools Website Vulnerability
- Hack And Tools
- Pentest Tools Windows
- Pentest Tools Website
- Hacker Tools Free
- Pentest Tools Url Fuzzer
- Hacking Tools
- Hack Tool Apk
- Pentest Tools Url Fuzzer
- Hacking Tools For Beginners
- Pentest Tools Url Fuzzer
- Black Hat Hacker Tools
- Hackrf Tools
- Computer Hacker
- New Hacker Tools
- Hacking Tools Kit
- Usb Pentest Tools
- Hacker Tools Online
- Hacker Tools Apk Download
- Pentest Tools Github
- Hack Tools
- Pentest Tools Github
- Github Hacking Tools
- Hacker Tools Hardware
- Nsa Hack Tools Download
- Hacker Tools
- Hacker Tools Mac
- Hack Tools Pc
- Hack Tools 2019
- Pentest Tools Download
- Pentest Tools Alternative
- Pentest Tools Url Fuzzer
- Wifi Hacker Tools For Windows
- Hack Tools
- Hacker Hardware Tools
- Best Hacking Tools 2019
- Hack Tools
- Hack Tool Apk No Root
- Hacker Tools For Windows
- Hacker Tools Linux
- Hack Tools
- Hacker Tools Github
- Hack Tools For Games
- Hacker Tools For Pc
- Pentest Tools Port Scanner
- Hack Tools Online
- Hack Tools For Pc
- Ethical Hacker Tools
- Hacking Tools Hardware
- Android Hack Tools Github
- Nsa Hack Tools
- Hacking Tools Pc
- Hacker Tools List
- Free Pentest Tools For Windows
- Pentest Tools Github
- Hacker Tools Hardware
- Hacker Tools
- Pentest Tools For Mac
- Hack Apps
- Hacking Tools For Pc
- Hacking Tools For Games
- Hacker Tools Software
- Pentest Tools Website Vulnerability
- Hack Tool Apk No Root
- Pentest Tools Linux
- Hack Tools For Mac
- Tools 4 Hack
- Hacking Tools Pc
- Pentest Tools Alternative
No comments:
Post a Comment