<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd"> <glsa id="200705-16"> <title>PhpWiki: Remote execution of arbitrary code</title> <synopsis> A vulnerability has been discovered in PhpWiki allowing for the remote execution of arbitrary code. </synopsis> <product type="ebuild">phpwiki</product> <announced>2007-05-17</announced> <revised count="01">2007-05-17</revised> <bug>174451</bug> <access>remote</access> <affected> <package name="www-apps/phpwiki" auto="yes" arch="*"> <unaffected range="ge">1.3.10-r3</unaffected> <vulnerable range="lt">1.3.10-r3</vulnerable> </package> </affected> <background> <p> PhpWiki is an open source content management system written in PHP. </p> </background> <description> <p> Harold Hallikainen has reported that the Upload page fails to properly check the extension of a file. </p> </description> <impact type="high"> <p> A remote attacker could upload a specially crafted PHP file to the vulnerable server, resulting in the execution of arbitrary PHP code with the privileges of the user running PhpWiki. </p> </impact> <workaround> <p> There is no known workaround at this time. </p> </workaround> <resolution> <p> All PhpWiki users should upgrade to the latest version: </p> <code> # emerge --sync # emerge --ask --oneshot --verbose ">=www-apps/phpwiki-1.3.10-r3"</code> </resolution> <references> <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2024">CVE-2007-2024</uri> <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2025">CVE-2007-2025</uri> </references> <metadata tag="requester" timestamp="2007-05-10T13:26:06Z"> p-y </metadata> <metadata tag="submitter" timestamp="2007-05-11T14:10:41Z"> p-y </metadata> <metadata tag="bugReady" timestamp="2007-05-14T18:47:51Z"> p-y </metadata> </glsa>