Foswiki < 1.1.8 MAKETEXT Macro Arbitrary Code Injection

critical Nessus Plugin ID 65059

Synopsis

The remote web server contains a CGI application that is affected by a code injection vulnerability.

Description

According to its version number, the instance of Foswiki installed on the remote host is affected by a code injection vulnerability in the '%MAKETEXT{}%' macro. An incomplete fix to CVE-2012-6329 left this attack vector available in which an attacker can invoke arbitrary Perl modules by escaping brackets within 'MAKETEXT =~~[Some::Module,~~]='.

Note that Foswiki installations in which localization is not enabled or 'Locale::Maketext' has been upgraded to version 1.23, are not affected.

Note also that Nessus has not tested for this issue, but instead, has relied only on the application's self-reported version number.

Solution

Either upgrade to version 1.1.8 or later or apply the hotfix in the referenced URL. Additionally, Locale::Maketext should be upgraded to version 1.23.

See Also

http://foswiki.org/Support/SecurityAlert-CVE-2013-1666

Plugin Details

Severity: Critical

ID: 65059

File Name: foswiki_1_1_8.nasl

Version: 1.7

Type: remote

Family: CGI abuses

Published: 3/6/2013

Updated: 4/11/2022

Configuration: Enable paranoid mode, Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

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

CVSS Score Source: CVE-2013-1666

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

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

Vulnerability Information

CPE: cpe:/a:foswiki:foswiki

Required KB Items: Settings/ParanoidReport, www/foswiki

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No known exploits are available

Patch Publication Date: 2/18/2013

Vulnerability Publication Date: 2/19/2013

Reference Information

CVE: CVE-2013-1666

BID: 58026