DokuWiki Spell Checker Embedded Link Arbitrary PHP Code Execution

high Nessus Plugin ID 21662

Synopsis

The remote web server contains a PHP application that is affected by an arbitrary code execution vulnerability.

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 'data' parameter of the 'lib/exe/spellcheck.php' script before evaluating it to handle links embedded in the text. An unauthenticated attacker can leverage this issue with PHP commands in 'complex curly syntax' to execute arbitrary PHP code on the remote host subject to the privileges of the web server user id.

Solution

Upgrade to DokuWiki release 2006-03-09 with hotfix 823 or later.

See Also

http://www.hardened-php.net/advisory_042006.119.html

https://www.securityfocus.com/archive/1/435989/30/0/threaded

http://bugs.splitbrain.org/index.php?do=details&id=823

Plugin Details

Severity: High

ID: 21662

File Name: dokuwiki_spellcheck_cmd_exec.nasl

Version: 1.21

Type: remote

Family: CGI abuses

Published: 6/6/2006

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.3

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 7.1

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

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: 6/4/2006

Exploitable With

CANVAS (CANVAS)

Reference Information

CVE: CVE-2006-2878

BID: 18289