<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>198446</bug_id>
          <alias>CVE-2007-5934</alias>
          <creation_ts>2007-11-08 11:36 0000</creation_ts>
          <short_desc>dev-php/PEAR-MDB2 &lt; 2.5.0_alpha1 - dangerous coding in blob url handling (CVE-2007-5934)</short_desc>
          <delta_ts>2008-03-06 09:47:47 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://pear.php.net/bugs/bug.php?id=10024</bug_file_loc>
          <status_whiteboard>B3 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jakub@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>php-bugs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-11-08 11:36:17 0000</bug_when>
            <thetext>From the upstream bug:

&lt;snip&gt;
Description:
------------

When inserting a blob and the value turns out to be a URL, MDB2 will replace the value with a handle to the URL and the driver will fetch the URL and put its contents into the blob field instead of the URL itself literally.

A programmer using MDB2 could easily make a textarea as an input to a blob field. but if he was unaware of the situation (and LOB handling is currently not very well documented), a visitor could input a URL and the application will fetch the URL instead of storing the literal URL itself. and the URL here could be something not normally accessible to the public (when the web server 
is on DMZ, it could have access to a resource behind the firewall).

or worse, it looks like it also accepts file:/ URLs. he could input something like file:///etc/passwd or file:///etc/my.cnf and the server will happily get it for him.
&lt;snip&gt;

This is fixed in 2.5.0_alpha1 (added an option to turn lob_allow_url_include off by default)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-11-08 16:43:25 0000</bug_when>
            <thetext>InCVS now; and since the current stable deps won&apos;t work w/ the new dev-php/PEAR-MDB2...

Target keywords: alpha amd64 hppa ia64 ppc ppc64 sparc x86
dev-php/PEAR-MDB2-2.5.0_alpha1
dev-php/PEAR-MDB2_Driver_mssql-1.3.0_alpha1
dev-php/PEAR-MDB2_Driver_mysql-1.5.0_alpha1
dev-php/PEAR-MDB2_Driver_mysqli-1.5.0_alpha1
dev-php/PEAR-MDB2_Driver_pgsql-1.5.0_alpha1
dev-php/PEAR-MDB2_Driver_sqlite-1.5.0_alpha1

Target keywords: amd64 x86
dev-php/PEAR-MDB2_Driver_oci8-1.5.0_alpha1

Enjoy! ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-11-08 17:01:44 0000</bug_when>
            <thetext>Thanks, Jakub.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2007-11-08 20:29:45 0000</bug_when>
            <thetext>ppc64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-11-09 17:20:37 0000</bug_when>
            <thetext>alpha/ia64/sparc/x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2007-11-10 16:14:36 0000</bug_when>
            <thetext>Stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beandog@gentoo.org</who>
            <bug_when>2007-11-14 19:06:06 0000</bug_when>
            <thetext>amd64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-11-18 18:01:34 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-11-19 22:06:17 0000</bug_when>
            <thetext>It&apos;s information leak, but leaking the whole /etc/passwd is not nice, so voting yes.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-12-02 12:32:32 0000</bug_when>
            <thetext>voting YES too, request filed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-12-09 21:14:17 0000</bug_when>
            <thetext>GLSA 200712-05</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-03-06 09:47:47 0000</bug_when>
            <thetext>Does not affect current (2008.0) release. Removing release.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>