FreeBSD : twiki -- remote Perl code execution (21ce1840-6107-11e4-9e84-0022156e8794)

critical Nessus Plugin ID 78816

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

TWiki developers report :

The debugenableplugins request parameter allows arbitrary Perl code execution.

Using an HTTP GET request towards a TWiki server, add a specially crafted debugenableplugins request parameter to TWiki's view script (typically port 80/TCP). Prior authentication may or may not be necessary.

A remote attacker can execute arbitrary Perl code to view and modify any file the webserver user has access to.

Example:
http://www.example.com/do/view/Main/WebHome?debugenableplugins=BackupR estorePlugin%3bprint('Content-Type:text/html\r\n\r\nVulnerable!')%3bex it

The TWiki site is vulnerable if you see a page with text 'Vulnerable!'.

Solution

Update the affected package.

See Also

http://twiki.org/cgi-bin/view/Codev/SecurityAlert-CVE-2014-7236

http://www.nessus.org/u?e14ddd1d

Plugin Details

Severity: Critical

ID: 78816

File Name: freebsd_pkg_21ce1840610711e49e840022156e8794.nasl

Version: 1.10

Type: local

Published: 11/3/2014

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.4

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

CVSS v3

Risk Factor: Critical

Base Score: 9.1

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

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:twiki, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 10/31/2014

Vulnerability Publication Date: 10/9/2014

Exploitable With

Metasploit (TWiki Debugenableplugins Remote Code Execution)

Elliot (TWiki debugenableplugins RCE)

Reference Information

CVE: CVE-2014-7236