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
- Hacker Tools Linux
- Pentest Tools For Mac
- Hacker Tools Github
- Hack Tools Github
- New Hacker Tools
- Hack Rom Tools
- Hacking Tools 2019
- Hacker Tools List
- Wifi Hacker Tools For Windows
- Wifi Hacker Tools For Windows
- Hacker Tools List
- Hacker Tools Software
- Hacking Tools 2020
- Hack Tools For Windows
- Hack Apps
- Hacker Tools Windows
- Kik Hack Tools
- Hacker Tools For Windows
- Pentest Tools Nmap
- Hack Rom Tools
- Hacking Apps
- Hacker Tools Free Download
- Hack Tools For Ubuntu
- Physical Pentest Tools
- Hak5 Tools
- Hacking Tools Windows 10
- What Is Hacking Tools
- Pentest Tools Free
- Pentest Box Tools Download
- Hack Tools Mac
- Hacker Tools For Mac
- Hacker Tools Free Download
- Hack Apps
- Pentest Tools Review
- Hacker Tools Online
- Hacks And Tools
- Hacker Hardware Tools
- Blackhat Hacker Tools
- Hacking Tools Hardware
- Pentest Tools List
- Pentest Tools Kali Linux
- Hack Tools For Ubuntu
- Pentest Tools For Windows
- Easy Hack Tools
- World No 1 Hacker Software
- Hacker Tools Software
- Hack Tools Online
- Hack Tools For Pc
- Pentest Reporting Tools
- Pentest Tools Website Vulnerability
- Pentest Tools Website
- Hacker Techniques Tools And Incident Handling
- Pentest Tools
- Pentest Tools List
- Pentest Tools Framework
- Hacking Tools Software
- Tools For Hacker
- Best Hacking Tools 2020
- How To Hack
- Game Hacking
- Pentest Tools For Android
- Hacker Tools Windows
- Pentest Tools Framework
- Hacker Tools Online
- Best Hacking Tools 2019
- Hacker Tools List
- Hacking Tools
- Hacking Tools Usb
- Hacker Tool Kit
- Hack Tool Apk No Root
- Hack Tools Online
- Pentest Tools Open Source
- Easy Hack Tools
- Hacking Tools 2020
- Pentest Tools For Ubuntu
- Physical Pentest Tools
- Pentest Tools Nmap
- Pentest Tools Find Subdomains
- Hack Rom Tools
- Hacker Tools Mac
- Hacker
- Hack And Tools
- Pentest Tools Download
- Hacker Search Tools
- Pentest Tools Linux
- Hacking Tools For Games
- Pentest Tools Nmap
- Pentest Tools Website
- Hacker
- Blackhat Hacker Tools
- Hack Tools Pc
- Pentest Tools
- Hacking Tools Mac
- Pentest Box Tools Download
- Hacking Tools For Windows Free Download
- Hack Tools Pc
- Hack Tools For Ubuntu
- Hack Website Online Tool
- Android Hack Tools Github
- Pentest Tools
- Pentest Tools Apk
- Usb Pentest Tools
- How To Make Hacking Tools
- Pentest Tools Framework
- Hacking Tools 2019
- Game Hacking
- Hacking Tools Software
- What Is Hacking Tools
- Hacker Tools Mac
- Android Hack Tools Github
- Pentest Tools Website
- Beginner Hacker Tools
- Hacker Tools Free Download
- New Hack Tools
- Pentest Tools Nmap
- Hacker Tools Hardware
- Hacking Tools For Kali Linux
- Hacker Tools List
- Hacking Tools Online
- Hacker Tools For Mac
- Easy Hack Tools
- Usb Pentest Tools
- Easy Hack Tools
- Hack Tools Online
- Hacker Search Tools
- Pentest Tools Url Fuzzer
- Hacking Tools Download
- Hack Tools For Pc
- Hack Tools Pc
- Pentest Reporting Tools
- Hacking Tools Windows
- Hack Tools Mac
- Tools Used For Hacking
- Github Hacking Tools
- Pentest Tools
- Pentest Tools For Ubuntu
- Hacking Tools For Windows
- Beginner Hacker Tools
- Pentest Tools Windows
- Hack Tools Online
- Usb Pentest Tools
- Hacking Tools For Kali Linux
- Pentest Tools Apk
- Best Pentesting Tools 2018
- Usb Pentest Tools
- Hacking Tools Kit
- Hacking Tools Software
- Hack Tools For Windows
- Pentest Tools For Android
- Install Pentest Tools Ubuntu
- Hacking Tools And Software
- Pentest Tools Kali Linux
- Best Pentesting Tools 2018
- Tools Used For Hacking
No comments:
Post a Comment