Description
thClaws through 0.141.0 contains a link-following vulnerability in the post_inputs handler of the v1 API POST /v1/inputs endpoint that allows writes outside the workspace by following symlinks. Attackers who plant a symlink under the allowed inputs/ prefix can cause later authenticated uploads to write or truncate files outside the workspace with daemon privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| thClaws | thClaws | ≤ 0.141.0 | — |
References
- https://hackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/thclaws-api-inputs-symlink-escape third-party-advisory
- https://github.com/thClaws/thClaws/blob/v0.141.0/crates/core/src/api_v1/artifacts.rs#L335-L420 technical-description
- https://github.com/thClaws/thClaws product
- VulnCheck Advisory: thClaws through 0.141.0 Symlink Following File Write via POST /v1/inputs third-party-advisory