| 标题 | GitHub warehouse V1.0 Absolute Path Traversal |
|---|
| 描述 | A path traversal vulnerability exists in the warehouse application. The /file/showImageByPath endpoint accepts a user-supplied path parameter. This parameter is passed directly to AppFileUtils.createResponseEntity(path). Inside this method, the application concatenates the base directory path with the user input using getChars without proper validation or sanitization.
Due to the lack of boundary checks, an attacker can inject directory traversal sequences (e.g., ../) into the path parameter to traverse outside the restricted directory. This allows an authenticated attacker to read or download arbitrary files from the server’s filesystem. |
|---|
| 来源 | ⚠️ https://fanatical-brain-9ba.notion.site/warehouse-381f1a573df48073ae69fd68e2c27b69 |
|---|
| 用户 | paramecium (UID 99013) |
|---|
| 提交 | 2026-06-16 05時33分 (2 月前) |
|---|
| 管理 | 2026-08-04 22時11分 (2 months later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 385940 [yeqifu warehouse 直到 aaf29962ba407d22d991781de28796ee7b4670e4 FileController.java path 目录遍历] |
|---|
| 积分 | 17 |
|---|