J-Security Center

Title: PGPMail Remote Command Execution Vulnerability

Severity: HIGH

Description:

PGPMail is a modified version of Matt Wright's FormMail 1.5, allowing mail to be encrypted using PGP.

PGPMail is prone to a vulnerability which may allow arbitrary commands to be executed on the shell of a host running it. This is due to insufficient validation of data in hidden form fields. Commands will be executed with the privileges of the webserver. There are at least two instances in the PGPMail.pl script where shell metacharacters are not adequately filtered from hidden form fields(recipient and pgpuserid).

Although PGPMail does include the security feature of checking the HTTP Referrer against a list of trusted hosts, this vulnerability could be trivially exploited if the HTTP Referrer field of a web request is forged by the attacker.

Successful exploitation may allow the attacker to gain local access to the host.

Affected Products:

  • Matt Wright FormMail 1.5.0
  • Matt Wright FormMail 1.6.0
  • PGPMail PGPMail 1.3.0 00
  • PGPMail PGPMail 1.3.1

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.