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:
- 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
- Physical Pentest Tools
- What Are Hacking Tools
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Open Source
- Hacker Tools For Windows
- Hacking Tools For Pc
- Hacks And Tools
- New Hack Tools
- Hack Tools Pc
- Hacker Tools Github
- What Is Hacking Tools
- Hack Tools For Ubuntu
- Bluetooth Hacking Tools Kali
- Pentest Tools Find Subdomains
- Hacker Tools Free
- Hacking Tools Kit
- Beginner Hacker Tools
- Pentest Tools Free
- Hacking Tools For Kali Linux
- Pentest Tools For Mac
- Hacker Tools For Windows
- Hack Website Online Tool
- Hacking Tools Mac
- Hack App
- How To Hack
- Pentest Tools Windows
- Beginner Hacker Tools
- Growth Hacker Tools
- Hacker Tools Mac
- Hacks And Tools
- Underground Hacker Sites
- Best Hacking Tools 2019
- Hacker
- Pentest Tools Android
- Hacker Tools Hardware
- Hacker Tools For Ios
- Tools 4 Hack
- Blackhat Hacker Tools
- Pentest Tools Download
- Hack Tools For Mac
- Beginner Hacker Tools
- Hacker Tools Hardware
- Hacker Tools Windows
- Pentest Reporting Tools
- Game Hacking
- Hack Tools Mac
- Hacking Tools Name
- Hack Tools
- Hacker Tools For Windows
- Best Pentesting Tools 2018
- Hacker Tools
- Pentest Tools For Ubuntu
- Hacking Tools Download
- Hacking Tools For Beginners
- Pentest Automation Tools
- Wifi Hacker Tools For Windows
- Hacking Tools Windows
- Hacker Tools Apk Download
- Pentest Tools List
- Hacking Tools Kit
- Pentest Automation Tools
- Tools 4 Hack
- Hack Tools For Mac
- Hacking Tools Hardware
- Hacking Tools 2020
- Pentest Tools Framework
- Bluetooth Hacking Tools Kali
- Best Hacking Tools 2019
- How To Make Hacking Tools
- Hacker Tools Apk
- Pentest Tools Free
- Termux Hacking Tools 2019
- Hack Rom Tools
- What Is Hacking Tools
- Termux Hacking Tools 2019
- Hack Tools For Games
- Pentest Tools Website Vulnerability
- Hacking Tools Windows 10
- Hacking Tools
- Hack Tools For Pc
- Hacker Tools
- Nsa Hack Tools Download
- Pentest Tools Review
- What Is Hacking Tools
- Free Pentest Tools For Windows
- Hacking Tools Github
- Hacking Tools For Kali Linux
- Underground Hacker Sites
- Hacking Tools Usb
- Hacker
- Hack Tools Pc
- Hack Tools Online
- How To Hack
- Pentest Tools Tcp Port Scanner
- Hacker Tools Linux
- Tools 4 Hack
- Hacking Tools Windows
- Hacker Tools Windows
- Pentest Tools Url Fuzzer
- Hack Tools For Pc
- Hacking Tools For Kali Linux
- Hacking Tools Pc
- Best Hacking Tools 2019
- Hacker Hardware Tools
- Hack Tools
- Hacking Tools For Pc
- Hacking Tools Hardware
- Hacking Tools Hardware
- Hacker Tools 2020
- Hacker Tools Apk Download
- Hacker Search Tools
- Usb Pentest Tools
- Pentest Tools Subdomain
- Physical Pentest Tools
- Hack Tool Apk No Root
- Hack Website Online Tool
- Hacking Tools Software
- Pentest Tools Website
- Beginner Hacker Tools
- Hacking Tools Usb
- Hack Tool Apk
- Hack Tools For Ubuntu
- Pentest Tools Linux
- Pentest Tools Subdomain
- Hackers Toolbox
- Pentest Tools Website Vulnerability
- Pentest Tools Framework
- Hack Tools Pc
- Hacking Tools
- Pentest Tools
- Pentest Reporting Tools
- Growth Hacker Tools
- Hacker Tools 2019
- Hacking Tools Pc
- Pentest Tools Download
0 Comments:
Post a Comment
<< Home