Breaking Zimbra part 1
Zimbra Collaboration Suite contained multiple vulnerabilities, including XXE, SSRF, and insecure deserialization, that could be chained to achieve pre-authentication remote code execution. An attacker could read sensitive files, bypass admin restrictions, and execute arbitrary code on the server.
blog.tint0.com
Published on blog.tint0.com
Zimbra is well known for its signature email product, Zimbra Collaboration Suite. Putting client-side vulnerabilities aside, Zimbra seems to have very little security history in the past.
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 the root cause is a combination of XML external entity injection, flawed admin checks in a proxy servlet, and unsafe deserialization of data from Memcached.
What the attacker needed
Zimbra version <8.5 or 8.5-8.7.11; For Memcached exploit: Zimbra uses Memcached; Network access to Zimbra services
The fix
Zimbra issued patches for XXE and arbitrary deserialization, but they are only available for 8.7.11 and 8.8.x; as a workaround, block public requests to '/service/proxy*'.
How it was found
- Read the config file via XXE to obtain admin credentials.
- Generate a low-privilege token through a normal AuthRequest.
- Proxy an admin AuthRequest to the local admin port via ProxyServlet.
- Use the global admin token to upload a webshell via the ClientUploader extension.
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 flaws in Zimbra, an email server. By combining these flaws, an attacker could take full control of the server without needing a password. The flaws include ways to read files, trick the server into making requests, and run malicious code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.