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
- Hackers Toolbox
- Pentest Tools Find Subdomains
- Hack Apps
- Hacker Tools Apk Download
- Game Hacking
- Pentest Tools Website
- Hack Tools Download
- Hacker Tool Kit
- Hack Apps
- Black Hat Hacker Tools
- Hack Tools For Games
- Hacker Tool Kit
- Hack Tool Apk No Root
- Tools Used For Hacking
- Pentest Tools Free
- Hack And Tools
- Pentest Tools Website
- Tools 4 Hack
- Hacker Tools For Mac
- Hacking Tools For Windows Free Download
- Best Hacking Tools 2019
- Black Hat Hacker Tools
- Pentest Tools Kali Linux
- Pentest Tools Port Scanner
- Hacking Tools 2020
- Pentest Tools Subdomain
- Github Hacking Tools
- Pentest Tools Website
- Physical Pentest Tools
- Nsa Hack Tools
- New Hacker Tools
- Hacking Tools For Kali Linux
- Pentest Recon Tools
- Game Hacking
- Nsa Hack Tools Download
- Hack Tools Pc
- Black Hat Hacker Tools
- Hacker Hardware Tools
- Best Hacking Tools 2019
- Free Pentest Tools For Windows
- Pentest Tools Subdomain
- Computer Hacker
- Pentest Tools Alternative
- Pentest Tools Github
- Pentest Tools Github
- How To Hack
- Hacker Tools Hardware
- Hack Tools For Ubuntu
- Pentest Tools Kali Linux
- Hacker Tools Free Download
- Hacker Tools
- Pentest Tools Windows
- Hacker Tools 2019
- Hacking Tools Mac
- Hacker Tools Mac
- Hacker Tools For Ios
- Hacking Apps
- Game Hacking
- Hacking Tools Mac
- Pentest Tools Windows
- Nsa Hack Tools Download
- Pentest Tools Framework
- Pentest Tools Bluekeep
- Free Pentest Tools For Windows
- Growth Hacker Tools
- Tools For Hacker
- Hack Tools Github
- Hackers Toolbox
- Hacking Apps
- Hacker
- Hacking Tools Name
- Pentest Tools Find Subdomains
- Pentest Reporting Tools
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Bluekeep
- What Is Hacking Tools
- Pentest Tools Open Source
- Hacks And Tools
- Kik Hack Tools
- Hack App
- Tools For Hacker
- Hacking Tools Name
- Computer Hacker
- Hacker Search Tools
- Pentest Tools For Ubuntu
- How To Hack
- Top Pentest Tools
- How To Make Hacking Tools
- Easy Hack Tools
- Hacking Tools For Windows
- Pentest Tools Linux
- Hacker Tools Free
- New Hacker Tools
- Install Pentest Tools Ubuntu
- Hacking Tools For Beginners
- Pentest Tools Website
- Hacker Tools Hardware
- Install Pentest Tools Ubuntu
- How To Install Pentest Tools In Ubuntu
- Pentest Recon Tools
- Hack Tools Online
- What Is Hacking Tools
- Nsa Hack Tools
- Easy Hack Tools
- Tools 4 Hack
- Hacking Tools For Windows 7
- Hacker Tools For Pc
- Hacker Tools Windows
- Hackrf Tools
- Pentest Tools Website
- Usb Pentest Tools
- Hacker
- Pentest Tools Alternative
- Hacking Tools Mac
- Game Hacking
- Free Pentest Tools For Windows
- Hack Tools For Ubuntu
- Hacking App
- Pentest Tools Subdomain
- Hacking Tools 2019
- Hacker Tools For Pc
- Blackhat Hacker Tools
- Hacking Tools Usb
- Best Pentesting Tools 2018
- Hacker Tools 2019
- Hacking Tools For Windows Free Download
- Hack Tools For Ubuntu
- Growth Hacker Tools
- Hacker
- Pentest Tools
- Hacks And Tools
- Pentest Box Tools Download
- Hack Tools 2019
- New Hacker Tools
- Pentest Tools Free
- Hacking Tools Online
- Install Pentest Tools Ubuntu
- Hackrf Tools
- Hack Rom Tools
- Hacking Tools For Windows 7
- Nsa Hack Tools
- Hacking Tools Kit
- Hacking Tools Download
- Hacker Tools Online
No comments:
Post a Comment