Rapid7 Vulnerability & Exploit Database

Zimbra sudo + postfix privilege escalation

Back to Search

Zimbra sudo + postfix privilege escalation

Disclosed
10/13/2022
Created
10/19/2022

Description

This module exploits a vulnerable sudo configuration that permits the zimbra user to execute postfix as root. In turn, postfix can execute arbitrary shellscripts, which means it can execute a root shell.

Author(s)

  • EvergreenCartoons
  • 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_postfix_priv_esc
msf exploit(zimbra_postfix_priv_esc) > show targets
    ...targets...
msf exploit(zimbra_postfix_priv_esc) > set TARGET < target-id >
msf exploit(zimbra_postfix_priv_esc) > show options
    ...show and set options...
msf exploit(zimbra_postfix_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

;