CloudFrunt - A Tool For Identifying Misconfigured CloudFront Domains
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
More info
- Hacker
- Hacking Tools 2020
- Pentest Tools Framework
- Pentest Tools Github
- Hacking Tools Windows 10
- Pentest Tools Website Vulnerability
- Hacker Tools Mac
- Blackhat Hacker Tools
- Hacker Tools Free Download
- Tools Used For Hacking
- Github Hacking Tools
- Pentest Tools For Windows
- Hacking Tools For Windows 7
- Hack Tools For Mac
- Pentest Recon Tools
- Hacker Tools
- Hack Tools For Windows
- Hack Tools Pc
- Pentest Tools Download
- Hacking Tools For Games
- Underground Hacker Sites
- Pentest Tools Windows
- Computer Hacker
- Hacker Tools Apk Download
- Computer Hacker
- Hacking Tools For Mac
- Hacker Tools Mac
- Hacking Tools
- Hacker Tools Online
- How To Install Pentest Tools In Ubuntu
- Pentest Tools Website Vulnerability
- Hacking Tools Name
- Tools 4 Hack
- Hacking App
- Hack Tools Pc
- Hack Tools For Pc
- Hack Tools
- Pentest Tools For Mac
- Hack Tools For Windows
- How To Install Pentest Tools In Ubuntu
- Hacker Tools Online
- Hacker Tools For Pc
- Hacking Tools Name
- Hack Tools Download
- Hacking Tools Pc
- Pentest Box Tools Download
- Ethical Hacker Tools
- How To Make Hacking Tools
- Hacking Tools 2020
- Growth Hacker Tools
- Hack Tools Github
- Hacker Tools Online
- Hack Tools 2019
- Hacking Tools For Kali Linux
- Wifi Hacker Tools For Windows
- Pentest Tools Tcp Port Scanner
- Hacker Tools Free Download
- Hacker Tools Apk
- Pentest Tools Free
- Hack Tools Online
- Hacker Tools For Pc
- Hacker Tools 2019
- Free Pentest Tools For Windows
- Pentest Tools For Windows
- Hack Tool Apk No Root
- Hacker Tools 2019
- Pentest Tools Download
- Hack Tools For Windows
- Hacking Tools Download
- Bluetooth Hacking Tools Kali
- Hacking Tools Mac
- Hacker Tools Apk Download
- Hack Tools Github
- Hacking Tools Download
- Hacking Tools 2019
- Hacker
- What Is Hacking Tools
- Hack Tools Pc
- Pentest Recon Tools
- Physical Pentest Tools
- How To Install Pentest Tools In Ubuntu
- Easy Hack Tools
- Hack Apps
- Hack Tools Pc
- Hacker Tools 2019
- Nsa Hack Tools Download
- Hacking Tools 2020
- How To Hack
- Blackhat Hacker Tools
- Hack Tools Github
- Hacker Tools Software
- Hacker Tools Linux
- Hacks And Tools
- Hacker Tools Hardware
- Pentest Tools Tcp Port Scanner
- Hacks And Tools
- Hacking Tools
- Game Hacking
- Kik Hack Tools
- Hacking Tools Github
- Hacker Search Tools
- Computer Hacker
- Hacking Tools For Pc
- Hack Tool Apk No Root
- Hack Tools Pc
- Nsa Hack Tools
- Pentest Tools Bluekeep
- What Are Hacking Tools
- Hacker Tools Hardware
- Pentest Recon Tools
- Pentest Tools Linux
- Hack Tools
- How To Install Pentest Tools In Ubuntu
- Hacker Tools Free
- Hacker Security Tools
- Hacking Tools Download
- Hacker Tools For Ios
- Pentest Tools Download
- Hack Tool Apk No Root
- Pentest Tools Find Subdomains
- Tools Used For Hacking
- Pentest Tools Find Subdomains
- Hack Rom Tools
- Hacking Tools Download
- Pentest Tools Android
- Pentest Automation Tools
- Hacking Tools For Windows 7
- Hacking Tools Windows
- Pentest Tools Subdomain
- Hack Tools For Mac
- Hacker Tools For Windows
- Hacking Tools Mac
- Hacking Tools For Windows Free Download
- Hacking Tools Mac
- Hack App
- Hack Tools For Windows
- Wifi Hacker Tools For Windows
- Install Pentest Tools Ubuntu
- Pentest Tools Framework
- New Hack Tools
- Pentest Tools Subdomain
- Hack Apps
- Pentest Tools Kali Linux
- Pentest Tools Bluekeep
- Pentest Tools Subdomain
- Pentest Tools Bluekeep
- Hacking Tools 2019
- Computer Hacker
- Hacker
- Pentest Tools Free
- Hack Tool Apk
- Pentest Tools Windows
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home