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 posts
- Easy Hack Tools
- Hacker Tools Apk
- Install Pentest Tools Ubuntu
- Ethical Hacker Tools
- Hacking Tools For Beginners
- Hacker Tools Software
- Pentest Tools Android
- Hack Tools
- Hacker Tools Linux
- Install Pentest Tools Ubuntu
- Hacking Tools For Beginners
- Pentest Tools Open Source
- Hacker Tools Free Download
- Hack Tools Github
- Pentest Tools Nmap
- Hacker Tools Apk
- Hacker Tools Free Download
- Pentest Tools List
- Hack And Tools
- Hacking Apps
- Hack App
- Hack Tools For Mac
- Hacking Tools Free Download
- Pentest Tools Kali Linux
- Hack Tools For Windows
- Pentest Tools Bluekeep
- Hackers Toolbox
- Hacking Tools For Kali Linux
- Hacking Tools Hardware
- Hacking Tools Mac
- Pentest Tools Nmap
- Hacking Tools For Games
- What Are Hacking Tools
- Hacking Tools For Windows Free Download
- Hacking Tools Pc
- Blackhat Hacker Tools
- Hacker Tools Hardware
- Hacking Tools Windows
- What Are Hacking Tools
- Pentest Tools Tcp Port Scanner
- Hak5 Tools
- Wifi Hacker Tools For Windows
- Hack Tools For Windows
- Kik Hack Tools
- Computer Hacker
- Hackers Toolbox
- Underground Hacker Sites
- Hacking Tools Hardware
- Pentest Tools Subdomain
- Wifi Hacker Tools For Windows
- Pentest Tools Alternative
- Android Hack Tools Github
- Pentest Reporting Tools
- Pentest Reporting Tools
- Hacker Tool Kit
- Computer Hacker
- Pentest Tools Download
- Hacking Tools Download
- Pentest Tools Website Vulnerability
- Pentest Tools Website Vulnerability
- Hack Tools For Pc
- Termux Hacking Tools 2019
- How To Hack
- Hack Tools Download
- Pentest Tools Website Vulnerability
- Hacking Tools And Software
- Hacker Security Tools
- Hacking Tools Free Download
- Hacking Apps
- Hacking Tools Software
- Hacking Tools For Windows Free Download
- Hack And Tools
- Hacking Tools 2020
- Pentest Tools For Windows
- Hacker Tools
- Hacker Tools Free
- Hacker Tools List
- Hacks And Tools
- Hacking Tools For Beginners
- Nsa Hack Tools
- Hacking Tools Online
- Hack Tools
- Pentest Reporting Tools
- Hacker Techniques Tools And Incident Handling
- Hacking Tools For Beginners
- Pentest Tools Framework
- Pentest Tools Github
- Hacker Tools Free
- Hack Tools Mac
- Hacking Tools Name
- Tools 4 Hack
- Hack Tool Apk No Root
- New Hack Tools
- Pentest Tools List
- Hacker Tools Mac
- Hacking Tools For Beginners
- Hack Rom Tools
- Termux Hacking Tools 2019
- Hacker Tools Mac
- Pentest Tools Url Fuzzer
- Hacker Tools Github
- Hacker Tools Online
- Pentest Tools For Windows
- Hacking Tools Name
- Pentest Tools Tcp Port Scanner
- Hacker Tools Online
- Hack Apps
- Tools Used For Hacking
- Computer Hacker
- Hacker Tools 2020
- Hacking Tools For Beginners
- Pentest Automation Tools
- Hak5 Tools
- Free Pentest Tools For Windows
- Usb Pentest Tools
- New Hack Tools
- Hack Tools Download
- Hacking Tools For Windows 7
- Hackrf Tools
- Growth Hacker Tools
- Best Pentesting Tools 2018
- Hacking Tools Mac
- Hacking Tools For Beginners
- Best Hacking Tools 2020
- New Hacker Tools
- Hacker Tools Github
- Hack And Tools
- Hacking Tools Mac
- Pentest Tools For Mac
- How To Hack
- Hacker Tools Apk
- Hack And Tools
- Hacker Tools Mac
- Pentest Tools Framework
- Hack Tools For Ubuntu
- Hack Apps
- Hack App
- Hack Tool Apk
- Hacker Tools Windows
- Pentest Tools For Mac
- Hacker Tools Github
- Hack And Tools
- Hacking Apps
- Hack Tools For Windows
- Hacker Tools 2019
- Hacking Tools And Software
- Hacking Tools 2020
- Pentest Tools For Ubuntu
- Hacker Tools
- Game Hacking
- Pentest Tools Online
- Computer Hacker
- Hacker
- Pentest Tools Apk
- Tools For Hacker
- Kik Hack Tools
- Pentest Tools For Ubuntu
- Hacker Tools For Ios
- Hacker Tools For Ios
No comments:
Post a Comment