phpMyAdmin setup.php unserialize() Arbitrary PHP Code Execution (PMASA-2010-3)

high Nessus Plugin ID 44324

Synopsis

The remote web server contains a PHP application that may allow execution of arbitrary code.

Description

The setup script included with the version of phpMyAdmin installed on the remote host does not properly sanitize user-supplied input before using it to generate a config file for the application. Submitting a specially crafted POST request can result in arbitrary PHP code injection.

A remote attacker could exploit this issue in a cross-site request forgery attack, which could be used to execute arbitrary commands on the system with the privileges of the web server.

Solution

Upgrade to phpMyAdmin 2.11.10 / 3.0.0 or later.

See Also

https://www.phpmyadmin.net/security/PMASA-2010-3/

Plugin Details

Severity: High

ID: 44324

File Name: phpmyadmin_pmasa_2010_3.nasl

Version: 1.12

Type: remote

Family: CGI abuses

Published: 1/27/2010

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.2

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

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

Vulnerability Information

CPE: cpe:/a:phpmyadmin:phpmyadmin

Required KB Items: www/PHP, www/phpMyAdmin

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Patch Publication Date: 1/15/2010

Vulnerability Publication Date: 1/15/2010

Exploitable With

Core Impact

Reference Information

CVE: CVE-2009-4605

BID: 37861

SECUNIA: 38211