Description
The G/PGP (GPG) Plugin 2.1 and earlier for Squirrelmail allow remote authenticated users to execute arbitrary commands via shell metacharacters in (1) the fpr parameter to the deleteKey function in gpg_keyring.php, as called by (a) import_key_file.php, (b) import_key_text.php, and (c) keyring_main.php; and (2) the keyserver parameter to the gpg_recv_key function in gpg_key_functions.php, as called by gpg_options.php. NOTE: this issue may overlap CVE-2007-3636.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 2
- SquirrelMail G/PGP Encryption Plugin - 'deletekey()' Command Injection EDB-4718 · webapps · Dec 11, 2007 · verified
- SquirrelMail G/PGP Encryption Plugin 2.0 - Command Execution EDB-4173 · webapps · Jul 11, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- squirrelmail-gpgp-keyfunc-command-execution(35364) vdb-entry
- 26035 third-party-advisory
- 26424 third-party-advisory
- 37924 vdb-entry
- 24874 vdb-entry
- 20070711 SquirrelMail G/PGP Plugin gpg_recv_key() Command Injection Vulnerability third-party-advisory
- 4173 exploit
- squirrelmail-gpgp-keyring-command-execution(35355) vdb-entry
- ADV-2007-2513 vdb-entry
- 37923 vdb-entry
- GLSA-200708-08 vendor-advisory
- 20070711 SquirrelMail G/PGP Plugin deleteKey() Command Injection Vulnerability third-party-advisory
- 20070711 True: SquirrelMail G/PGP Encryption Plug-in 2.0 Command Execution Vuln mailing-list
- 20070711 SquirrelMail G/PGP Encryption Plug-in Remote Command Execution Vulnerability mailing-list