Vulnerabilities > CVE-2009-3699 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in IBM AIX and Vios

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
ibm
CWE-119
critical
nessus
exploit available
metasploit

Summary

Stack-based buffer overflow in libcsa.a (aka the calendar daemon library) in IBM AIX 5.x through 5.3.10 and 6.x through 6.1.3, and VIOS 2.1 and earlier, allows remote attackers to execute arbitrary code via a long XDR string in the first argument to procedure 21 of rpc.cmsd.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionAIX Calendar Manager Service Daemon (rpc.cmsd) Opcode 21 Buffer Overflow. CVE-2009-3699. Dos exploit for aix platform
idEDB-ID:16929
last seen2016-02-02
modified2010-11-11
published2010-11-11
reportermetasploit
sourcehttps://www.exploit-db.com/download/16929/
titleAIX Calendar Manager Service Daemon rpc.cmsd Opcode 21 - Buffer Overflow

Metasploit

descriptionThis module exploits a buffer overflow vulnerability in opcode 21 handled by rpc.cmsd on AIX. By making a request with a long string passed to the first argument of the "rtable_create" RPC, a stack based buffer overflow occurs. This leads to arbitrary code execution. NOTE: Unsuccessful attempts may cause inetd/portmapper to enter a state where further attempts are not possible.
idMSF:EXPLOIT/AIX/RPC_CMSD_OPCODE21
last seen2020-06-13
modified2017-07-24
published2010-02-08
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/aix/rpc_cmsd_opcode21.rb
titleAIX Calendar Manager Service Daemon (rpc.cmsd) Opcode 21 Buffer Overflow

