Description
mail.local in NetBSD versions 6.0 through 6.0.6, 6.1 through 6.1.5, and 7.0 allows local users to change ownership of or append data to arbitrary files on the target system via a symlink attack on the user mailbox.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Metasploit 1 module
-
NetBSD mail.local Privilege Escalation
exploit/unix/local/netbsd_mail_local
Exploit-DB 2
- NetBSD - 'mail.local(8)' Local Privilege Escalation (Metasploit) EDB-40385 · local · Sep 15, 2016 · verified
- NetBSD - 'mail.local(8)' Local Privilege Escalation EDB-40141 · local · Jul 21, 2016 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- NetBSD-SA2016-006 vendor-advisory
- http://packetstormsecurity.com/files/138021/NetBSD-mail.local-8-Local-Root.html
- 40141 exploit
- 40385 exploit
- 92101 vdb-entry
- http://akat1.pl/?id=2
- 1036429 vdb-entry
- http://www.rapid7.com/db/modules/exploit/unix/local/netbsd_mail_local