Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2024-23897 PoC — Jenkins 安全漏洞

Source
Associated Vulnerability
Title:Jenkins 安全漏洞 (CVE-2024-23897)
Description:Jenkins 2.441 and earlier, LTS 2.426.2 and earlier does not disable a feature of its CLI command parser that replaces an '@' character followed by a file path in an argument with the file's contents, allowing unauthenticated attackers to read arbitrary files on the Jenkins controller file system.
Description
Perform with massive Jenkins Reading-2-RCE
Readme
 # CVE-2024-23897: Jenkins Arbitrary File Read Vulnerability Leading to RCE

## Introduction

This repository contains a Python script that exploits a critical vulnerability (CVE-2024-23897) in Jenkins, leading to arbitrary file read and remote code execution (RCE). This vulnerability allows an unauthenticated attacker to execute arbitrary commands on the target Jenkins server, potentially compromising the entire system.

## Prerequisites

Before you can use this exploit, you will need to ensure that you have the following prerequisites installed:

- Python 3 or later
- The `requests` library
- The `argparse` library
- The `colorama` library
- The `concurrent.futures` library

You can install these dependencies using the following commands:

```
pip install requests
pip install argparse
pip install colorama
pip install concurrent.futures
```

## Usage

To use this exploit, simply clone this repository and run the `CVE-2024-23897.py` script. You can specify the following options:

![Screenshot_1](https://github.com/ThatNotEasy/CVE-2024-23897/assets/25004320/ca44ccb5-983a-423d-be81-190aa67e0ce4)

- `-u, --url`: The target Jenkins URL.
- `-f, --filename`: The file containing a list of target URLs or IPs.
- `-t, --threads`: The number of threads to use for concurrent execution.
- `-o, --output`: The output file to save successful responses.
- `-c, --command`: The command to execute on the target system.

For example, to exploit a single target with the URL `http://example.com`, you would run the following command:

```
python CVE-2024-23897.py -u http://example.com
```

To exploit multiple targets from a file called `targets.txt`, you would run the following command:

```
python CVE-2024-23897.py -f targets.txt
```
![Screenshot_2](https://github.com/ThatNotEasy/CVE-2024-23897/assets/25004320/a7029f11-3c87-4689-ab73-5c4d72dd6666)

You can also specify the number of threads to use for concurrent execution using the `-t` option. For example, to use 10 threads, you would run the following command:

```
python CVE-2024-23897.py -t 10
```

If you want to save the successful responses to a file, you can specify the output file using the `-o` option.

References: @h4x0r-dz
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →