J-Security Center

Title: SquirrelMail Remote Command Execution Vulnerability

Severity: CRITICAL

Description:

SquirrelMail is a freely available webmail package written in PHP.

An input validation error exists in SquirrelMail that could enable remote users to execute arbitrary commands on a host running the package.

The problem occurs when certain query values are submitted to some of the scripts included with the package. It is possible for a remote user to cause the scripts to fail to load files containing configuration values. This could enable a user to bypass the authentication mechanisms used in the package. Once the authentication is bypassed, it is possible to coerce the scripts into creating a preferences file for a non-existent user. Malicious PHP code injected into this file and will be executed when one of the scripts attempts to load the preferences file for the non-existent user.

As a result, it is possible for remote users to execute arbitrary commands on a host running SquirrelMail with the privileges of the web server.

Affected Products:

  • SquirrelMail SquirrelMail 1.0.4
  • SquirrelMail SquirrelMail 1.0.5

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.