What is the role of ysoserial and the MozillaRhino2 gadget in this attack?
ysoserial is a tool used to generate Java deserialization payloads. In this exploit, the `MozillaRhino2` gadget is chosen because it can execute arbitrary Linux commands via the `exec()` method, without requiring special characters like `|` or `>`. The generated payload is stored in the memcached cache via the SSRF vulnerability, and when Zimbra later deserializes it, the command runs on the server. For example, the attacker can download a webshell or execute a script. This technique is similar to other deserialization exploits such as Exploitation Testing of Windows Lnk Remote Code Execution Vulnerability (CVE-2017-8464).
ysoserialMozillaRhino2deserialization payloadcommand executiongadget chainLinux commands