GLSA-200609-10 : DokuWiki: Arbitrary command execution

This script is Copyright (C) 2006-2014 Tenable Network Security, Inc.


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.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200609-10.xml

Solution :

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

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 22355 (gentoo_GLSA-200609-10.nasl)

Bugtraq ID:

CVE ID: CVE-2006-4674
CVE-2006-4675
CVE-2006-4679