Protect yourself against future threats.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 =========================================================================== AUSCERT External Security Bulletin Redistribution ESB-2005.0889 -- NetBSD Security Advisory 2005-009 Insecure /tmp file usage when building using imake 8 November 2005 =========================================================================== AusCERT Security Bulletin Summary --------------------------------- Product: packages built with imake Publisher: NetBSD Operating System: NetBSD-current (source prior to September 13, 2005) NetBSD 2.0.2 and prior Impact: Overwrite Arbitrary Files Access: Existing Account Original Bulletin: ftp://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2005-009.txt.asc - --------------------------BEGIN INCLUDED TEXT-------------------- - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NetBSD Security Advisory 2005-009 ================================= Topic: Insecure /tmp file usage when building using imake Version: NetBSD-current: source prior to September 13, 2005 NetBSD 2.1: not affected NetBSD 2.0.3: not affected NetBSD 2.0.2: affected NetBSD 2.0: affected NetBSD 1.6.2: affected NetBSD 1.6.1: affected NetBSD 1.6: affected pkgsrc: imake package prior to 4.4.0nb2 and xorg-imake prior to 6.8.2nb2 Severity: overwrite arbitrary files on the system Fixed: NetBSD-current: September 12, 2005 NetBSD-3 branch: September 12, 2005 (3.0 will include the fix) NetBSD-2.0 branch: September 13, 2005 (2.0.3 includes the fix) NetBSD-2 branch: September 13, 2005 (2.1 includes the fix) NetBSD-1.6 branch: September 14, 2005 (1.6.3 will include the fix) pkgsrc: imake-4.4.0nb2 and xorg-imake-6.8.2nb2 or higher correct the issue Abstract ======== Makefiles generated with imake use an insecure temporary file in /tmp Technical Details ================= The issue is in the make target for generating the pre-formatted manual page. This is for software using imake using NetBSD.cf for builds. Malicious users can pre-generate symlinks to point to important files (so they will be overwritten) and possibly cause a local denial of service if the make process is run with elevated privileges. On NetBSD, many pkgsrc packages built using imake are affected. For example, building xvier, xmeter, transfig, tightvncviewer, xcolorsel, magicpoint, fvwm1, xearth, xalarm, xmmix, and many others, use this make target. This issue has been reported to and corrected by X.org and XFree86. Solutions and Workarounds ========================= This issue affects only machines which build software using imake and which also use the target to generate pre-formatted manual pages. However, since no binary rebuilding is required in order to fix this issue, it is recommended that all users upgrade their sources. The following instructions describe how to update your source tree. Source trees dated from before 2005-09-12 should be upgraded to sources dated 2005-09-13 or later. The following directories need to be updated from CVS: xsrc/xfree/xc/config/cf/NetBSD.cf To update from CVS: # cd xsrc # cvs update -d -P xfree/xc/config/cf/NetBSD.cf # cp xfree/xc/config/cf/NetBSD.cf /usr/X11R6/lib/X11/config/NetBSD.cf Thanks To ========= The issue was discovered and reported by Jeremy C. Reed. Revision History ================ 2005-10-31 Initial release More Information ================ Advisories may be updated as new information becomes available. The most recent version of this advisory (PGP signed) can be found at ftp://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2005-009.txt.asc Information about NetBSD and NetBSD security can be found at http://www.NetBSD.org/ and http://www.NetBSD.org/Security/. Copyright 2005, The NetBSD Foundation, Inc. All Rights Reserved. Redistribution permitted only in full, unmodified form. $NetBSD: NetBSD-SA2005-009.txt,v 1.15 2005/10/31 19:07:50 gendalia Exp $ - -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (NetBSD) iQCVAwUBQ2fKiD5Ru2/4N2IFAQIdSgP+MDXNbQlHPnCDcOrZufC9dVFj9E0x6/w/ bwxsLNuEx0+kWUgkX61KmrvEyuq/9AnHOCMBScMijY8L1WOWx4MXe2dQCho5LtLW EksP2mXDWC8y11b4OkVDp5SidroZDG/IgtC9o3M8qHZ6/KOsa2H8B7fXV86QmP8U QxUjjLhtRfs= =zj93 - -----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. NOTE: Third Party Rights 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 follow or act on information or advice contained in this security bulletin is the responsibility of each user or organisation, and should be considered in accordance with your organisation's site policies and procedures. AusCERT takes no responsibility for consequences which may arise from following or acting on information or advice contained in this security bulletin. 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 author's website 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/render.html?cid=1980 If you believe that your computer system has been compromised or attacked in any way, we encourage you to let us know by completing the secure National IT Incident Reporting Form at: http://www.auscert.org.au/render.html?it=3192 =========================================================================== Australian Computer Emergency Response Team The University of Queensland Brisbane Qld 4072 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 member emergencies only. =========================================================================== -----BEGIN PGP SIGNATURE----- Comment: http://www.auscert.org.au/render.html?it=1967 iQCVAwUBQ2/3Eyh9+71yA2DNAQJmjgP7BBZl9oESovhyO2bjOSBx89BLrw1z4q+3 fIcH1A+lIWmrIJw1bjqN89ssQv2ggKU26TTtW6tU6de+xFzuveRD3AiFbpiFvQtv PWV33L1txLBzo9IcGJx7o5ohXffmzrYUbnuJ2LcoEKvGOIDl6C0VYGdDo2O9Zx8e 7Xe2fHqYZaw= =toTG -----END PGP SIGNATURE-----