Description
Dromara free-fs 2.0.1 through 2.3.1 contains an authorization bypass vulnerability that allows attackers to access code-protected shares because share codes are enforced only client-side. Attackers knowing a share ID can call the share items and download endpoints to list and download files without the code, even on preview-only shares.
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/service/impl/FileShareServiceImpl.java#L330-L333
- https://github.com/dromara/free-fs/blob/f8f4ff2a0b0af8fcd5cbecbf99a4afb7d0b7c020/fs-modules/fs-file/src/main/java/com/xddcodec/fs/file/service/impl/FileShareServiceImpl.java#L390-L397
- https://github.com/dromara/free-fs/blob/f8f4ff2a0b0af8fcd5cbecbf99a4afb7d0b7c020/fs-modules/fs-file/src/main/java/com/xddcodec/fs/file/service/impl/FileShareServiceImpl.java#L252-L268
- https://www.vulncheck.com/advisories/dromara-free-fs-2.0.1-through-2.3.1-share-code-and-permission-scope-bypass