目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

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

来源
关联漏洞
标题: Jenkins 安全漏洞 (CVE-2024-23897)
Description:Jenkins是Jenkins开源的一个应用软件。一个开源自动化服务器Jenkins提供了数百个插件来支持构建,部署和自动化任何项目。 Jenkins 2.441及之前版本、LTS 2.426.2及之前版本存在安全漏洞,该漏洞源于允许未经身份验证的攻击者读取Jenkins控制器文件系统。
Description
CVE-2024-23897 jenkins arbitrary file read which leads to unauthenticated RCE
介绍
# 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)
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →