PDA

View Full Version : Security fixes: phpMyAdmin 2.6.1-pl1


andyl
02-23-2005, 09:19 PM
PhpMyAdmin 2.6.1-pl1 is out, fixing a few security issues; From the release notes:


- (pl1) Possible XSS attack
- (pl1) Remote file inclusion
- (pl1) Error when blowfish_secret is empty
- (pl1) Wrong parameter count with PHP 4.1.x
- (pl1) (Japanese) Undefined index
- (pl1) (mysqli) Wrong detection of a failed connection


Changing /usr/local/directadmin/scripts/phpMyAdmin.sh as follows worked to get the update:



*** phpMyAdmin.sh Wed Feb 23 20:06:10 2005
--- /tmp/phpMyAdmin.sh Wed Feb 23 20:12:11 2005
***************
*** 2,11 ****

#run this script AFTER the administrator account has been created

! VER=2.6.1
PMAFILE=/usr/local/directadmin/scripts/packages/phpMyAdmin-${VER}.tar.gz
PMADIR=/var/www/html/phpMyAdmin-${VER}
! WEBFILE=http://files.directadmin.com/services/9.0/phpMyAdmin-${VER}.tar.gz

if [ ! -e ${PMAFILE} ]; then
wget -O $PMAFILE $WEBFILE
--- 2,11 ----

#run this script AFTER the administrator account has been created

! VER=2.6.1-pl1
PMAFILE=/usr/local/directadmin/scripts/packages/phpMyAdmin-${VER}.tar.gz
PMADIR=/var/www/html/phpMyAdmin-${VER}
! WEBFILE=http://osdn.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-${VER}.tar.gz

if [ ! -e ${PMAFILE} ]; then
wget -O $PMAFILE $WEBFILE


Andy

andyl
02-24-2005, 10:11 PM
2.6.1-pl2 is out, fixing an instability introduced in pl1; simply change the version in the above diff to upgrade.

Andy

choon
02-24-2005, 10:22 PM
Ops... my bad :p
Should read carefully lol

Chrysalis
02-25-2005, 12:02 PM
thanks for the updates

dan35
03-04-2005, 05:51 AM
phpMyAdmin 2.6.1-pl3 is released

It fixes a problem introduced in -pl2: can no longer update a field whose name starts with "str".
Also included, a fix for the privileges management module: escaping of the "_" character was not properly done, giving a wildcard privilege when editing db-specific privileges with phpMyAdmin.

sander815
03-23-2005, 03:34 PM
so, how do i update my phpmyadmin?

when i run the script it only dls the latest tar

[root@server01.nl]# /usr/local/directadmin/scripts/phpMyAdmin.sh
--00:03:53-- http://files.directadmin.com/services/9.0/phpMyAdmin-2.6.1.tar.gz
=> `/usr/local/directadmin/scripts/packages/phpMyAdmin-2.6.1.tar.gz'
Resolving files.directadmin.com... done.
Connecting to files.directadmin.com[67.17.16.47]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,358,761 [application/x-tar]

100%[====================================================================>] 2,358,761 458.13K/s ETA 00:00

00:03:58 (458.13 KB/s) - `/usr/local/directadmin/scripts/packages/phpMyAdmin-2.6.1.tar.gz' saved [2358761/2358761]

[root@server01.nl]# nano /usr/local/directadmin/scripts/phpMyAdmin.sh

jmstacey
03-23-2005, 07:08 PM
Try:


wget http://www.saevian.com/da_tools/upgrade.phpmyadmin.sh
chmod 755 upgrade.phpmyadmin.sh
./upgrade.phpmyadmin.sh


Edited code (typos), thankyou CrazyMouse & whitehat

CrazyMouse
04-01-2005, 02:49 PM
Originally posted by jmstacey
Try:


wget http://www.saevian.com/da_tools/upgrade.phpmyadmin.sh
chmod 755 upgrade_phpmyadmin.sh
./upgrade_phpmyadmin.sh


You mean

http://www.saevian.com/da_tools/upgrade.phpmyadmin.sh
chmod 755 upgrade.phpmyadmin.sh
./upgrade.phpmyadmin.sh

Works fine, but is it an update? (the newest one?)

jmstacey
04-01-2005, 08:31 PM
Originally posted by CrazyMouse
Works fine, but is it an update? (the newest one?)
Not quite sure what you mean. It contains the latest changes that I've made to the script, but so far no new changes have been required for the latest versions.

whitehat
04-07-2005, 02:04 AM
Originally posted by jmstacey
Try:
wget http://www.saevian.com/da_tools/upgrade.phpmyadmin.sh
chmod 755 upgrade_phpmyadmin.sh
./upgrade_phpmyadmin.sh

Jim.. you may want to edit your post above for the cut-and-paste people. The wget file is upgrade.[DOT]phpmyadmin.sh, but on the chmod and execute lines you have upgrade_UNDERSCOREphpmyadmin.sh

Amended/New:
wget http://www.saevian.com/da_tools/upgrade.phpmyadmin.sh
chmod 755 upgrade.phpmyadmin.sh
./upgrade.phpmyadmin.sh

Crazymouse caught that, but I decided to be more "in your face".

Btw - the script works like a charm.

Thank you very much.

Mike

jmstacey
04-07-2005, 02:18 AM
Fixed :)