<?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>98328</bug_id>
          
          <creation_ts>2005-07-08 02:55 0000</creation_ts>
          <short_desc>dev-db/phppgadmin: Input Validation Hole in &apos;formLanguage&apos; (CAN-2005-2256)</short_desc>
          <delta_ts>2005-07-26 12:38:17 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://securitytracker.com/alerts/2005/Jul/1014414.html</bug_file_loc>
          <status_whiteboard>C3 [noglsa] jaervosz</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>vorlon@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>pgsql-bugs@gentoo.org</cc>
    
    <cc>web-apps@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>vorlon@gentoo.org</who>
            <bug_when>2005-07-08 02:55:02 0000</bug_when>
            <thetext>phpPgAdmin Input Validation Hole in &apos;formLanguage&apos; Discloses Files to Remote Users
SecurityTracker Alert ID:  1014414
SecurityTracker URL:  http://securitytracker.com/id?1014414
CVE Reference:  GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Jul 7 2005
Impact:  Disclosure of system information, Disclosure of user information
Exploit Included:  Yes  
Version(s): 3.5.3 and prior versions
Description:  A vulnerability was reported in phpPgAdmin. A remote user can view files on the target system.

The script does not properly validate user-supplied input in the &apos;formLanguage&apos; parameter. A remote user can supply a specially crafted parameter value containing encoded directory traversal characters to view files on the target system.

A demonstration exploit URL is provided:

formUsername=username&amp;formPassword=password&amp;formServer=0
&amp;formLanguage=%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f/etc/pa sswd%00&amp;submitLogin=Login

SecurityFocus reported this vulnerability. No credit was provided.
Impact:  A remote user can view files on the target system with the privileges of the target web service.
Solution:  No solution was available at the time of this entry.
Vendor URL:  phppgadmin.sourceforge.net/ (Links to External Site)
Cause:  Input validation error 

_______

postgresql/web-apps pls validate/advise</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vorlon@gentoo.org</who>
            <bug_when>2005-07-08 02:56:05 0000</bug_when>
            <thetext>oops... stupid me... reassigning ;-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2005-07-18 05:11:36 0000</bug_when>
            <thetext> Version 3.5.4
 -------------
 
 Bugs
 * Fix security hole in include() of language file:
    http://secunia.com/advisories/15941/
   Check now requires that the language filename be in the list
   of known allowed filenames.
 * Fix that functions returning cstring were not being listed
 * Make parsing of PostgreSQL 1-dimensional arrays correct.  Makes
   named function parameter use more reliable.
 * Fix downloading of the results of multiline queries.

Postgres / web-apps peeps : anyone interested in herding that package and bump
to the secure version ? We&apos;ll probably remove it from portage if noone takes it.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2005-07-18 07:36:30 0000</bug_when>
            <thetext>--------------------------------------------------------------------------
Debian Security Advisory DSA 759-1                     security@debian.org
http://www.debian.org/security/                             Martin Schulze
July 18th, 2005                         http://www.debian.org/security/faq
--------------------------------------------------------------------------

Package        : phppgadmin
Vulnerability  : missing input sanitising
Problem-Type   : remote
Debian-specific: no
CVE ID         : CAN-2005-2256
BugTraq ID     : 14142

A vulnerability has been discovered in phppgadmin, a set of PHP
scripts to administrate PostgreSQL over the WWW, that can lead to
disclose sensitive information.  Successful exploitation requires that
&quot;magic_quotes_gpc&quot; is disabled.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2005-07-18 07:49:06 0000</bug_when>
            <thetext>mholzer already bumped it to 3.5.4 on 15-Jul-2005</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2005-07-18 07:53:33 0000</bug_when>
            <thetext>Oops. In fact it was already inportage.

Arches, please test and mark stable :
Target KEYWORDS=&quot;x86 ppc sparc hppa amd64&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2005-07-18 08:47:30 0000</bug_when>
            <thetext>sparc stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2005-07-19 04:38:34 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>killerfox@gentoo.org</who>
            <bug_when>2005-07-19 11:26:41 0000</bug_when>
            <thetext>Stable on hppa</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2005-07-20 05:15:04 0000</bug_when>
            <thetext>x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kugelfang@gentoo.org</who>
            <bug_when>2005-07-20 15:21:33 0000</bug_when>
            <thetext>Sorry for the delay, stable on amd64.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dercorny@gentoo.org</who>
            <bug_when>2005-07-20 15:23:39 0000</bug_when>
            <thetext>Ready for GLSA vote. I&apos;ve no opinion yet.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-07-20 22:15:52 0000</bug_when>
            <thetext>AFAIR magic_quotes_gpc is enabled by default -&gt; downgrading severity. 
 
I tend to vote NO. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dercorny@gentoo.org</who>
            <bug_when>2005-07-23 05:05:44 0000</bug_when>
            <thetext>1/2 No.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2005-07-26 12:38:17 0000</bug_when>
            <thetext>1/2 not too... closing.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>