Executive Summary

Summary
Title DokuWiki: Local file inclusion
Informations
Name GLSA-200908-09 First vendor Publication 2009-08-18
Vendor Gentoo Last vendor Modification 2009-08-18
Severity (Vendor) High Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:N/C:C/I:C/A:C)
Cvss Base Score 9.3 Attack Range Network
Cvss Impact Score 10 Attack Complexity Medium
Cvss Expoit Score 8.6 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

An input sanitation error in DokuWiki might lead to the dislosure of local files or even the remote execution of arbitrary code.

Background

DokuWiki is a standards compliant Wiki system written in PHP.

Description

girex reported that data from the "config_cascade" parameter in inc/init.php is not properly sanitized before being used.

Impact

A remote attacker could exploit this vulnerability to execute PHP code from arbitrary local, or, when the used PHP version supports ftp://
URLs, also from remote files via FTP. Furthermore, it is possible to disclose the contents of local files. NOTE: Successful exploitation requires the PHP option "register_globals" to be enabled.

Workaround

Disable "register_globals" in php.ini.

Resolution

All DokuWiki users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose =www-apps/dokuwiki-2009-02-14b

References

[ 1 ] CVE-2009-1960 : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1960

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-200908-09.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-200908-09.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-94 Failure to Control Generation of Code ('Code Injection')

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 3

OpenVAS Exploits

Date Description
2009-09-02 Name : Gentoo Security Advisory GLSA 200908-09 (dokuwiki)
File : nvt/glsa_200908_09.nasl
2009-06-19 Name : DokuWiki 'doku.php' Local File Inclusion Vulnerability
File : nvt/gb_dokuwiki_local_file_inc_vuln.nasl
2009-06-09 Name : FreeBSD Ports: dokuwiki
File : nvt/freebsd_dokuwiki4.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
54740 DokuWiki doku.php config_cascade[main][default][] Parameter Remote File Inclu...

DokuWiki contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to the 'doku.php' script not properly sanitizing user input supplied to the 'config_cascade[main][default][]' parameter. This may allow an attacker to include a file from an arbitrary remote host that contains commands which will be executed by the vulnerable script with the same privileges as the web server.

Snort® IPS/IDS

Date Description
2014-01-10 DokuWiki PHP file inclusion attempt
RuleID : 27226 - Revision : 4 - Type : SERVER-WEBAPP

Nessus® Vulnerability Scanner

Date Description
2009-08-20 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200908-09.nasl - Type : ACT_GATHER_INFO
2009-06-05 Name : The remote FreeBSD host is missing one or more security-related updates.
File : freebsd_pkg_4f838b7450a111deb01f001c2514716c.nasl - Type : ACT_GATHER_INFO
2009-05-27 Name : The remote web server contains PHP script that is affected by a remote file i...
File : dokuwiki_config_cascade_rfi.nasl - Type : ACT_ATTACK

Alert History

If you want to see full details history, please login or register.
0
Date Informations
2014-02-17 11:36:40
  • Multiple Updates