POC详情: 1929ee7c193814a06b80b4a17fbd462011cb9bc2

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

> Because of a misconfiguration of a default option in the CLI command parser, a attacker can read arbitrary files

## Summary of the CVE

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.

## Affected Versions

- Jenkins < 2.442
- Jenkins LTS Edition < 2.426.3

## Anomalies

The Security Advisory states the following:

- Attackers with Overall/Read permission can read the entire file
- Attackers without Overall/Read permission can read the first few lines of a file, depending on available CLI commands

I have not been able to reproduce either of this, so the parsing of the output may be wrong in some cases. Use `--raw` if you feel like this is the case.

## References

- [Jenkins Security Advisory](https://www.jenkins.io/security/advisory/2024-01-24/)
- [Github POC - h4x0r-dz, Jan 26 2024](https://github.com/h4x0r-dz/CVE-2024-23897)
- [CVE-details - CVSS Score 9.8](https://www.cvedetails.com/cve/CVE-2024-23897)
文件快照

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