Description
Seahub through 14.0.10 contains a weak randomness vulnerability in MultiShareLinksBatch.post() that generates batch share link passwords using Python's non-cryptographic random.choices(). Authenticated users permitted to create share links can request many generated passwords via the multi-share-links batch endpoint, recover the Mersenne Twister state, and predict other users' share link passwords.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| haiwen | seahub | ≤ 14.0.10 | — |
References
- GitHub Issue #9687 issue-tracking
- https://github.com/haiwen/seahub product
- https://github.com/haiwen/seahub/blob/v14.0.10-pro/seahub/api2/endpoints/multi_share_links.py#L502-L512 technical-description
- https://github.com/haiwen/seahub/commit/dd3ba0341031fd29cabe4855b548badde861df52 patch
- VulnCheck Advisory: Seahub through 14.0.10 Predictable Share Link Passwords via Batch Endpoint third-party-advisory