<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200606-16">
  <title>DokuWiki: PHP code injection</title>
  <synopsis>
    A flaw in DokuWiki's spell checker allows for the execution of arbitrary
    PHP commands, even without proper authentication.
  </synopsis>
  <product type="ebuild">DokuWiki</product>
  <announced>2006-06-14</announced>
  <revised count="01">2006-06-14</revised>
  <bug>135623</bug>
  <access>remote</access>
  <affected>
    <package name="www-apps/dokuwiki" auto="yes" arch="*">
      <unaffected range="ge">20060309-r1</unaffected>
      <vulnerable range="lt">20060309-r1</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    DokuWiki is a simple to use wiki targeted at developer teams,
    workgroups and small companies.
    </p>
  </background>
  <description>
    <p>
    Stefan Esser discovered that the DokuWiki spell checker fails to
    properly sanitize PHP's "complex curly syntax".
    </p>
  </description>
  <impact type="high">
    <p>
    A unauthenticated remote attacker may execute arbitrary PHP commands -
    and thus possibly arbitrary system commands - with the permissions of
    the user running the webserver that serves DokuWiki pages.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All DokuWiki users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=www-apps/dokuwiki-20060309-r1"</code>
  </resolution>
  <references>
    <uri link="https://www.hardened-php.net/advisory_042006.119.html">Hardened-PHP advisory</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2878">CVE-2006-2878</uri>
  </references>
  <metadata tag="requester" timestamp="2006-06-11T22:03:16Z">
    falco
  </metadata>
  <metadata tag="submitter" timestamp="2006-06-12T18:33:06Z">
    frilled
  </metadata>
  <metadata tag="bugReady" timestamp="2006-06-13T21:28:32Z">
    falco
  </metadata>
</glsa>
