blob: b1529e8d3a50966b2b8c1866eb9b543f909420ca [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<glsa id="200704-08">
<title>DokuWiki: Cross-site scripting vulnerability</title>
DokuWiki is vulnerable to a cross-site scripting attack.
<product type="ebuild">dokuwiki</product>
<announced>April 12, 2007</announced>
<revised>April 12, 2007: 01</revised>
<package name="www-apps/dokuwiki" auto="yes" arch="*">
<unaffected range="ge">20061106</unaffected>
<vulnerable range="lt">20061106</vulnerable>
DokuWiki is a simple to use wiki aimed at creating documentation.
DokuWiki does not sanitize user input to the GET variable 'media' in
the fetch.php file.
<impact type="low">
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.
Replace the following line in lib/exe/fetch.php:
<code>$MEDIA = getID('media',false); // no cleaning - maybe external</code>
<code>$MEDIA = preg_replace('/[\x00-\x1F]+/s','',getID('media',false));</code>
All DokuWiki users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose &quot;&gt;=www-apps/dokuwiki-20061106&quot;</code>
<uri link="">CVE-2006-6965</uri>
<metadata tag="requester" timestamp="Mon, 02 Apr 2007 22:16:33 +0000">
<metadata tag="submitter" timestamp="Tue, 03 Apr 2007 13:45:23 +0000">
<metadata tag="bugReady" timestamp="Tue, 03 Apr 2007 22:29:45 +0000">