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
Related links
- Beginner Hacker Tools
- Hacking Tools Windows 10
- Tools 4 Hack
- Hacking Tools Download
- Hacker Search Tools
- Github Hacking Tools
- Hack Rom Tools
- Hacking Tools Windows
- Pentest Tools Alternative
- Pentest Tools Subdomain
- Pentest Tools Find Subdomains
- Pentest Tools Windows
- Hacker Tools Apk Download
- Tools 4 Hack
- Hacker Techniques Tools And Incident Handling
- Best Hacking Tools 2020
- Hacker Tools For Windows
- Hacking Tools Online
- Hacker Search Tools
- Hacking App
- Hacker Tool Kit
- Bluetooth Hacking Tools Kali
- Pentest Tools List
- How To Hack
- Hacking Tools Pc
- Hack Tools For Windows
- Hack Tools Mac
- Hacker Tools Linux
- Hacking Tools Kit
- Hacker Tools Hardware
- Hacker Tools 2020
- Hacking Tools For Windows
- Hacking Tools Mac
- Free Pentest Tools For Windows
- Pentest Recon Tools
- How To Make Hacking Tools
- Hack Tools 2019
- Hacking Tools Windows
- Pentest Tools Find Subdomains
- Hack Tool Apk No Root
- Hacker Tools For Ios
- Black Hat Hacker Tools
- Hacker Tools
- Hack Tools For Pc
- Pentest Tools Nmap
- Pentest Tools Bluekeep
- Pentest Tools Kali Linux
- Hacking Tools For Beginners
- Growth Hacker Tools
- Pentest Tools Nmap
- Hack Tools Github
- Hacker Tools Windows
- Hacking Tools And Software
- Black Hat Hacker Tools
- Pentest Recon Tools
- Pentest Tools For Windows
- Hacking Tools Kit
- Hack Tool Apk
- Hacker Tools For Pc
- Wifi Hacker Tools For Windows
- Hacking Tools Github
- Hacking Tools Online
- Pentest Tools Website Vulnerability
- Computer Hacker
- Hacking Tools Online
- Hacker Tools Github
- Hacker Tools Hardware
- Hacking App
- Hacking Tools Mac
- Hak5 Tools
- Hacking Tools
- Wifi Hacker Tools For Windows
- Hacking Tools Download
- Hack Rom Tools
- Hack Tools 2019
- Hacking Tools For Windows Free Download
- Growth Hacker Tools
- Hacking Tools Software
- Hack App
- Beginner Hacker Tools
- How To Make Hacking Tools
- How To Make Hacking Tools
- Hacking Tools 2019
- New Hack Tools
- Kik Hack Tools
- Hacking Tools Github
- Hacker
- Pentest Tools List
- Pentest Tools Tcp Port Scanner
- Usb Pentest Tools
- Hacking Tools Kit
- What Are Hacking Tools
- Easy Hack Tools
- Hacker Tools Apk
- Hacking Tools For Kali Linux
- Pentest Tools For Windows
- Hacker Tools Online
- Ethical Hacker Tools
- Hacker Tools Hardware
- Hacking Tools Kit
- New Hack Tools
- Hacking Tools
- Best Pentesting Tools 2018
- Wifi Hacker Tools For Windows
- Hacks And Tools
- Hack Tools For Games
- Hacking Tools Usb
- Hack Tools Github
- Pentest Tools Nmap
- Pentest Tools Website
- Nsa Hack Tools Download
- Pentest Tools Website
- Hacker Search Tools
- Ethical Hacker Tools
- Hack Website Online Tool
- Best Hacking Tools 2019
- Usb Pentest Tools
- Hacking Tools Usb
- Top Pentest Tools
- How To Make Hacking Tools
- Termux Hacking Tools 2019
- How To Hack
- Pentest Tools Kali Linux
- Hacking Tools
- Hacker Tools Online
- Pentest Tools Open Source
- How To Make Hacking Tools
- Hacking Tools For Kali Linux
- Hacker Tools For Ios
- Pentest Tools Online
- Hack Tools
- Hack Rom Tools
- Pentest Tools Review
- Hacker Tool Kit
- Pentest Tools Alternative
- Pentest Tools For Windows
- Game Hacking
- Tools 4 Hack
- Tools 4 Hack
- Hacking Tools For Pc
- Hackrf Tools
- Pentest Tools Download
- Hacking Tools Name
- Pentest Tools Subdomain
- Pentest Tools For Windows
- Pentest Tools For Ubuntu
- Hacking Tools For Windows
- Pentest Tools Github
- What Is Hacking Tools
- Best Hacking Tools 2020
- Black Hat Hacker Tools
- Hack Tools For Windows
- Hacking Tools For Kali Linux
- Free Pentest Tools For Windows
- Hacking Tools For Windows
- Hacker Tools List
- Pentest Tools Url Fuzzer
- Ethical Hacker Tools
- Hacking Apps
- Hackers Toolbox
- Blackhat Hacker Tools
No comments:
Post a Comment