-----BEGIN PGP SIGNED MESSAGE----- =========================================================================== AA-2000.02 AUSCERT Advisory wu-ftpd "site exec" Vulnerability 26 June 2000 Last Revised: -- - --------------------------------------------------------------------------- AusCERT has received information that there is a vulnerability in some versions of wu-ftpd (up to and including 2.6.0) which run on various platforms. This vulnerability may allow local, remote and anonymous users to gain root privileges. Information about this vulnerability and an exploit has been made publicly available. AusCERT recommends that sites take the steps outlined in section 3 as soon as possible. This advisory will be updated as more information becomes available. - --------------------------------------------------------------------------- 1. Description The wu-ftpd program provides file transfer protocol (FTP) services. Due to insufficient checking in the formatting of the "site exec" command, it is possible to coerce the wu-ftpd daemon to execute arbitrary code. Sites can determine if this program is installed by using: % ftp hostname and examining the output of the ftp login banner. If no version information appears on the login banner, or to verify the information on the login banner is correct, log into the ftp server as normal then issue the following command: ftp> quote stat All affected versions of the wu-ftpd daemon allow control over the information revealed in the initial login banner, however they all return their version number in response to the ftp server "stat" command as shown above. 2. Impact This vulnerability may allow local, remote and anonymous users to gain root privileges. 3. Workarounds/Solution AusCERT recommends that sites prevent the exploitation of the vulnerability in wu-ftpd by immediately upgrading and applying the available patch as described in Section 3.2. Versions known to be vulnerable are listed in Section 3.1 If the functionality provided by wu-ftpd is not required at all, it is recommended that sites disable it on their systems. 3.1 Status of variants and versions of wu-ftpd likely to be affected. This vulnerability is known to be present on the following ftpd implementations: wu-ftpd: Versions effected: wu-ftpd-2.6.0 (and prior versions) (See Section 3.2) Red Hat: Versions effected: All present versions. Vendor patch is available. (See Section 3.3) Caldera: Versions effected: All present versions. Vendor patch is available. (See Section 3.4) Debian: Versions effected: All present versions. Vendor patch is available. (See Section 3.5) 3.2 Upgrade to latest wu-ftpd and apply patch. A patch to remove this vulnerability from the 2.6.0 release of wu-ftpd has been made available by the WU-FTPD Development Group. Sites should upgrade to the latest version of wu-ftpd (2.6.0) and apply this patch. The 2.6.0 release of wu-ftpd is available from: ftp://ftp.wu-ftpd.org/pub/wu-ftpd/ The security patch that needs to be applied to wu-ftpd 2.6.0 is available from: ftp://ftp.wu-ftpd.org/pub/wu-ftpd/patches/apply_to_2.6.0/lreply-buffer-overflow.patch 3.3 Upgrade to latest wu-ftpd Red Hat RPM. Red Hat have released updated versions of wu-ftpd which address this vulnerability. More information (including RPM's) can be found at: http://www.redhat.com/support/errata/RHSA-2000-039-02.html The RPM's they have made available contain the patch mentioned in section 3.2. 3.4 Upgrade to latest wu-ftpd Caldera RPM. Caldera have released updated versions of wu-ftpd which address this vulnerability. More information (including RPM's) can be found at: ftp://ftp.calderasystems.com/pub/OpenLinux/security/CSSA-2000-020.0.txt The RPM's they have made available contain the patch mentioned in section 3.2. 3.5 Upgrade to latest wu-ftpd Debian package. Debian have released updated versions of wu-ftpd which address this vulnerability. More information (including packages) can be found at: http://www.debian.org/security/2000/20000623 The packages they have made available contain the patch mentioned in section 3.2. - --------------------------------------------------------------------------- AusCERT has made every effort to ensure that the information contained in this document is accurate. However, the decision to use the information described is the responsibility of each user or organisation. The appropriateness of this document for an organisation or individual system should be considered before application in conjunction with local policies and procedures. AusCERT takes no responsibility for the consequences of applying the contents of this document. If you believe that your system has been compromised, contact AusCERT or your representative in FIRST (Forum of Incident Response and Security Teams). AusCERT maintains an anonymous FTP service which is found on: ftp://ftp.auscert.org.au/pub/. This archive contains past SERT and AusCERT Advisories, and other computer security information. AusCERT also maintains a World Wide Web service which is found on: http://www.auscert.org.au/. 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. Postal: Australian Computer Emergency Response Team The University of Queensland Brisbane Qld 4072 AUSTRALIA ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Revision History ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv Comment: ftp://ftp.auscert.org.au/pub/auscert/AUSCERT_PGP.key iQCVAwUBOVhwxih9+71yA2DNAQEBdgQAhSvCucp6lNASzD8jh9+I66ShfcqA3V3b j7n3FNokEbMJU+wFKRzt8orpxwHCXxaKMVsfBgF22sfHM/4Dq3Sxb0zGoqeQ7yRn WLjqVakfRMGTXnSwniHNs0d4jrFmWmu/eRVuxQL1RjCofZbsdiefkdYanoy1UIM4 SY9rIDlDNBM= =HRdC -----END PGP SIGNATURE-----