Horizon Alert
Summary of the vulnerability and why it matters
This advisory concerns a vulnerability in Seafile's SeaDoc converter that could allow unauthenticated attackers to execute code. The issue arises from how the system handles specific file conversions using a public share token. While the direct business impact is not detailed, it highlights a potential for unauthorized code execution within systems that utilize this conversion functionality.
- Allows code execution via file conversion.
- Critical vulnerability in document conversion tool.
- Confirm relevance and assess exposure.
Attack Path
How an attacker could exploit the issue
An unauthenticated attacker with a public share token can exploit this vulnerability by providing a crafted absolute filename to the `/api/v1/confluence-to-wiki/` endpoint. This allows them to extract a ZIP file into a sensitive Python library path. Subsequently, they can trigger code execution by initiating a file-conversion request that imports the compromised module.
- Unauthenticated access to a public share.
- Supplying an absolute filename to an API.
- Potential for unauthenticated code execution.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow unauthenticated attackers to execute code by supplying a specific filename to an API endpoint. This process involves extracting a ZIP archive from a provided download URL into a Python library path and then triggering its import, potentially leading to code execution under certain supported conditions.
- System files and libraries at risk.
- Path traversal to influence import paths.
- Arbitrary code execution could occur.
Operational Fix
Recommended remediation, mitigation, and detection steps
The SeaDoc converter's absolute path traversal vulnerability, exploitable with a public share token, likely falls under the purview of application owners or platform teams responsible for the Seafile deployment. The first practical step is to locate all instances of the affected SeaDoc converter, determine their network exposure and business criticality, and identify the accountable owner for each instance to initiate a prioritized remediation plan.
- Application or platform teams should own remediation.
- Verify exposed SeaDoc converter instances.
- Plan updates during maintenance windows.