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.
Unix
cmd
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/unix/webapp/squirrelmail_pgp_plugin
msf exploit(squirrelmail_pgp_plugin) > show targets
...targets...
msf exploit(squirrelmail_pgp_plugin) > set TARGET < target-id >
msf exploit(squirrelmail_pgp_plugin) > show options
...show and set options...
msf exploit(squirrelmail_pgp_plugin) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security