<?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>196237</bug_id>
          
          <creation_ts>2007-10-18 01:40 0000</creation_ts>
          <short_desc>dev-db/phpmyadmin &lt; 2.11.1.2 &quot;server_status.php&quot; Cross-Site Scripting (CVE-2007-5589)</short_desc>
          <delta_ts>2007-10-25 18:50:48 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://www.digitrustgroup.com/advisories/TDG-advisory071015a.html</bug_file_loc>
          <status_whiteboard>B4 [noglsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>195707</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>che_guevara_3@bk.ru</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>boss.gentoo@bosso.org</cc>
    
    <cc>mysql-bugs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>che_guevara_3@bk.ru</who>
            <bug_when>2007-10-18 01:40:07 0000</bug_when>
            <thetext>2.11.1.2 is now released to fix this vulnerability and some other bugs.
More information about the problem at http://www.digitrustgroup.com/advisories/TDG-advisory071015a.html
The exact fix:
http://phpmyadmin.svn.sourceforge.net/viewvc/phpmyadmin/trunk/phpMyAdmin/server_status.php?r1=10704&amp;r2=10797&amp;view=patch


Reproducible: Always

Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>che_guevara_3@bk.ru</who>
            <bug_when>2007-10-18 01:49:31 0000</bug_when>
            <thetext>Sorry for the noise, but to correct myself, it wasn&apos;t only server_status.php that the phpMyAdmin team fixed up, it was some other files as you can see at
http://phpmyadmin.svn.sourceforge.net/viewvc/phpmyadmin?view=rev&amp;revision=10796

Added mysql and webapp to CC</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2007-10-18 05:13:26 0000</bug_when>
            <thetext>Phew...

phpmyadmin-2.11.1.2 in CVS

You know the drill...

Targets: alpha amd64 hppa ppc ppc64 sparc x86 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2007-10-18 16:53:59 0000</bug_when>
            <thetext>Stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-10-18 17:21:10 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2007-10-18 18:01:29 0000</bug_when>
            <thetext>ppc64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jurek@gentoo.org</who>
            <bug_when>2007-10-20 22:15:33 0000</bug_when>
            <thetext>x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-10-20 23:58:52 0000</bug_when>
            <thetext>CVE-2007-5589 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-5589):
  Muliple cross-site scripting (XSS) vulnerabilities in phpMyAdmin before
  2.11.1.2 allow remote attackers to inject arbitrary web script or HTML via
  certain input available in (1) PHP_SELF in (a) server_status.php, and (b)
  grab_globals.lib.php, (c) display_change_password.lib.php, and (d)
  common.lib.php in libraries/; and certain input available in PHP_SELF and (2)
  PATH_INFO in libraries/common.inc.php.  NOTE: there might also be other
  vectors related to (3) REQUEST_URI.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beandog@gentoo.org</who>
            <bug_when>2007-10-21 15:27:06 0000</bug_when>
            <thetext>amd64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jmbsvicetto@gentoo.org</who>
            <bug_when>2007-10-21 23:08:01 0000</bug_when>
            <thetext>dev-db/phpmyadmin-2.11.1.2

1. Emerges on SPARC64.
2. No collisions.
3. Package includes no tests
4. After struggling with the package for a long time to get the config working, the file must be on /var/www/&lt;hostname&gt;/htdocs/phpmyadmin/config.inc.php and not .../phpmyadmin/config/config.inc.php, it worked fine.
I&apos;ve created a few tables, through the wizard and with sql commands, changed column definitions searched for data, browsed the tables and dropped a table.

emerge --info:
Portage 2.1.3.9 (default-linux/sparc/sparc64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.17-gentoo-r8 sparc64)
=================================================================
System uname: 2.6.17-gentoo-r8 sparc64 sun4u
Timestamp of tree: Sat, 20 Oct 2007 11:50:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS=&quot;sparc&quot;
CBUILD=&quot;sparc-unknown-linux-gnu&quot;
CFLAGS=&quot;-O2 -mcpu=ultrasparc3 -pipe&quot;
CHOST=&quot;sparc-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /var/bind&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-O2 -mcpu=ultrasparc3 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;collision-protection distlocks metadata-transfer parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.gentoo-pt.org/pub/gentoo ftp://mirrors1.netvisao.pt/gentoo/ http://trumpetti.tut.atm.fi/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://atl64.acores.pt/gentoo-portage&quot;
USE=&quot;bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog midi mudflap nls nptl nptlonly openmp pam pcre ppds pppd reflection session sparc spl tcpd test truetype-fonts type1-fonts unicode vhosts xorg&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;dummy fbdev glint mach64 mga r128 radeon sunbw2 suncg14 suncg3 suncg6 sunffb sunleo tdfx v4l voodoo&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>yoswink@gentoo.org</who>
            <bug_when>2007-10-24 08:22:07 0000</bug_when>
            <thetext>Stable on sparc.

In alpha we are having some weird problems with mysql, so please give as a couple of days to see if can fix them first.

Drop me a comment if this bug is *really* urgent.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>yoswink@gentoo.org</who>
            <bug_when>2007-10-24 18:05:56 0000</bug_when>
            <thetext>Stable in alpha.

Our problem with mysql seems to be kernel related so phpmyadmin doesn&apos;t have anything to do with it. Sorry for the delay.

@security: we are the last arch, ready for you.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-10-24 22:25:32 0000</bug_when>
            <thetext>Welcome to the polling booth - It&apos;s a vote!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-10-25 06:35:24 0000</bug_when>
            <thetext>Oh, a vote here as well:) I tend to vote YES.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2007-10-25 06:58:02 0000</bug_when>
            <thetext>The insecure versions were removed from the tree. webapps is done here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-10-25 07:39:25 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; Oh, a vote here as well:) I tend to vote YES.
&gt; 

Huh? yes for a simple xss? Is there a specific reason? We got at least one vuln like this every week on a random web-app, and generally speaking we don&apos;t release glsas for just an xss... So voting NO unless you explain me why we should have a glsa for that :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-10-25 18:50:48 0000</bug_when>
            <thetext>I just had to be a bit positive:) Everyone here in .dk tend to vote NO whenever they get the chance and without any specific reason.

TBH you&apos;re absolutely correct so I&apos;m reversing to full NO and closing.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>