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
- Kik Hack Tools
- Hacker Tools Apk Download
- Usb Pentest Tools
- Hacker Search Tools
- Hack Apps
- Hacking Tools Software
- Beginner Hacker Tools
- Bluetooth Hacking Tools Kali
- Pentest Tools Alternative
- Pentest Recon Tools
- Hacker Tools Free
- Hack Tools
- Pentest Reporting Tools
- Hacking Tools For Games
- Ethical Hacker Tools
- Hacker Tool Kit
- Pentest Tools Website
- Pentest Tools Apk
- What Are Hacking Tools
- Kik Hack Tools
- Hacking Tools For Windows
- Pentest Tools Windows
- Pentest Tools Find Subdomains
- Hack Tools Online
- Hacking Tools 2020
- Pentest Tools Apk
- Hacker Tools Software
- Hacker Search Tools
- How To Hack
- Hacking Tools Github
- Pentest Tools Alternative
- Pentest Tools Bluekeep
- Ethical Hacker Tools
- Hack Tool Apk No Root
- Hack Tools Github
- Pentest Reporting Tools
- Easy Hack Tools
- Tools 4 Hack
- Hacker Tools List
- Hacking Tools Online
- Pentest Box Tools Download
- Hack Tool Apk
- Pentest Tools Online
- Hacker Tools Github
- Hacking Tools For Games
- Hacker Tools For Ios
- Hackers Toolbox
- Hack Tools For Mac
- Pentest Tools Kali Linux
- What Is Hacking Tools
- Bluetooth Hacking Tools Kali
- Pentest Tools Alternative
- Best Hacking Tools 2019
- Pentest Tools Nmap
- Best Pentesting Tools 2018
- Hack App
- Hacker Tools Apk Download
- Hacking Tools For Windows Free Download
- Wifi Hacker Tools For Windows
- Hacker Tools Hardware
- Hack Tools
- Hacker Tools Online
- Hacking Tools 2020
- New Hack Tools
- Pentest Tools Online
- Hacking Tools
- Hacker Tools Free
- Hacking Tools Kit
- Underground Hacker Sites
- Pentest Tools Download
- Hacking Tools Windows
- Pentest Tools Url Fuzzer
- Pentest Tools Online
- Game Hacking
- Pentest Tools Subdomain
- New Hacker Tools
- Pentest Tools Website Vulnerability
- Hacking Tools For Beginners
- Hacker Tools Hardware
- Hacker Search Tools
- Hack Website Online Tool
- Pentest Reporting Tools
- Tools For Hacker
- Pentest Tools Windows
- Pentest Tools Website
- Tools For Hacker
- Hak5 Tools
- Tools For Hacker
- Pentest Tools List
- Pentest Recon Tools
- Pentest Recon Tools
- Pentest Tools List
- Hacker Tools For Mac
- Pentest Tools Nmap
- Bluetooth Hacking Tools Kali
- Hacker Tools Windows
- Underground Hacker Sites
- Underground Hacker Sites
- Black Hat Hacker Tools
- Hacker
- Hack Tools For Mac
- Growth Hacker Tools
- Nsa Hack Tools
- Hacking Tools Hardware
- Hacking Tools 2020
- Hacking Tools For Games
- Hacking Tools For Kali Linux
- Usb Pentest Tools
- Hacking Tools Github
- Hacking Tools Pc
- Hackers Toolbox
- Android Hack Tools Github
- Pentest Tools For Android
- Pentest Tools
- Best Hacking Tools 2020
- Hacking Tools Hardware
- Tools For Hacker
- World No 1 Hacker Software
- Black Hat Hacker Tools
- Tools 4 Hack
- Pentest Tools Free
- Hacking Tools Windows
- Pentest Tools List
- Pentest Tools Subdomain
- Hacking Tools Online
- Pentest Automation Tools
- Hacker Tools List
- Nsa Hack Tools
- Hack Tools Mac
- How To Install Pentest Tools In Ubuntu
- Best Hacking Tools 2019
- Hack Tools Download
- Hacking Tools Mac
- Free Pentest Tools For Windows
- Pentest Box Tools Download
- Hackers Toolbox
- Pentest Tools Url Fuzzer
- Pentest Tools Nmap
- Hack Tools 2019
- Hacker Security Tools
- Top Pentest Tools
- Best Hacking Tools 2020
- Hacker Tools Linux
- Hack Tools
- Pentest Tools Url Fuzzer
- Free Pentest Tools For Windows
- Pentest Tools Open Source
- Github Hacking Tools
- Hack Tools
- Hacking Tools Free Download
- Hack App
- Hack App
- Hacking Tools Kit
- Best Hacking Tools 2020
- Hack Tools Mac
- Bluetooth Hacking Tools Kali
- Hak5 Tools
- Pentest Tools Download
- Tools Used For Hacking
- Hack Apps
- Black Hat Hacker Tools
- Hacker Tools Software
- Easy Hack Tools
- Pentest Tools Open Source
- Usb Pentest Tools
- Hacker Tools Software
- Hacker Tools Apk
- How To Install Pentest Tools In Ubuntu
- How To Install Pentest Tools In Ubuntu
- Hack Tools Pc
- Hacking Tools For Pc
- Top Pentest Tools
- Install Pentest Tools Ubuntu
- Hacker Tools Free
- Hacking Tools Name
- Growth Hacker Tools
- New Hack Tools