FTP: WU-FTPD and BSDi-ftpd SITE EXEC Race Condition

This signature detects attempts to exploit a known vulnerability against the PASS command in Wu-ftpd 2.6.0 and BSDi-ftpd. Attackers can send a maliciously crafted PASS request to an FTP server to execute arbitrary commands as root.

Extended Description

Washington University ftp daemon (wu-ftpd) is a very popular unix ftp server shipped with many distributions of Linux and other UNIX operating systems. Wu-ftpd is vulnerable to a very serious remote attack in the SITE EXEC implementation. Because of user input going directly into a format string for a *printf function, it is possible to overwrite important data, such as a return address, on the stack. When this is accomplished, the function can jump into shellcode pointed to by the overwritten eip and execute arbitrary commands as root. While exploited in a manner similar to a buffer overflow, it is actually an input validation problem. Anonymous ftp is exploitable making it even more serious as attacks can come anonymously from anywhere on the internet. It should be noted that the SITE INDEX command is affected as well.

Affected Products

Hp hp-ux

Short Name
FTP:OVERFLOW:WUBSD-SE-RACE
Severity
Critical
Recommended
False
Recommended Action
Drop
Category
FTP
Keywords
BSDi-ftpd CA-1994-08 CVE-1999-0955 Condition EXEC Race SITE WU-FTPD and bid:1387
Release Date
04/25/2003
Supported Platforms

srx-branch-12.3

srx-19.3

srx-branch-19.3

vsrx3bsd-19.2

srx-branch-19.4

vsrx-19.4

mx-12.3

mx-19.4

vmx-19.4

mx-19.3

vsrx3bsd-19.4

srx-19.4

vsrx-12.3

vmx-19.3

vsrx-19.2

srx-12.3

Sigpack Version
3375
False Positive
Unknown
Vendors

Red_hat

Conectiva

Washington_university

Hp

Turbolinux

Slackware

Caldera

Debian

CVSS Score

7.6

Found a potential security threat?