GLSA-200609-10 : DokuWiki: Arbitrary command execution

high Nessus Plugin ID 22355

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200609-10 (DokuWiki: Arbitrary command execution)

'rgod' discovered that DokuWiki doesn't sanitize the X-FORWARDED-FOR HTTP header, allowing the injection of arbitrary contents - such as PHP commands - into a file. Additionally, the accessory scripts installed in the 'bin' DokuWiki directory are vulnerable to directory traversal attacks, allowing to copy and execute the previously injected code.
Impact :

A remote attacker may execute arbitrary PHP (and thus probably system) commands with the permissions of the user running the process serving DokuWiki pages.
Workaround :

Disable remote access to the 'bin' subdirectory of the DokuWiki installation. Remove the directory if you don't use the scripts in there.

Solution

All DokuWiki users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=www-apps/dokuwiki-20060309d'

See Also

https://security.gentoo.org/glsa/200609-10

Plugin Details

Severity: High

ID: 22355

File Name: gentoo_GLSA-200609-10.nasl

Version: 1.14

Type: local

Published: 9/15/2006

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: High

Base Score: 7.5

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:dokuwiki, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 9/14/2006

Vulnerability Publication Date: 9/7/2006

Reference Information

CVE: CVE-2006-4674, CVE-2006-4675, CVE-2006-4679

GLSA: 200609-10