关联漏洞
标题:
Jenkins 安全漏洞
(CVE-2024-23897)
描述:Jenkins是Jenkins开源的一个应用软件。一个开源自动化服务器Jenkins提供了数百个插件来支持构建,部署和自动化任何项目。 Jenkins 2.441及之前版本、LTS 2.426.2及之前版本存在安全漏洞,该漏洞源于允许未经身份验证的攻击者读取Jenkins控制器文件系统。
描述
Jenkins CLI arbitrary file read (CVE-2024-23897)
介绍
# Day 3 — Jenkins CLI arbitrary file read (CVE-2024-23897)
**Idea:** Jenkins ≤ 2.441 (LTS ≤ 2.426.2) expands `@/path` inside CLI args.
Unauthenticated users can make Jenkins read local files and reflect their **first lines** via the CLI help output.
Fixed in 2.442 / 2.426.3.
## Build → Run
```bash
# 1) Build
docker build -t day3-jenkins-23897 .
# 2) Run
docker rm -f day3 2>/dev/null || true
docker run -d --name day3 -p 8080:8080 day3-jenkins-23897
# 3) Wait ~30–60s (first boot). Check:
curl -I http://127.0.0.1:8080/login | head -n 1
```
! If you stuck you can use ./exploit.sh (after the container is running)
文件快照
[4.0K] /data/pocs/4be94d0679081ff643626fb41798cef0624a3749
├── [ 255] DISCLAIMER.md
├── [ 353] Dockerfile
├── [ 626] exploit.sh
└── [ 633] README.md
0 directories, 4 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。