phpCOIN < 1.2.2 2005-12-13 Fix-File Multiple Vulnerabilities

high Nessus Plugin ID 20300

Synopsis

The remote web server contains a PHP application that is prone to several vulnerabilities.

Description

The remote host appears to be running phpCOIN, a software package for web-hosting resellers to handle clients, orders, helpdesk queries, and the like.

The version of phpCOIN installed on the remote host fails to sanitize user-supplied input to the '_CCFG[_PKG_PATH_DBSE]' parameter of the 'config.php' script before using it in a PHP 'require_once' function. Provided PHP's 'register_globals' setting is enabled, an unauthenticated attacker may be able to exploit this flaw to read arbitrary files on the remote host and/or run arbitrary code, possibly taken from third-party hosts, subject to the privileges of the web server user id.

In addition, the application uses the 'phpcoinsessid' cookie for database queries in the 'coin_cfg.php' script without sanitizing it, which opens the application up to SQL injection attacks provided PHP's 'magic_quotes_gpc' setting is disabled.

Solution

Upgrade to 1.2.2 with the 2005-12-13 fix-file or later.

See Also

http://www.nessus.org/u?45852225

http://forums.phpcoin.com/index.php?showtopic=5469

Plugin Details

Severity: High

ID: 20300

File Name: phpcoin_122_20051213.nasl

Version: 1.25

Type: remote

Family: CGI abuses

Published: 12/14/2005

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/a:coinsoft_technologies:phpcoin

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Vulnerability Publication Date: 12/12/2005

Reference Information

CVE: CVE-2005-4211, CVE-2005-4212, CVE-2005-4213

BID: 15830, 15831