This module exploits a flaw in Exim versions 4.87 to 4.91 (inclusive). Improper validation of recipient address in deliver_message() function in /src/deliver.c may lead to command execution with root privileges (CVE-2019-10149).
Linux
x86, x64
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/exim4_deliver_message_priv_esc
msf exploit(exim4_deliver_message_priv_esc) > show targets
...targets...
msf exploit(exim4_deliver_message_priv_esc) > set TARGET < target-id >
msf exploit(exim4_deliver_message_priv_esc) > show options
...show and set options...
msf exploit(exim4_deliver_message_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