module

OpenSMTPD OOB Read Local Privilege Escalation

Disclosed
Feb 24, 2020
Created
Mar 5, 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.

Authors

Platform

Unix

Architectures

cmd

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.