Foswiki < 1.1.8 MAKETEXT Macro Arbitrary Code Injection

Medium 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: Medium

ID: 65059

File Name: foswiki_1_1_8.nasl

Version: 1.3

Type: remote

Family: CGI abuses

Published: 2013/03/06

Modified: 2018/06/13

Dependencies: 65058

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 6.8

Temporal Score: 5

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

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

Vulnerability Information

CPE: cpe:/a:foswiki:foswiki

Exploit Available: false

Exploit Ease: No known exploits are available

Patch Publication Date: 2013/02/18

Vulnerability Publication Date: 2013/02/19

Reference Information

CVE: CVE-2013-1666

BID: 58026