Protect yourself against future threats.
-----BEGIN PGP SIGNED MESSAGE----- =========================================================================== AUSCERT External Security Bulletin Redistribution ESB-2001.360 -- NetBSD Security Advisory 2001-014 dump(8) exposes 'tty' group 24 August 2001 =========================================================================== AusCERT Security Bulletin Summary --------------------------------- Product: dump(8) dump_lfs(8) Vendor: NetBSD Operating System: NetBSD-current NetBSD 1.5.1 NetBSD 1.5 NetBSD 1.4.x Impact: Increased Privileges Access Required: Existing Account - --------------------------BEGIN INCLUDED TEXT-------------------- - -----BEGIN PGP SIGNED MESSAGE----- NetBSD Security Advisory 2001-014 ================================= Topic: dump(8) exposes 'tty' group Version: NetBSD-current: source prior to August 8, 2001 NetBSD 1.5.1: affected NetBSD 1.5: affected NetBSD 1.4.x: all affected Severity: local users can gain tty group Fixed: NetBSD-current: August 8, 2001 NetBSD-1.5 branch: August 8, 2001 (1.5.2 includes the fix) NetBSD-1.4 branch: Pullups pending - apply the patch as explained below. Abstract ======== The dump(8) command (installed as /sbin/dump) and the dump_lfs(8) command (installed as /sbin/dump_lfs) are setgid tty. dump(8) and dump_lfs(8) did not drop those setgid tty rights while performing functions other than those the rights were provided for, including execution of a user supplied RCMD_CMD environment variable. Technical Details ================= dump(8) and dump_lfs(8) require tty rights in order to notify members of the operator group to change backup media. Since a user can supply an executable as a method to access a remote dump device by setting the RCMD_CMD environment variable, a local user can gain tty privilieges for themselves. With the supplied patch, dump(8) and dump_lfs(8) properly reserve tty rights and activate them only for the intended use. Solutions and Workarounds ========================= The following instructions describe how to upgrade your dump(8) and dump_lfs(8) binaries by updating your source tree and rebuilding and installing a new version of dump(8) and dump_lfs(8). * NetBSD-current: Systems running NetBSD-current dated from before 2001-08-08 should be upgraded to NetBSD-current dated 2001-08-09 or later. The following directories need to be updated from the netbsd-current CVS branch (aka HEAD): basesrc/sbin/dump To update from CVS, re-build, and re-install dump and dump_lfs: # cd src # cvs update -d -P sbin/dump # cd sbin/dump # make cleandir dependall # make install # cd ../dump_lfs # make cleandir dependall # make install * NetBSD 1.5, 1.5.1: Systems running NetBSD 1.5 or 1.5.1 sources dated from before 2001-08-08 should be upgraded from NetBSD 1.5.x sources dated 2001-08-09 or later. NetBSD 1.5.2 is not vulnerable. The following directories need to be updated from the netbsd-1-5 CVS branch: src/sbin/dump To update from CVS, re-build, and re-install dump and dump_lfs: # cd src # cvs update -d -P sbin/dump # cd sbin/dump # make cleandir dependall # make install # cd ../dump_lfs # make cleandir dependall # make install Alternatively, apply the following patch (with potential offset differences): ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2001-014-dump-1.5.patch To patch, re-build and re-install dump and dump_lfs: # cd src/sbin/dump # patch < /path/to/SA2001-014-dump-1.5.patch # make cleandir dependall # make install # cd ../dump_lfs # make cleandir dependall # make install * NetBSD 1.4, 1.4.1, 1.4.2, 1.4.3: The patch supplied for the 1.5 releases, also applies to 1.4, 1.4.1, 1.4.2, and 1.4.3. Follow the instructions for using the patch as detailed in the NetBSD 1.5 section above. Thanks To ========= canis for raising the issue. Matthew Green for a patch, and David Maxwell for revisions to the patch. John Hawkinson for the patches for the NetBSD 1.5 branch. Revision History ================ 2001-08-23 Initial release More Information ================ An up-to-date PGP signed copy of this release will be maintained at ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2001-014.txt.asc Information about NetBSD and NetBSD security can be found at http://www.NetBSD.ORG/ and http://www.NetBSD.ORG/Security/. Copyright 2001, The NetBSD Foundation, Inc. All Rights Reserved. $NetBSD: NetBSD-SA2001-014.txt,v 1.8 2001/08/23 05:59:07 lukem Exp $ - -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (NetBSD) Comment: For info see http://www.gnupg.org iQCVAwUBO4ScEj5Ru2/4N2IFAQFVBQP9EvzvQ5P+yryu0kY/5+FiedgN+u+PZpzG MY6HXbVXkkkklnl2a8dS2t+Xzi1S5qF1C3g0c9yNDJ8x7Sy6TzuW8fxIBLg0PhIa MTWAKwQ+DvwwnBmdJ2nI1L96RS9XWfmsYf8xM1HtxpmQk7TBzH6Vzw32oRXZ9cC/ lsptsklUZrI= =1A2M - -----END PGP SIGNATURE----- - --------------------------END INCLUDED TEXT-------------------- You have received this e-mail bulletin as a result of your organisation's registration with AusCERT. The mailing list you are subscribed to is maintained within your organisation, so if you do not wish to continue receiving these bulletins you should contact your local IT manager. If you do not know who that is, please send an email to auscert@auscert.org.au and we will forward your request to the appropriate person. This security bulletin is provided as a service to AusCERT's members. As AusCERT did not write the document quoted above, AusCERT has had no control over its content. The decision to use any or all of this information is the responsibility of each user or organisation, and should be done so in accordance with site policies and procedures. NOTE: This is only the original release of the security bulletin. It may not be updated when updates to the original are made. If downloading at a later date, it is recommended that the bulletin is retrieved directly from the original authors to ensure that the information is still current. Contact information for the authors of the original document is included in the Security Bulletin above. If you have any questions or need further information, please contact them directly. Previous advisories and external security bulletins can be retrieved from: http://www.auscert.org.au/Information/advisories.html If you believe that your system has been compromised, contact AusCERT or your representative in FIRST (Forum of Incident Response and Security Teams). Internet Email: auscert@auscert.org.au Facsimile: (07) 3365 7031 Telephone: (07) 3365 4417 (International: +61 7 3365 4417) AusCERT personnel answer during Queensland business hours which are GMT+10:00 (AEST). On call after hours for emergencies. -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv Comment: ftp://ftp.auscert.org.au/pub/auscert/AUSCERT_PGP.key iQCVAwUBO4YLtSh9+71yA2DNAQEaOgP+PdH9WCPaDZYBlZAYaklGY/lvSlFqktlH jWA+XHOrFAIswfzQV6kx5c4uB5jjf96JF5b8H/4AS7cnBTEAZhktv13aXxRyL/ro amj+Iw/Jqrb1jQcgmnxSd/Z0wRzpHvvCcJVzysURed34E1ZpVAK7LRWd4yfq++F1 qUa9UlFaC30= =t8TX -----END PGP SIGNATURE-----