Gentoo Logo

DokuWiki: Arbitrary command execution

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200609-10 / dokuwiki
Release Date September 14, 2006
Latest Revision September 14, 2006: 01
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
www-apps/dokuwiki < 20060309d >= 20060309d All supported architectures

Related bugreports: #146800

Synopsis

Vulnerabilities in some accessory scripts of DokuWiki allow remote code execution.

2.  Impact Information

Background

DokuWiki is a wiki targeted at developer teams, workgroups and small companies. It does not use a database backend.

Description

"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.

3.  Resolution Information

Workaround

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

Resolution

All DokuWiki users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=www-apps/dokuwiki-20060309d"

4.  References



Print

Page updated September 14, 2006

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.