POC详情: eb512b8ca2dca7922236fe8378d01d58d5543245

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

[4.0K] /data/pocs/eb512b8ca2dca7922236fe8378d01d58d5543245 └── [1.8K] README.md 0 directories, 1 file
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。