Foswiki < 1.1.8 MAKETEXT Macro Arbitrary Code Injection

Medium Nessus Plugin ID 65059


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


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.


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

Plugin Details

Severity: Medium

ID: 65059

File Name: foswiki_1_1_8.nasl

Version: 1.5

Type: remote

Family: CGI abuses

Published: 2013/03/06

Updated: 2019/12/04

Dependencies: 65058

Configuration: Enable paranoid mode

Risk Information

Risk Factor: Medium

CVSS Score Source: CVE-2013-1666

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

CVSS v3.0

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