Vulnerability Note VU#309979

Caucho's Quercus on Resin contains multiple vulnerabilities

Original Release date: 23 Jul 2012 | Last revised: 23 Jul 2012

Overview

Caucho's Quercus on Resin contains multiple vulnerabilities which could allow an attacker to execute arbitrary code with the privileges of the application.

Description

It has been reported that Caucho's Quercus on Resin contains multiple vulnerabilities which could allow an attacker to execute arbitrary code with the privileges of the application.

  • CVE-2012-2965: 1. HTTP Parameter Contamination: Some special characters in variables names are handled inappropriately, which may be leveraged by attackers. Additionally, attackers may intentionally cause error 500.
  • CVE-2012-2966: 2. Variables Globalization and Overwriting: When parameters are transferred via POST, they become globalized. When parameters are transferred via POST, the _SERVER array items may be overwritten.
  • CVE-2012-2967: 3. Inappropriate Variable Comparison: Flexible comparison (using the == operator) various types of variables is implemented inappropriately. It is possible for variable comparisons to always result in a TRUE result. Additionally, the result of comparing array() and 0 in all cases is TRUE, which is also atypical behavior for a PHP interpreter.
  • CVE-2012-2968: 4. Path Traversal: When downloading files, the ../ string may be inserted into filenames (via forging HTTP requests). Such insertion allows downloading files to arbitrary directories.
  • CVE-2012-2969: 5. Null Byte Injection: When downloading files, null bytes may be inserted into filenames (via forging HTTP requests). As a result of the insertion, the string after the null byte will be dropped.

Impact

A remote unauthenticated attacker may obtain sensitive information, cause a denial of service condition or execute arbitrary code with the privileges of the application.

Solution

Update

According to the vendor these issues are addressed in software version 4.0.29. Users are advised to upgrade to 4.0.29 or higher.

Restrict access

As a general good security practice, only allow connections from trusted hosts and networks. Note that restricting access does not prevent XSS or CSRF attacks since the attack comes as an HTTP request from a legitimate user's host. Restricting access would prevent an attacker from accessing the Quercus on Resin website interface using stolen credentials from a blocked network location.

Vendor Information (Learn More)

VendorStatusDate NotifiedDate Updated
Caucho TechnologyAffected30 Apr 201223 Jul 2012
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P
Temporal 5.0 E:U/RL:OF/RC:UC
Environmental 1.4 CDP:L/TD:L/CR:ND/IR:ND/AR:ND

References

Credit

Thanks to Sergey Scherbel for reporting this vulnerability.

This document was written by Michael Orlando.

Other Information

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.