blob: b1529e8d3a50966b2b8c1866eb9b543f909420ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200704-08">
<title>DokuWiki: Cross-site scripting vulnerability</title>
<synopsis>
DokuWiki is vulnerable to a cross-site scripting attack.
</synopsis>
<product type="ebuild">dokuwiki</product>
<announced>April 12, 2007</announced>
<revised>April 12, 2007: 01</revised>
<bug>163781</bug>
<access>remote</access>
<affected>
<package name="www-apps/dokuwiki" auto="yes" arch="*">
<unaffected range="ge">20061106</unaffected>
<vulnerable range="lt">20061106</vulnerable>
</package>
</affected>
<background>
<p>
DokuWiki is a simple to use wiki aimed at creating documentation.
</p>
</background>
<description>
<p>
DokuWiki does not sanitize user input to the GET variable 'media' in
the fetch.php file.
</p>
</description>
<impact type="low">
<p>
An attacker could entice a user to click a specially crafted link and
inject CRLF characters into the variable. This would allow the creation
of new lines or fields in the returned HTTP Response header, which
would permit the attacker to execute arbitrary scripts in the context
of the user's browser.
</p>
</impact>
<workaround>
<p>
Replace the following line in lib/exe/fetch.php:
</p>
<code>$MEDIA = getID('media',false); // no cleaning - maybe external</code>
<p>
with
</p>
<code>$MEDIA = preg_replace('/[\x00-\x1F]+/s','',getID('media',false));</code>
</workaround>
<resolution>
<p>
All DokuWiki users should upgrade to the latest version:
</p>
<code>
# emerge --sync
# emerge --ask --oneshot --verbose ">=www-apps/dokuwiki-20061106"</code>
</resolution>
<references>
<uri link="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-6965">CVE-2006-6965</uri>
</references>
<metadata tag="requester" timestamp="Mon, 02 Apr 2007 22:16:33 +0000">
falco
</metadata>
<metadata tag="submitter" timestamp="Tue, 03 Apr 2007 13:45:23 +0000">
aetius
</metadata>
<metadata tag="bugReady" timestamp="Tue, 03 Apr 2007 22:29:45 +0000">
falco
</metadata>
</glsa>
|