| タイトル | 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日 21:50 (1 月 ago) |
|---|
| モデレーション | 2026年12月04日 07:45 (1 month later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 449609 [yinMrsir chunyu-cms 迄 1.1.0 Video Stream Endpoint upload.controller.ts streamFile fileName ディレクトリトラバーサル] |
|---|
| ポイント | 20 |
|---|