Giter Site home page Giter Site logo

chocapikk / cve-2023-4966 Goto Github PK

View Code? Open in Web Editor NEW
61.0 2.0 10.0 16 KB

Sensitive information disclosure in NetScaler ADC and NetScaler Gateway when configured as a Gateway (VPN virtual server, ICA Proxy, CVPN, RDP Proxy) or AAA virtual server.

Home Page: https://www.assetnote.io/resources/research/citrix-bleed-leaking-session-tokens-with-cve-2023-4966

Python 100.00%
citrix exploit exploitation infosec memory-leak netscaler network-security open-source pentesting python

cve-2023-4966's Introduction

CVE-2023-4966 Citrix Memory Leak Exploit ๐Ÿ”’

Leak session tokens from vulnerable Citrix ADC instances affected by CVE-2023-4966. โš ๏ธ

Description ๐Ÿ“ƒ

This Python script exploits CVE-2023-4966, a critical vulnerability in Citrix ADC instances that allows unauthenticated attackers to leak session tokens. The vulnerability is assigned a CVSS score of 9.4 and is remotely exploitable without user interaction. Citrix NetScaler appliances configured as Gateways (VPN virtual server, ICA Proxy, CVPN, RDP Proxy) or AAA virtual servers are vulnerable to this attack. โ˜ ๏ธ

Usage ๐Ÿ’ป

$ OPENSSL_CONF=./openssl.cnf python3.10 exploit.py -h

Options:

  • -h, --help: Show the help message and exit. โ„น๏ธ
  • -u URL, --url URL: Specify the Citrix ADC / Gateway target (e.g., https://192.168.1.200). ๐Ÿ”—
  • -f FILE, --file FILE: Provide a file containing a list of target URLs (one URL per line). ๐Ÿ“
  • -o OUTPUT, --output OUTPUT: Specify the file to save the output results. ๐Ÿ’พ
  • -v, --verbose: Enable verbose mode. ๐Ÿ”Š
  • --only-valid: Only show results with valid session tokens.

How to Use ๐Ÿ’ก

  1. Clone the repository:

    $ git clone https://github.com/Chocapikk/CVE-2023-4966.git
    $ cd CVE-2023-4966
  2. Run the exploit:

    For a single target:

    $ OPENSSL_CONF=./openssl.cnf python3.10 exploit.py -u https://target.example.com

    For multiple targets listed in a file:

    $ OPENSSL_CONF=./openssl.cnf python3.10 exploit.py -f targets.txt --only-valid

    Use the -o flag to specify an output file for the results:

    $ OPENSSL_CONF=./openssl.cnf python3.10 exploit.py -u https://target.example.com -o results.txt --only-valid

    To enable verbose mode, use the -v flag. ๐Ÿ”Š

Credits ๐Ÿ‘

This exploit is inspired by the research conducted by Assetnote. ๐Ÿ™Œ

Disclaimer โš ๏ธ

This script is provided for educational and research purposes only. Use it responsibly and only on systems you have permission to test. ๐Ÿ›ก๏ธ


Note ๐Ÿ“

During my research, I found that the session cookies always end with the hex sequence 45525d5f4f58455e445a4a42. Incorporating this information can greatly enhance the accuracy of session token detection.

cve-2023-4966's People

Contributors

chocapikk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.