Gentoo Archives: gentoo-announce

From: Matthias Geerdsen <vorlon@g.o>
To: gentoo-announce@g.o
Cc: bugtraq@×××××××××××××.com, full-disclosure@××××××××××××××.uk, security-alerts@×××××××××××××.com
Subject: [gentoo-announce] [ GLSA 200704-08 ] DokuWiki: Cross-site scripting vulnerability
Date: Thu, 12 Apr 2007 14:18:24
Message-Id: 461E3C21.7070702@gentoo.org
1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 Gentoo Linux Security Advisory GLSA 200704-08
3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4 http://security.gentoo.org/
5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6
7 Severity: Low
8 Title: DokuWiki: Cross-site scripting vulnerability
9 Date: April 12, 2007
10 Bugs: #163781
11 ID: 200704-08
12
13 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
14
15 Synopsis
16 ========
17
18 DokuWiki is vulnerable to a cross-site scripting attack.
19
20 Background
21 ==========
22
23 DokuWiki is a simple to use wiki aimed at creating documentation.
24
25 Affected packages
26 =================
27
28 -------------------------------------------------------------------
29 Package / Vulnerable / Unaffected
30 -------------------------------------------------------------------
31 1 www-apps/dokuwiki < 20061106 >= 20061106
32
33 Description
34 ===========
35
36 DokuWiki does not sanitize user input to the GET variable 'media' in
37 the fetch.php file.
38
39 Impact
40 ======
41
42 An attacker could entice a user to click a specially crafted link and
43 inject CRLF characters into the variable. This would allow the creation
44 of new lines or fields in the returned HTTP Response header, which
45 would permit the attacker to execute arbitrary scripts in the context
46 of the user's browser.
47
48 Workaround
49 ==========
50
51 Replace the following line in lib/exe/fetch.php:
52 $MEDIA = getID('media',false); // no cleaning - maybe external
53
54 with
55 $MEDIA = preg_replace('/[\x00-\x1F]+/s','',getID('media',false));
56
57 Resolution
58 ==========
59
60 All DokuWiki users should upgrade to the latest version:
61
62 # emerge --sync
63 # emerge --ask --oneshot --verbose ">=www-apps/dokuwiki-20061106"
64
65 References
66 ==========
67
68 [ 1 ] CVE-2006-6965
69 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-6965
70
71 Availability
72 ============
73
74 This GLSA and any updates to it are available for viewing at
75 the Gentoo Security Website:
76
77 http://security.gentoo.org/glsa/glsa-200704-08.xml
78
79 Concerns?
80 =========
81
82 Security is a primary focus of Gentoo Linux and ensuring the
83 confidentiality and security of our users machines is of utmost
84 importance to us. Any security concerns should be addressed to
85 security@g.o or alternatively, you may file a bug at
86 http://bugs.gentoo.org.
87
88 License
89 =======
90
91 Copyright 2007 Gentoo Foundation, Inc; referenced text
92 belongs to its owner(s).
93
94 The contents of this document are licensed under the
95 Creative Commons - Attribution / Share Alike license.
96
97 http://creativecommons.org/licenses/by-sa/2.5

Attachments

File name MIME type
signature.asc application/pgp-signature