DokuWiki doku.php X-FORWARDED-FOR HTTP Header Arbitrary Code Injection

high Nessus Plugin ID 22315

Synopsis

The remote web server contains a PHP script that should be removed or protected.

Description

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

The installed version of DokuWiki includes a script, 'bin/dwpage.php', that is intended as a command line tool for modifying pages. By accessing it through the web, an unauthenticated, remote attacker can abuse it to view local files and even execute arbitrary code, both subject to the privileges of the web server user id.

Solution

Limit access to DokuWiki's 'bin' directory using, say, a .htaccess file or remove the affected script.

See Also

http://www.nessus.org/u?6748d421

https://www.freelists.org/post/dokuwiki/SECURITY-WARNING-was-Strange-attack-on-the-wiki

Plugin Details

Severity: High

ID: 22315

File Name: dokuwiki_dwpage.nasl

Version: 1.21

Type: remote

Family: CGI abuses

Published: 9/8/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: 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

Vulnerability Publication Date: 9/7/2006

Reference Information

CVE: CVE-2006-4674

BID: 19911