| 标题 | 648540858 wvp-GB28181-pro v2.7.4-20260107 Path Traversal |
|---|
| 描述 | The log-file download endpoint GET /api/log/file/{fileName} reads and streams an arbitrary file from the host filesystem. The path-variable value is passed directly into new File(logDir, fileName) with no path canonicalization or traversal filtering; the only guard checks exists() and isFile(), neither of which blocks ../ sequences. An authenticated user (the endpoint requires a JWT) can therefore download any file readable by the application process, including configuration files and stored secrets. |
|---|
| 来源 | ⚠️ https://github.com/648540858/wvp-GB28181-pro/issues/2176 |
|---|
| 用户 | fakebug (UID 94486) |
|---|
| 提交 | 2026-06-26 04時23分 (2 月前) |
|---|
| 管理 | 2026-08-14 08時00分 (2 months later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 389965 [648540858 wvp-GB28181-pro 2.7.4-20260107 Log File Download Endpoint LogController.java fileName 目录遍历] |
|---|
| 积分 | 20 |
|---|