Rapid7 Vulnerability & Exploit Database

OpenSMTPD OOB Read Local Privilege Escalation

Back to Search

OpenSMTPD OOB Read Local Privilege Escalation

Disclosed
02/24/2020
Created
03/05/2020

Description

This module exploits an out-of-bounds read of an attacker-controlled string in OpenSMTPD's MTA implementation to execute a command as the root or nobody user, depending on the kind of grammar OpenSMTPD uses.

Author(s)

  • Qualys
  • wvu <wvu@metasploit.com>

Platform

Unix

Architectures

cmd

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/unix/local/opensmtpd_oob_read_lpe
msf exploit(opensmtpd_oob_read_lpe) > show targets
    ...targets...
msf exploit(opensmtpd_oob_read_lpe) > set TARGET < target-id >
msf exploit(opensmtpd_oob_read_lpe) > show options
    ...show and set options...
msf exploit(opensmtpd_oob_read_lpe) > 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

;