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

目标: 1000 元 · 已筹: 1336

100%

CVE-2025-46822 PoC — Java-springboot-codebase 安全漏洞

来源
关联漏洞
标题: Java-springboot-codebase 安全漏洞 (CVE-2025-46822)
Description:Java-springboot-codebase是osama个人开发者的一个 Java 和 Spring Boot 代码片段、应用程序和项目的集合。 Java-springboot-codebase c835c6f之前版本存在安全漏洞,该漏洞源于路径遍历机制不足,可能导致未授权访问敏感文件。
Description
 Unauthenticated Arbitrary File Read via Absolute Path 
介绍
# CVE-2025-46822
 Unauthenticated Arbitrary File Read via Absolute Path 

 ## Description:
While Path.resolve() method is being used to protect against path traversal I have found that the usage of absolute path successfully read internal files , the endpoint is also not authenticated this means anyone can read the entire organization's files, file system from wherever the store root in: files.store.root = /file-store/ as configured in application-dev.properties, this allows unauthorized access to sensitive internal files.

## Details:
the storageService.loadAsResource() method uses Path.resolve() without first ensuring that the input name is a relative path and that the resolved path stays within the intended file storage root, then providing an absolute path as the fileName will directly lead to accessing that arbitrary file.

also, the /api/v1/files/{fileName} endpoint is exposed without any authentication or authorization checks, allowing any unauthenticated user to access files.

usage:

```
python3 CVE-2025-46822.py http://victim.com /etc/passwd
```

Links:
- https://nvd.nist.gov/vuln/detail/CVE-2025-46822
- https://d3sca.medium.com/cve-2025-46822-the-story-of-an-unauthenticated-arbitrary-file-read-via-absolute-path-1745ba39460e
- https://github.com/OsamaTaher/Java-springboot-codebase/security/advisories/GHSA-q6mm-cm37-w637
文件快照

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

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