Protect yourself against future threats.
-----BEGIN PGP SIGNED MESSAGE----- =========================================================================== AUSCERT External Security Bulletin Redistribution ESB-2002.648 -- NetBSD Security Advisory 2002-027 ftpd STAT output non-conformance can deceive firewall devices 20 November 2002 =========================================================================== AusCERT Security Bulletin Summary --------------------------------- Product: ftpd Vendor: NetBSD Operating System: NetBSD-current prior to 26/10/2002 NetBSD 1.6 NetBSD-1.5.3 NetBSD-1.5.2 NetBSD-1.5.1 NetBSD-1.5 Impact: Reduced Security Access Required: Remote - --------------------------BEGIN INCLUDED TEXT-------------------- - -----BEGIN PGP SIGNED MESSAGE----- NetBSD Security Advisory 2002-027 ================================= Topic: ftpd STAT output non-conformance can deceive firewall devices Version: NetBSD-current: source prior to Oct 26, 2002 NetBSD 1.6: affected NetBSD-1.5.3: affected NetBSD-1.5.2: affected NetBSD-1.5.1: affected NetBSD-1.5: affected Severity: Malicious parties can corrupt state tables in intermediate firewall devices and trick them into making unexpected TCP connections. Fixed: NetBSD-current: Oct 26, 2002 NetBSD-1.6 branch: Nov 2, 2002 NetBSD-1.5 branch: Oct 26, 2002 Abstract ======== NetBSD's ftpd responds to the STAT command in a way that is not standards conformant, when a filename that contains "\n[0-9]" is specified. This could be used by a malicious party to corrupt state tables in firewall devices between an FTP client and a NetBSD FTP server. Technical Details ================= According to RFC959 (page 36), if a non-response digit appears in an FTP control stream, it must be escaped by inserting a space before it. NetBSD's ftpd did not obey this requirement. See also: http://www.kb.cert.org/vuls/id/328867 Solutions and Workarounds ========================= Upgrading libexec/ftpd is required to eliminate this problem. The following instructions describe how to upgrade your ftpd binaries by updating your source tree and rebuilding and installing a new version of ftpd. * NetBSD-current: Systems running NetBSD-current dated from before 2002-10-26 should be upgraded to NetBSD-current dated 2002-10-26 or later. The following directories need to be updated from the netbsd-current CVS branch (aka HEAD): libexec/ftpd To update from CVS, re-build, and re-install ftpd: # cd src # cvs update -d -P libexec/ftpd # cd libexec/ftpd # make cleandir dependall # make install * NetBSD 1.6: Systems running NetBSD 1.6 sources dated from before 2002-11-02 should be upgraded from NetBSD 1.6.* sources dated 2002-11-02 or later. The following directories need to be updated from the netbsd-1-6 CVS branch: libexec/ftpd To update from CVS, re-build, and re-install ftpd: # cd src # cvs update -d -P -r netbsd-1-6 libexec/ftpd # cd libexec/ftpd # make cleandir dependall # make install * NetBSD 1.5, 1.5.1, 1.5.2, 1.5.3: Systems running NetBSD 1.5, 1.5.1, 1.5.2, or 1.5.3 sources dated from before 2002-10-26 should be upgraded from NetBSD 1.5.* sources dated 2002-10-26 or later. The following directories need to be updated from the netbsd-1-5 CVS branch: libexec/ftpd To update from CVS, re-build, and re-install ftpd: # cd src # cvs update -d -P -r netbsd-1-5 libexec/ftpd # cd libexec/ftpd # make cleandir dependall # make install Thanks To ========= Internet Initiative Japan Inc. Revision History ============== 2002-11-20 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-SA2002-027.txt.asc Information about NetBSD and NetBSD security can be found at http://www.NetBSD.ORG/ and http://www.NetBSD.ORG/Security/. Copyright 2002, The NetBSD Foundation, Inc. All Rights Reserved. $NetBSD: NetBSD-SA2002-027.txt,v 1.6 2002/11/19 16:43:05 david Exp $ - -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBPdpxej5Ru2/4N2IFAQF2nQP9FueZtoqqmDq4BGBVXrkB22cPMYCYQnbd NlOe0jQnos8rTv+UqW4PDix7AX5qrbPQCXonNqbbKe2ZRzMZx69zHm/yfImMF72D QPrlq3rlN7bQSyrlrt9e3D4IHPY9NqU1HFxnqYKE64JO+vM88YfNAqCivqP3Gokb c7xwGPxmBo4= =OlD7 - -----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 member emergencies only. -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv Comment: http://www.auscert.org.au/render.html?it=1967 iQCVAwUBPdtrlSh9+71yA2DNAQGiywP+Lj7tflPfZ7MgDU2x3ujbIrCByUx4YDJn 7jJmccNiOQISEII5x0lKVQ/NXN1Zo1/SUx2sta9eSolQO4izSQQMmxdNE+e1v3tC T7vcNnaUZgfvvOKVxIp9O5J/fBq0/sQ/nws5jJFr7Q3AU+xh94AM0zz2BNkeAHpx FrLtonPjewA= =SOQb -----END PGP SIGNATURE-----