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 word
- Hack Tools
- Hacker Tools Github
- Hacker Techniques Tools And Incident Handling
- Hacker Tools List
- Hacker Tools For Mac
- Pentest Tools Github
- Pentest Tools Url Fuzzer
- Hacking Tools For Games
- Pentest Tools Nmap
- Best Hacking Tools 2020
- Free Pentest Tools For Windows
- Hack Tools 2019
- Hacker Tools For Ios
- Hacking Tools Name
- Pentest Tools Open Source
- Hacking Tools Kit
- Hacker Tools Apk
- Hack Tools Online
- Pentest Tools Review
- Github Hacking Tools
- Pentest Tools Website
- Hacker Tools Windows
- Pentest Tools Alternative
- Hacker Tools Linux
- Hack And Tools
- Hack Tools
- Hacking Tools 2019
- Pentest Tools Kali Linux
- Hacking Tools Windows
- Pentest Tools Android
- Pentest Tools Nmap
- Hack Tools For Games
- Hacking Tools 2020
- Hacking Tools For Pc
- Hacking Tools For Windows Free Download
- Nsa Hack Tools
- Hacking Tools 2019
- Pentest Tools Kali Linux
- Pentest Tools Alternative
- Hacker Tools Mac
- Hack Tools Mac
- Hacker Tools Github
- New Hacker Tools
- Hacking Tools Mac
- Hak5 Tools
- Pentest Tools Kali Linux
- Pentest Tools Github
- Usb Pentest Tools
- Termux Hacking Tools 2019
- Hacker Techniques Tools And Incident Handling
- Hacking Tools And Software
- Github Hacking Tools
- Pentest Tools
- Hacking Tools For Pc
- Hacker Tools Linux
- Hacking Tools Pc
- Physical Pentest Tools
- Hacking Apps
- Pentest Tools Review
- Pentest Tools Apk
- Pentest Recon Tools
- Pentest Tools Nmap
- Pentest Tools Find Subdomains
- Bluetooth Hacking Tools Kali
- Bluetooth Hacking Tools Kali
- Hack Apps
- Hacker Tools Software
- Computer Hacker
- Pentest Tools Download
- Hacker Tools List
- Pentest Tools
- World No 1 Hacker Software
- Tools 4 Hack
- Hacking Tools Windows 10
- Blackhat Hacker Tools
- Pentest Recon Tools
- Tools 4 Hack
- Black Hat Hacker Tools
- How To Hack
- Hacking Tools For Beginners
- Pentest Reporting Tools
- Best Hacking Tools 2020
- Best Hacking Tools 2020
- Computer Hacker
- Ethical Hacker Tools
- Hacking Tools Name
- Hack Tools Mac
- Underground Hacker Sites
- Pentest Box Tools Download
- Hacker Tools Apk Download
- Tools Used For Hacking
- Hacking Tools Github
- Hacker Tools Github
- Hack Tools
- Pentest Tools Github
- Pentest Tools Subdomain
- Hacker Tools For Pc
- Hack Tools 2019
- Beginner Hacker Tools
- Pentest Box Tools Download
- Blackhat Hacker Tools
- Hack Tools For Pc
- Pentest Tools Apk
- Bluetooth Hacking Tools Kali
- Hacker Tools Online
- Hacking Tools Software
- Underground Hacker Sites
- Hack And Tools
- Hacker Tools Github
- Hacking Tools For Games
- Hacker Tools 2020
- Hacking Tools For Pc
- Pentest Tools Android
- Pentest Tools For Windows
- Hacking Tools 2019
- How To Install Pentest Tools In Ubuntu
- Best Hacking Tools 2020
- Pentest Tools Tcp Port Scanner
- Hacking Tools Mac
- Android Hack Tools Github
- Pentest Tools Github
- Hacker Tools For Windows
- Usb Pentest Tools
- Top Pentest Tools
- Pentest Tools For Android
- Game Hacking
- Hacker Tools Online
- Pentest Tools Github
- Pentest Tools Apk
- Best Hacking Tools 2019
- Pentest Automation Tools
- Top Pentest Tools
- Hacking Tools
- Hack Tool Apk No Root
- Hack Tools
- Hack Rom Tools
- Hacking Tools Kit
- Pentest Tools Open Source
- Hacking Tools Software
- Hacking Tools For Pc
- Hack Tools Online
- Pentest Reporting Tools
- Growth Hacker Tools
- Hack Rom Tools
- Bluetooth Hacking Tools Kali
Tidak ada komentar:
Posting Komentar