Nessus

  • NASL familyAIX Local Security Checks
    NASL idAIX_IZ62569.NASL
    descriptionThere is a buffer overflow vulnerability in the calendar daemon library libcsa.a. A remote attacker can exploit this vulnerability when the rpc.cmsd calendar daemon is enabled in /etc/inetd.conf. The successful exploitation of this vulnerability allows a remote attacker to execute arbitrary code as the root user. The following libraries and executables are vulnerable : /usr/dt/bin/rpc.cmsd /usr/dt/lib/libcsa.a.
    last seen2020-06-01
    modified2020-06-02
    plugin id64349
    published2013-01-30
    reporterThis script is Copyright (C) 2013-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64349
    titleAIX 6.1 TL 0 : cmsd (IZ62569)
  • NASL familyAIX Local Security Checks
    NASL idAIX_IZ62123.NASL
    descriptionThere is a buffer overflow vulnerability in the calendar daemon library libcsa.a. A remote attacker can exploit this vulnerability when the rpc.cmsd calendar daemon is enabled in /etc/inetd.conf. The successful exploitation of this vulnerability allows a remote attacker to execute arbitrary code as the root user. The following libraries and executables are vulnerable : /usr/dt/bin/rpc.cmsd /usr/dt/lib/libcsa.a.
    last seen2020-06-01
    modified2020-06-02
    plugin id64347
    published2013-01-30
    reporterThis script is Copyright (C) 2013-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64347
    titleAIX 5.3 TL 10 : cmsd (IZ62123)
  • NASL familyAIX Local Security Checks
    NASL idAIX_IZ62571.NASL
    descriptionThere is a buffer overflow vulnerability in the calendar daemon library libcsa.a. A remote attacker can exploit this vulnerability when the rpc.cmsd calendar daemon is enabled in /etc/inetd.conf. The successful exploitation of this vulnerability allows a remote attacker to execute arbitrary code as the root user. The following libraries and executables are vulnerable : /usr/dt/bin/rpc.cmsd /usr/dt/lib/libcsa.a.
    last seen2020-06-01
    modified2020-06-02
    plugin id64351
    published2013-01-30
    reporterThis script is Copyright (C) 2013-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64351
    titleAIX 6.1 TL 2 : cmsd (IZ62571)
  • NASL familyAIX Local Security Checks
    NASL idAIX_IZ61717.NASL
    descriptionThere is a buffer overflow vulnerability in the calendar daemon library libcsa.a. A remote attacker can exploit this vulnerability when the rpc.cmsd calendar daemon is enabled in /etc/inetd.conf. The successful exploitation of this vulnerability allows a remote attacker to execute arbitrary code as the root user. The following libraries and executables are vulnerable : /usr/dt/bin/rpc.cmsd /usr/dt/lib/libcsa.a.
    last seen2020-06-01
    modified2020-06-02
    plugin id64346
    published2013-01-30
    reporterThis script is Copyright (C) 2013-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64346
    titleAIX 5.3 TL 9 : cmsd (IZ61717)
  • NASL familyAIX Local Security Checks
    NASL idAIX_IZ62237.NASL
    descriptionThere is a buffer overflow vulnerability in the calendar daemon library libcsa.a. A remote attacker can exploit this vulnerability when the rpc.cmsd calendar daemon is enabled in /etc/inetd.conf. The successful exploitation of this vulnerability allows a remote attacker to execute arbitrary code as the root user. The following libraries and executables are vulnerable : /usr/dt/bin/rpc.cmsd /usr/dt/lib/libcsa.a.
    last seen2020-06-01
    modified2020-06-02
    plugin id64348
    published2013-01-30
    reporterThis script is Copyright (C) 2013-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64348
    titleAIX 5.3 TL 8 : cmsd (IZ62237)
  • NASL familyAIX Local Security Checks
    NASL idAIX_IZ62572.NASL
    descriptionThere is a buffer overflow vulnerability in the calendar daemon library libcsa.a. A remote attacker can exploit this vulnerability when the rpc.cmsd calendar daemon is enabled in /etc/inetd.conf. The successful exploitation of this vulnerability allows a remote attacker to execute arbitrary code as the root user. The following libraries and executables are vulnerable : /usr/dt/bin/rpc.cmsd /usr/dt/lib/libcsa.a.
    last seen2020-06-01
    modified2020-06-02
    plugin id64352
    published2013-01-30
    reporterThis script is Copyright (C) 2013-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64352
    titleAIX 6.1 TL 3 : cmsd (IZ62572)
  • NASL familyAIX Local Security Checks
    NASL idAIX_IZ61628.NASL
    descriptionThere is a buffer overflow vulnerability in the calendar daemon library libcsa.a. A remote attacker can exploit this vulnerability when the rpc.cmsd calendar daemon is enabled in /etc/inetd.conf. The successful exploitation of this vulnerability allows a remote attacker to execute arbitrary code as the root user. The following libraries and executables are vulnerable : /usr/dt/bin/rpc.cmsd /usr/dt/lib/libcsa.a.
    last seen2020-06-01
    modified2020-06-02
    plugin id64345
    published2013-01-30
    reporterThis script is Copyright (C) 2013-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64345
    titleAIX 5.3 TL 7 : cmsd (IZ61628)
  • NASL familyAIX Local Security Checks
    NASL idAIX_IZ62570.NASL
    descriptionThere is a buffer overflow vulnerability in the calendar daemon library libcsa.a. A remote attacker can exploit this vulnerability when the rpc.cmsd calendar daemon is enabled in /etc/inetd.conf. The successful exploitation of this vulnerability allows a remote attacker to execute arbitrary code as the root user. The following libraries and executables are vulnerable : /usr/dt/bin/rpc.cmsd /usr/dt/lib/libcsa.a.
    last seen2020-06-01
    modified2020-06-02
    plugin id64350
    published2013-01-30
    reporterThis script is Copyright (C) 2013-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64350
    titleAIX 6.1 TL 1 : cmsd (IZ62570)

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/86126/rpc_cmsd_opcode21.rb.txt
idPACKETSTORM:86126
last seen2016-12-05
published2010-02-10
reporterRodrigo Rubira Branco
sourcehttps://packetstormsecurity.com/files/86126/AIX-Calendar-Manager-Service-Daemon-rpc.cmsd-Opcode-21-Buffer-Overflow.html
titleAIX Calendar Manager Service Daemon (rpc.cmsd) Opcode 21 Buffer Overflow