Description
FreeBSD 4.5 and earlier, and possibly other BSD-based operating systems, allows local users to write to or read from restricted files by closing the file descriptors 0 (standard input), 1 (standard output), or 2 (standard error), which may then be reused by a called setuid process that intended to perform I/O on normal files.
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.
Exploit-DB 1
- Apple Mac OSX 10.x / FreeBSD 4.x / OpenBSD 2.x / Solaris 2.5/2.6/7.0/8 - 'exec C Library' Standard I/O File Descriptor Closure EDB-21407 · local · Apr 23, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- bsd-suid-apps-gain-privileges(8920) vdb-entry
- 4568 vdb-entry
- VU#809347 third-party-advisory
- 6095 vdb-entry
- 20020422 Pine Internet Advisory: Setuid application execution may give local root in FreeBSD mailing-list
- M-072 third-party-advisory government-resource
- 20020422 Pine Internet Advisory: Setuid application execution may give local root in FreeBSD mailing-list
- 20020423 cheers mailing-list