DokuWiki fetch.php Multiple Parameter imconvert Function Arbitrary Command Execution

high Nessus Plugin ID 22475

Synopsis

The remote web server contains a PHP script that is affected by multiple vulnerabilities.

Description

The remote host is running DokuWiki, an open source wiki application written in PHP.

The installed version of DokuWiki fails to properly sanitize input to the 'w' and 'h' parameters of the 'lib/exe/fetch.php' script before using it to execute a command when resizing images. An unauthenticated attacker can leverage this issue to execute arbitrary code on the remote host subject to the privileges of the web server user id.

In addition, the application reportedly does not limit the size of images when resizing them, which can be exploited to churn through CPU cycles and disk space on the affected host.

Note that successful exploitation of this issue requires that DokuWiki's 'imconvert' configuration option be set; by default, it is not.

Solution

Upgrade to DokuWiki release 2006-03-09e / 2006-09-28 or later.

See Also

http://bugs.splitbrain.org/?do=details&id=924

http://bugs.splitbrain.org/?do=details&id=926

http://www.freelists.org/archives/dokuwiki/09-2006/msg00278.html

Plugin Details

Severity: High

ID: 22475

File Name: dokuwiki_fetch_cmd_exec.nasl

Version: 1.22

Type: remote

Family: CGI abuses

Published: 9/29/2006

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

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

CVSS v3

Risk Factor: High

Base Score: 8.8

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

Vulnerability Information

CPE: cpe:/a:andreas_gohr:dokuwiki

Required KB Items: www/dokuwiki

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Exploited by Nessus: true

Vulnerability Publication Date: 9/26/2006

Reference Information

CVE: CVE-2006-5098, CVE-2006-5099

BID: 20257