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 EXBC12DE3F45GRelated news
- Pentest Tools Free
- Pentest Tools Review
- Best Hacking Tools 2019
- Hacking App
- Android Hack Tools Github
- New Hack Tools
- World No 1 Hacker Software
- Wifi Hacker Tools For Windows
- Easy Hack Tools
- Computer Hacker
- Hacking Tools Software
- Pentest Reporting Tools
- Hacking Tools 2020
- Hack Tools Mac
- Hack Tool Apk No Root
- Hack Tools Online
- Nsa Hack Tools
- Easy Hack Tools
- Hacker Tools 2019
- How To Make Hacking Tools
- Wifi Hacker Tools For Windows
- What Are Hacking Tools
- Hacking Tools Hardware
- How To Install Pentest Tools In Ubuntu
- Pentest Tools For Ubuntu
- Pentest Tools Website
- Bluetooth Hacking Tools Kali
- Hacker Tools 2019
- Pentest Tools Bluekeep
- Free Pentest Tools For Windows
- Github Hacking Tools
- Hack Tools Github
- Hacking Tools Mac
- Underground Hacker Sites
- Hack Tools For Ubuntu
- Best Hacking Tools 2019
- Hacking Tools For Windows
- Hacking Tools And Software
- Pentest Tools Subdomain
- Hacker Tools Github
- Github Hacking Tools
- New Hacker Tools
- Pentest Tools Subdomain
- Hack Tools Mac
- Hack Tools For Pc
- Kik Hack Tools
- Bluetooth Hacking Tools Kali
- Hacker Tools 2019
- Hacker Tools Free
- Hack Tools For Games
- Hack Rom Tools
- Hacker Tools Mac
- Pentest Tools Find Subdomains
- Hack Tools Online
- Tools Used For Hacking
- Pentest Tools Tcp Port Scanner
- Tools 4 Hack
- Pentest Tools Kali Linux
- Pentest Tools Alternative
- Hacker Tools List
- Pentest Tools Kali Linux
- Hack Tools Github
- Tools 4 Hack
- Blackhat Hacker Tools
- What Is Hacking Tools
- Hacking Tools For Pc
- Hacks And Tools
- Pentest Tools For Ubuntu
- Hacker Tools For Windows
- Hack Tools Github
- Hacking Apps
- New Hacker Tools
- Hacking Tools Name
- Best Pentesting Tools 2018
- Hack App
- Hack Tools
- Hacking Tools Windows 10
- Nsa Hack Tools Download
- Hack Tools
- Hacking Apps
- Hacking Tools Hardware
- Hacking Tools Pc
- Pentest Tools
- World No 1 Hacker Software
- Kik Hack Tools
- Pentest Tools List
- Hacking Tools Hardware
- Hack Tool Apk No Root
- Hack Tools For Mac
- Hacking App
- Hacking Tools Software
- Hacking Tools Name
- Hacker Tools For Windows
- Pentest Tools For Windows
- Game Hacking
- Beginner Hacker Tools
- Pentest Tools Windows
- Hackers Toolbox
- Hacker Tools 2020
- Pentest Tools Website Vulnerability
- Pentest Tools Website Vulnerability
- Top Pentest Tools
- Hack Tools Pc
- Hacker Tool Kit
- Hack Website Online Tool
- Pentest Tools Online
- Pentest Tools Online
- Pentest Tools
- Nsa Hacker Tools
- Hacking Tools Kit
- Nsa Hack Tools Download
- Pentest Tools Free
- Hack Tools For Games
- Hackers Toolbox
- Hack Tools For Games
- Pentest Tools For Android
- Hacking Tools For Windows
- Pentest Tools
- Hack Tools For Ubuntu
- Computer Hacker
- Hacking Tools Kit
- Black Hat Hacker Tools
- Pentest Tools Apk
- Hacker Tools 2019
- Hacking App
- Game Hacking
- Hacker Tools List
- Pentest Tools Alternative
- Pentest Recon Tools
- What Is Hacking Tools
- Hack Website Online Tool
- How To Hack
- Hacker Tools Software
- Pentest Tools Android
- Best Hacking Tools 2020
- Hacking Tools
- Hack Tools For Mac
- Pentest Tools Website Vulnerability
- Best Hacking Tools 2020
- Android Hack Tools Github
- Hacker Tools For Ios
- Computer Hacker
- Pentest Tools Subdomain
- Hacking Tools Github
- Hacker Security Tools
- Hacker Tools 2020
- Pentest Tools List
- Pentest Automation Tools
- Pentest Tools Review
- Tools Used For Hacking
- Hacking Tools And Software
- Hacker Tools For Mac
- Hacking Tools For Windows 7
- Wifi Hacker Tools For Windows
- Nsa Hack Tools
- Physical Pentest Tools
- Hacker Tools Hardware
- Hacker Tools For Pc
- How To Make Hacking Tools
- Hacking Tools For Kali Linux
- Hack Tools Github
- How To Make Hacking Tools
- Hacker Tools Apk
- How To Make Hacking Tools
- Hack Tools For Windows
- Hacking Tools For Pc
- Hacking Apps
- Nsa Hacker Tools
- Pentest Tools Url Fuzzer
- Android Hack Tools Github
- Growth Hacker Tools
- Hacking Tools 2020

No comments:
Post a Comment