module

NetBSD mail.local Privilege Escalation

Disclosed
2016-07-07
Created
2018-05-30

Description

This module attempts to exploit a race condition in mail.local with SUID bit set on:
NetBSD 7.0 - 7.0.1 (verified on 7.0.1)
NetBSD 6.1 - 6.1.5
NetBSD 6.0 - 6.0.6
Successful exploitation relies on a crontab job with root privilege, which may take up to 10min to execute.

Authors

h00die mike@shorebreaksecurity.com
akat1

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

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.