WP-Syntax Plugin for WordPress 'apply_filters' function Command Execution

high Nessus Plugin ID 40592

Synopsis

The remote web server contains a PHP script that is affected by a command execution vulnerability.

Description

The installation of WordPress on the remote web server includes the WP-Syntax plugin, a third-party add-on that provides clean syntax highlighting supporting a wide range of programming languages.

The version of WP-Syntax installed on the remote host fails to initialize the 'test_filter' array variable in the 'test/index.php' script. Provided that PHP's 'register_globals' setting is enabled, an anonymous remote attacker can leverage this issue to execute arbitrary commands subject the privileges of the web server user id by adding a specially crafted series of filters, which in turn will be executed in the 'apply_filters()' function.

Solution

Upgrade to version 0.9.10 or later

See Also

https://wordpress.org/plugins/wp-syntax/#changelog

https://plugins.trac.wordpress.org/changeset/395779/wp-syntax

Plugin Details

Severity: High

ID: 40592

File Name: wp_syntax_cmd_exec.nasl

Version: 1.22

Type: remote

Family: CGI abuses

Published: 8/14/2009

Updated: 6/5/2024

Supported Sensors: Nessus

Enable CGI Scanning: true

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

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

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:wordpress:wordpress, cpe:/a:ryan.mcgeary:wp-syntax

Required KB Items: installed_sw/WordPress, www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Exploited by Nessus: true

Patch Publication Date: 6/10/2011

Vulnerability Publication Date: 8/13/2009

Reference Information

CVE: CVE-2009-2852

BID: 36040

CWE: 20