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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2025-59342 PoC — esm.sh 安全漏洞

来源
关联漏洞
标题: esm.sh 安全漏洞 (CVE-2025-59342)
Description:esm.sh是esm.sh开源的一个内容分发网络。 esm.sh 136及之前版本存在安全漏洞,该漏洞源于X-Zone-Id HTTP标头处理不当,可能导致路径遍历攻击。
Description
Exploit Path Traversal in esm-dev 
介绍
# CVE-2025-59342 - Path Traversal (esm-dev)
**Author: Byte Reaper**

## Description
CVE-2025-59342 is a path traversal vulnerability in esm.sh, a nobuild content delivery network (CDN) for modern web development, in version 136 and earlier.  
The issue exists in the handling of the `X-Zone-Id` HTTP header, which is used to construct a filesystem path. The header value is not properly canonicalized or restricted to the application’s storage base directory.  
As a result, supplying `../` sequences in `X-Zone-Id` can cause files to be written outside the intended storage location.

## Requirements :
```
Linux x86_64
GCC 
```

## Build :
```
	gcc exploit.c argparse.c -o CVE-2025-59342 -lcurl
```
## Run :
```
	./CVE-2025-59342 -u http://target (auto port = 80)
	- Verbose Mode : 
	./CVE-2025-59342 -u http://target -v
	- Bypass WAF :
	./CVE-2025-59342 -u http://target  -v -b
	- Cookies FILE :
	./CVE-2025-59342 -u http://target -c [FILE] -v 
	- Target Port server :
	./CVE-2025-59342 -u http://target -p [PORT]
	- Payload :
	./CVE-2025-59342 -u http://target -p [Payload injection]
```
## References : 
- NVD : https://nvd.nist.gov/vuln/detail/CVE-2025-59342


## License : 

MIT
文件快照

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

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