A Deep Dive into the CoSoSys EndPoint Protector Exploit: Remote Code Execution
Four remote code execution vulnerabilities were found in CoSoSys Endpoint Protector, allowing an unauthenticated attacker to gain root on the server and an authenticated administrator to execute commands on client devices. The flaws included path traversal in file upload, command injection in a macOS client feature, and a Zip Slip in a Windows client update process.
blog.theori.io
Published on blog.theori.io
Four critical RCE vulnerabilities (CVE-2024-36072 to CVE-2024-36075) in CoSoSys Endpoint Protector were identified, allowing full server and client compromise. Read the full analysis.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely insufficient input validation in multiple components: file upload paths, shell command construction, and archive extraction.
Impact
An unauthenticated attacker could gain root on the EPP server, and an attacker with administrative access could execute commands on all managed macOS and Windows clients, potentially leading to theft of sensitive information.
What the attacker needed
Network access to the EPP server; for client attacks: admin access to the server
The fix
The vulnerabilities were fixed by the vendor after being reported.
How it was found
- Register a client via the SOAP Register handler to obtain a certificate.
- Use the certificate to authenticate to the SOAP API.
- Upload a file with a path traversal in the uploadId parameter to write a web shell.
- Access the web shell to execute commands as www-data.
- Create a file with shell metacharacters in its name in the log directory.
- Wait for the root worker process to move the file, triggering command injection.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes several security holes in a corporate data-protection product. One hole lets anyone upload files to any location on the server, which can lead to running commands as the administrator. Other holes let someone who already controls the server run commands on employees' computers.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.