Description
Dromara free-fs 2.0.1 through 2.3.1 contains a missing authentication vulnerability in FileStreamController.preview that allows unauthenticated attackers to download stored files. Attackers who obtain a file ID from share listings or preview links can request /api/file/stream/preview/{fileId} to download any user's or workspace's files.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| dromara | free-fs | 2.0.1 ≤2.3.1 | — |
References
- https://vul.yulun.ac.cn/20261024/free-fs/
- https://github.com/dromara/free-fs/issues/28
- https://github.com/dromara/free-fs/blob/f8f4ff2a0b0af8fcd5cbecbf99a4afb7d0b7c020/fs-modules/fs-file/src/main/java/com/xddcodec/fs/file/controller/FileStreamController.java#L52-L77
- https://github.com/dromara/free-fs/blob/f8f4ff2a0b0af8fcd5cbecbf99a4afb7d0b7c020/fs-admin/src/main/java/com/xddcodec/fs/web/WebMvcConfig.java#L50-L84
- https://www.vulncheck.com/advisories/dromara-free-fs-2.0.1-through-2.3.1-missing-authentication-via-file-stream-preview