Title: Multiple Vendor Wu-Ftpd Buffer Overflow Vulnerability
Severity: CRITICAL
Description:
There is a buffer overflow vulnerability present in versions of wu-ftpd 2.5 and below (and its derivatives). It is similar to the previous wu-ftpd bug, being related to path and path translation. The static array mapped_path is copied into a local buffer on the stack without bounds checking, allowing overflowing of the buffer and the execution of arbitrary code (as root). Systems running the vulnerable versions of wu-ftpd allowing anonymous access with writeable directories (ie. incoming) are especially vulnerable. The consequence is a possible remote root compromise through anonymous ftp (if enabled), or an almost guaranteed remote root compromise through a known user account/password.
The code in question defines the function 'getcwd' to be 'mapped_path_cwd'. The mapped_path_cwd does not perform bounsd checking. When an FTP client sensd a CWD command the 'pwd' function is called which in turn calls 'getcwd' passing it a buffer in the stack of length MAXPATHLEN + 1.
Affected Products:
- BeroFTPD BeroFTPD 1.3.2
- BeroFTPD BeroFTPD 1.3.3
- BeroFTPD BeroFTPD 1.3.4
- Caldera OpenLinux 2.4.0
- Caldera OpenLinux Desktop 2.3.0
- Linux ftpd 0.16.0
- RedHat Linux 6.0.0
- RedHat Linux 6.0.0 alpha
- RedHat Linux 6.0.0 sparc
- SCO eDesktop 2.4.0
- SCO eServer 2.3.0
- SCO eServer 2.3.1
- Washington University wu-ftpd 2.4.2 (beta 18) VR10
- Washington University wu-ftpd 2.4.2 (beta 18) VR11
- Washington University wu-ftpd 2.4.2 (beta 18) VR12
- Washington University wu-ftpd 2.4.2 (beta 18) VR13
- Washington University wu-ftpd 2.4.2 (beta 18) VR14
- Washington University wu-ftpd 2.4.2 (beta 18) VR15
- Washington University wu-ftpd 2.4.2 (beta 18) VR4
- Washington University wu-ftpd 2.4.2 (beta 18) VR5
- Washington University wu-ftpd 2.4.2 (beta 18) VR6
- Washington University wu-ftpd 2.4.2 (beta 18) VR7
- Washington University wu-ftpd 2.4.2 (beta 18) VR8
- Washington University wu-ftpd 2.4.2 (beta 18) VR9
- Washington University wu-ftpd 2.4.2 VR16
- Washington University wu-ftpd 2.4.2 VR17
- Washington University wu-ftpd 2.5.0 .0
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.