Description
Seafile Seahub before 13.0.31 and 14.0.0 through 14.0.11 contains a server-side request forgery vulnerability that allows unauthenticated attackers to plant OCM shares with an unvalidated seafileServiceURL via POST /api/v2.1/ocm/shares/. A low-privileged user addressing the share to their own account can browse it to make the server request loopback, private network, or cloud metadata addresses and read JSON responses.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| haiwen | seahub | 0 <13.0.31 | — |
| haiwen | seahub | 14.0.0 ≤14.0.11 | — |
References
- https://github.com/haiwen/seahub/blob/v14.0.11-server/seahub/api2/endpoints/ocm.py#L100-L216
- https://github.com/haiwen/seahub/blob/v14.0.11-server/seahub/api2/endpoints/ocm_repos.py#L27-L65
- https://github.com/haiwen/seahub/commit/01b79c77a645d59112a557dedb2310eb5723ba35
- https://github.com/haiwen/seahub/pull/9776
- https://www.vulncheck.com/advisories/seafile-seahub-before-13.0.31-and-14.0.0-through-14.0.11-ssrf-via-ocm-share-seafileserviceurl