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.gitCloudFrunt 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 distributionsExample
$ 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- Underground Hacker Sites
- Pentest Tools Alternative
- Hack Tools
- Hacks And Tools
- Hacking Tools Hardware
- Hacking Tools Pc
- Hack Tools For Windows
- Hacking Tools 2019
- Hacking Apps
- Computer Hacker
- Hacking Tools Name
- Best Hacking Tools 2019
- Hacking Tools Kit
- Hacking Tools
- Pentest Tools Url Fuzzer
- Tools Used For Hacking
- What Is Hacking Tools
- Hacking Tools Online
- Pentest Tools Kali Linux
- Hacking Tools 2019
- Hacker Tools For Windows
- Free Pentest Tools For Windows
- Pentest Tools Kali Linux
- Hacker Tools Apk
- How To Install Pentest Tools In Ubuntu
- Pentest Tools Bluekeep
- Install Pentest Tools Ubuntu
- Pentest Tools Alternative
- Computer Hacker
- Hacking Tools Usb
- Pentest Tools Bluekeep
- Hacking Tools For Windows
- Hack Tools For Mac
- Hacking Tools Name
- Physical Pentest Tools
- What Is Hacking Tools
- Hacking Tools Name
- Pentest Tools Website
- Hacking Tools For Windows 7
- Usb Pentest Tools
- Game Hacking
- Hacker Tool Kit
- Hacking Tools For Windows
- Android Hack Tools Github
- Hacker Tools 2020
- Pentest Tools Free
- Hacker Tools Software
- Hack Tools For Ubuntu
- Termux Hacking Tools 2019
- Hack Tools For Games
- Hacking Tools Kit
- Hacking Apps
- Pentest Tools List
- Pentest Tools Apk
- Pentest Tools Bluekeep
- Wifi Hacker Tools For Windows
- New Hacker Tools
- Easy Hack Tools
- Pentest Tools Online
- Hacking Tools Kit
- Hacking Tools Mac
- Wifi Hacker Tools For Windows
- Pentest Tools Free
- Pentest Tools For Mac
- Hack Tools Online
- Blackhat Hacker Tools
- Hacker Tools Hardware
- Best Hacking Tools 2020
- Hacking Tools For Mac
- Tools 4 Hack
- Hack Tools 2019
- Kik Hack Tools
- Pentest Tools Framework
- What Is Hacking Tools
- Pentest Tools Alternative
- Pentest Recon Tools
- Beginner Hacker Tools
- Best Hacking Tools 2019
- Wifi Hacker Tools For Windows
- Hacker Tools Apk
- Hacker Tools Hardware
- Hack Tools For Pc
- Ethical Hacker Tools
- Hack Tools Mac
- Hackrf Tools
- Best Hacking Tools 2019
- Best Hacking Tools 2020
- Github Hacking Tools
- Best Hacking Tools 2020
- Hacking Tools Windows
- Easy Hack Tools
- Hacker Hardware Tools
- Pentest Tools Apk
- Hackrf Tools
- Usb Pentest Tools
- How To Install Pentest Tools In Ubuntu
- Pentest Tools Review
- Pentest Tools For Windows
- Blackhat Hacker Tools
- Hacker
- Hackers Toolbox
- Hack Tools Online
- Hacking Tools Mac
- What Is Hacking Tools
- Hacking Tools For Windows Free Download
- World No 1 Hacker Software
- Nsa Hacker Tools
- Hackrf Tools
- Hacking Tools Free Download
- Pentest Tools Apk
- Underground Hacker Sites
- Hacker Tools For Windows
- Hacker Hardware Tools
- Pentest Recon Tools
- Hack Tools
- Hack Apps
- Pentest Tools List
- Hack Tools
- Hacking Tools Kit
- Hackrf Tools
- Hack Tools
- Pentest Tools Find Subdomains
- Ethical Hacker Tools
- Hacking Tools 2019
- Pentest Tools Review
- What Is Hacking Tools
- Hacking Tools For Beginners
- Tools For Hacker
- Pentest Tools Download
- Hacker Tools Hardware
- Hack Apps
- Hack Tools Pc
- Pentest Tools Open Source
- Hacking Tools
- Hack Tools Github
- Pentest Tools
- Hack App
- Ethical Hacker Tools
- Hacking Tools Name
- Hacking Tools For Pc

No comments:
Post a Comment