Rapid7 Vulnerability & Exploit Database

Zimbra zmslapd arbitrary module load

Back to Search

Zimbra zmslapd arbitrary module load

Disclosed
10/27/2021
Created
08/29/2022

Description

This module exploits CVE-2022-37393, which is a vulnerability in Zimbra's sudo configuration that permits the zimbra user to execute the zmslapd binary as root with arbitrary parameters. As part of its intended functionality, zmslapd can load a user-defined configuration file, which includes plugins in the form of .so files, which also execute as root.

Author(s)

  • Darren Martyn
  • Ron Bowes

Platform

Linux

Architectures

x86, x64

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/local/zimbra_slapper_priv_esc
msf exploit(zimbra_slapper_priv_esc) > show targets
    ...targets...
msf exploit(zimbra_slapper_priv_esc) > set TARGET < target-id >
msf exploit(zimbra_slapper_priv_esc) > show options
    ...show and set options...
msf exploit(zimbra_slapper_priv_esc) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;