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 articles
- Pentest Tools List
- Pentest Tools Linux
- How To Make Hacking Tools
- Hacker Tools Free
- Pentest Tools Alternative
- Computer Hacker
- Pentest Tools Tcp Port Scanner
- Pentest Tools Find Subdomains
- Pentest Tools
- Pentest Tools Bluekeep
- Hacking Tools Kit
- Hacking Tools Free Download
- Hacking Tools Name
- Hack Tools For Mac
- Android Hack Tools Github
- Hacking Tools Download
- Game Hacking
- Hacking Tools For Beginners
- Hacking Tools And Software
- Hacker Tools Free
- Best Pentesting Tools 2018
- Tools Used For Hacking
- Best Hacking Tools 2019
- Pentest Reporting Tools
- Black Hat Hacker Tools
- Best Hacking Tools 2020
- Pentest Tools Kali Linux
- Easy Hack Tools
- Hack Tools Online
- Physical Pentest Tools
- Nsa Hack Tools
- What Are Hacking Tools
- Hack Tools Online
- Nsa Hack Tools
- Black Hat Hacker Tools
- Pentest Tools Website Vulnerability
- Hacker Tools Online
- Hacking Tools Pc
- Hacking Tools Windows
- Pentest Tools Alternative
- Pentest Tools For Ubuntu
- Pentest Tools Apk
- Hacking Tools Online
- Hack Tools 2019
- Hacking Tools For Windows 7
- Pentest Tools Linux
- Pentest Tools List
- Underground Hacker Sites
- Hack Tools
- Hacking Tools Online
- Hacking Tools For Mac
- Hacking Tools Windows
- Game Hacking
- Hacking Tools For Beginners
- What Are Hacking Tools
- Hack Tools Github
- Top Pentest Tools
- Github Hacking Tools
- Nsa Hack Tools Download
- Hacking Tools 2019
- Hacker Tools For Windows
- Tools Used For Hacking
- Pentest Tools Github
- Hackers Toolbox
- Hack Tool Apk
- Pentest Box Tools Download
- Hack Tools For Windows
- Hacker Tools Hardware
- Pentest Tools Subdomain
- Hacking Tools Name
- Hack Tools For Pc
- Beginner Hacker Tools
- Hacking App
- Hacking Tools Pc
- Hacking Tools For Kali Linux
- Hacker Tools Free Download
- Hacker Tools Online
- Hacking Tools 2020
- Bluetooth Hacking Tools Kali
- Pentest Tools Framework
- Pentest Tools Website Vulnerability
- Nsa Hack Tools
- Pentest Tools For Mac
- Hacker Tools Github
- Hacking Tools Kit
- Hacker Security Tools
- Hacking Tools For Mac
- Pentest Tools Website Vulnerability
- Github Hacking Tools
- Black Hat Hacker Tools
- Hack Tools Mac
- Hack Tools For Mac
- Pentest Tools Apk
- Pentest Tools Review
- Black Hat Hacker Tools
- Hack Tools
- Hack Tools For Pc
- Hack Tools For Windows
- Hacker Tool Kit
- Hacking Tools For Pc
- Pentest Tools Open Source
- Hacker
- Hak5 Tools
- Pentest Tools Online
- Beginner Hacker Tools
- Beginner Hacker Tools
- Best Hacking Tools 2020
- Easy Hack Tools
- Hacker Tools Free
- Hacking Tools Windows 10
- Hack Tools Pc
- Hacker Tools
- Hack Tools For Windows
- Hacker Techniques Tools And Incident Handling
- Hacks And Tools
- Pentest Tools List
- Hacking Tools For Games
- Hacking Tools Online
- Best Hacking Tools 2020
- Hack And Tools
- World No 1 Hacker Software
- Best Hacking Tools 2019
- Game Hacking
- Hacking Tools 2020
- Best Pentesting Tools 2018
- Pentest Tools Framework
- Pentest Reporting Tools
- Hacking Tools For Kali Linux
- Hacker Tools For Pc
- Hacker Tools Online
- Easy Hack Tools
- Hacker Tools List
- Hacking Tools For Kali Linux
- Pentest Tools Open Source
- Top Pentest Tools
- Hacker Tools Apk Download
- Hack And Tools
- Best Pentesting Tools 2018
- Hack Tools For Ubuntu
- Hacker Tool Kit
- New Hack Tools
- Hacker Security Tools
- Pentest Tools Linux
- Pentest Tools Bluekeep
- Pentest Box Tools Download
- Physical Pentest Tools
- Pentest Tools Apk
- Tools For Hacker
- Hack Tools Online
- Pentest Tools Kali Linux
- Best Pentesting Tools 2018
- Underground Hacker Sites
- How To Hack
- Pentest Tools Port Scanner
No comments:
Post a Comment