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
Continue reading
- Pentest Tools For Android
- New Hack Tools
- Termux Hacking Tools 2019
- Hacking Tools And Software
- Physical Pentest Tools
- Pentest Tools Nmap
- Pentest Tools Alternative
- Hacks And Tools
- Tools Used For Hacking
- Blackhat Hacker Tools
- Hacking Tools Download
- Hacking Tools Kit
- Pentest Tools Find Subdomains
- Growth Hacker Tools
- Tools Used For Hacking
- Hacking Tools Hardware
- Pentest Tools For Mac
- Hacking Tools Github
- Ethical Hacker Tools
- Pentest Tools Review
- Hack Tool Apk No Root
- Hacking Tools
- Hacking Tools For Windows Free Download
- Hack Tools For Windows
- Kik Hack Tools
- Hack Tools Download
- Hack Tools Pc
- New Hack Tools
- Pentest Tools Alternative
- Hacker Tools Software
- Hak5 Tools
- Pentest Tools Apk
- Top Pentest Tools
- Pentest Tools Windows
- Hack Tools For Windows
- Hack Tools Github
- Tools For Hacker
- Pentest Tools Apk
- Hacker Tools 2020
- Hack Tools Github
- Ethical Hacker Tools
- Hacking Tools For Windows 7
- Hacker Tools Mac
- Pentest Reporting Tools
- Black Hat Hacker Tools
- Pentest Tools For Windows
- Hacking Tools Download
- Nsa Hack Tools Download
- Hacker Search Tools
- Hacking Tools For Windows Free Download
- Hack Tools Online
- Pentest Tools Linux
- Hacking Tools Windows 10
- Hacking Tools Mac
- Hacking Tools Kit
- Hack Tools
- How To Install Pentest Tools In Ubuntu
- Hack Tools For Ubuntu
- Hacking Tools Pc
- Pentest Tools Free
- How To Install Pentest Tools In Ubuntu
- What Is Hacking Tools
- Hacker Tools For Windows
- Blackhat Hacker Tools
- Growth Hacker Tools
- Best Hacking Tools 2019
- Hacking Tools 2020
- Hacker Tools Online
- Hacker Tools For Ios
- Hack Rom Tools
- Hacking Tools For Windows 7
- Hackers Toolbox
- Game Hacking
- Physical Pentest Tools
- Tools Used For Hacking
- Pentest Tools
- Bluetooth Hacking Tools Kali
- Hacking Tools 2019
- Hacking Tools Hardware
- Hack Tools 2019
- Hacking Tools For Beginners
- Pentest Tools Linux
- Hacker Tools Free
- Hack Tools For Pc
- Hacker Tools Free Download
- Nsa Hack Tools Download
- Hack Tools Download
- Pentest Tools For Ubuntu
- How To Install Pentest Tools In Ubuntu
- Nsa Hacker Tools
- Hacker Tools Free
- Hacks And Tools
- New Hacker Tools
- Hacker
- Hacker Tools For Pc
- Hack Tools
- Nsa Hack Tools
- Hacking Tools
- Pentest Tools Find Subdomains
- Hack Apps
- Blackhat Hacker Tools
- How To Hack
- Hack Website Online Tool
- Hacking Tools And Software
- Hacking Tools For Kali Linux
- What Are Hacking Tools
- Hacking Tools Download
- Nsa Hacker Tools
- Hacking Tools For Beginners
- Pentest Tools For Mac
- Hacking Tools Windows 10
- Pentest Tools Tcp Port Scanner
- Hack Tools Online
- Tools 4 Hack
- Hack Rom Tools
- Tools Used For Hacking
- Tools Used For Hacking
- Hack Tools For Windows
- New Hack Tools
- Pentest Box Tools Download
- Game Hacking
- How To Install Pentest Tools In Ubuntu
- Hacker Hardware Tools
- Hacker
- Hack Rom Tools
- Pentest Tools Url Fuzzer
- Hacking Apps
- Hacking Tools For Pc
- Hack Tools
- Termux Hacking Tools 2019
- Best Hacking Tools 2019
- Best Pentesting Tools 2018
- What Is Hacking Tools
- Computer Hacker
- Pentest Tools Framework
- Beginner Hacker Tools
- Usb Pentest Tools
- Hacking Tools Windows
- Hacker Tools
- Free Pentest Tools For Windows
- How To Make Hacking Tools
- Hacker Tools List
- Game Hacking
- Hack Tools For Windows
- Pentest Tools Framework
- Pentest Recon Tools
- Hacking Tools For Windows
- Hack Tools For Mac
- Best Pentesting Tools 2018
- Hacker Tools Mac
- Tools For Hacker
No comments:
Post a Comment