| 제목 | https://gitee.com/chunyu-cms/chunyu-cms/ chunyu-cms 1.0 Path Traversal |
|---|
| 설명 | The video stream endpoint `GET /common/stream/:fileName` in chunyu-cms is annotated with `@Public()`, making it accessible without authentication. The endpoint applies no normalization, filtering, or directory confinement to the path parameter `fileName`; it simply concatenates the value onto the video directory path and passes the result to `fs.createReadStream` to read and stream the file back.
The only access gate is a check for the presence of the `referer` request header, a value a client can forge at will. A `fileName` containing `../` sequences escapes the video directory and reads any readable file on the server.
## Reproduction |
|---|
| 원천 | ⚠️ https://github.com/bkglfpp/CVE-md/blob/main/chunyu-cms-main/public-video-stream-path-traversal.md |
|---|
| 사용자 | youran (UID 89737) |
|---|
| 제출 | 2026. 11. 02. PM 09:50 (1 월 ago) |
|---|
| 모더레이션 | 2026. 12. 04. AM 07:45 (1 month later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 449609 [yinMrsir chunyu-cms 까지 1.1.0 Video Stream Endpoint upload.controller.ts streamFile fileName 디렉토리 순회] |
|---|
| 포인트들 | 20 |
|---|