<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">

<glsa id="200503-04">
  <title>phpWebSite: Arbitrary PHP execution and path disclosure</title>
  <synopsis>
    Remote attackers can upload and execute arbitrary PHP scripts, another flaw
    reveals the full path of scripts.
  </synopsis>
  <product type="ebuild">phpwebsite</product>
  <announced>March 01, 2005</announced>
  <revised>May 22, 2006: 02</revised>
  <bug>83297</bug>
  <access>remote</access>
  <affected>
    <package name="www-apps/phpwebsite" auto="yes" arch="*">
      <unaffected range="ge">0.10.0-r2</unaffected>
      <vulnerable range="lt">0.10.0-r2</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    phpWebSite provides a complete web site content management system.
    </p>
  </background>
  <description>
    <p>
    NST discovered that, when submitting an announcement, uploaded files
    aren't correctly checked for malicious code. They also found out that
    phpWebSite is vulnerable to a path disclosure.
    </p>
  </description>
  <impact type="high">
    <p>
    A remote attacker can exploit this issue to upload files to a directory
    within the web root. By calling the uploaded script the attacker could
    then execute arbitrary PHP code with the rights of the web server. By
    passing specially crafted requests to the search module, remote
    attackers can also find out the full path of PHP scripts.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All phpWebSite users should upgrade to the latest available version:
    </p>
    <code>
    # emerge --sync 
    # emerge --ask --oneshot --verbose &quot;&gt;=www-apps/phpwebsite-0.10.0-r2&quot;</code>
  </resolution>
  <references>
    <uri link="http://secunia.com/advisories/14399/">Secunia Advisory SA14399</uri>
    <uri link="http://phpwebsite.appstate.edu/index.php?module=announce&amp;ANN_id=922&amp;ANN_user_op=view">phpWebSite announcement</uri>
    <uri link="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-0565">CVE-2005-0565</uri>
    <uri link="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-0572">CVE-2005-0572</uri>
  </references>
  <metadata tag="requester" timestamp="Fri, 25 Feb 2005 21:23:09 +0000">
    koon
  </metadata>
  <metadata tag="submitter" timestamp="Sun, 27 Feb 2005 12:09:41 +0000">
    DerCorny
  </metadata>
</glsa>