Koozali.org: home of the SME Server

[CONTRIB UPDATE] phpmyadmin-multiuser


Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #1 on: November 03, 2006, 11:55:03 AM »
Quote
Announcement-ID: PMASA-2006-6
Date: 2006-11-01

Summary:
XSS vulnerability

Description:
We received a security advisory from Stefan Esser (sesser@hardened-php.net) and we wish to thank him for his work.

It was possible to produce XSS via a special URL containing UTF-7 codes

Severity:
We consider this vulnerability to be serious.

Affected versions:
2.6.4 to 2.9.0.2.

Solution:
Upgrade to phpMyAdmin 2.9.0.3 or newer.

For further information and in case of questions, please contact the phpMyAdmin team. Our website is http://www.phpmyadmin.net/.
Regards,
William

IF I give advise.. It's only if it was me....





Offline sandoz

  • **
  • 47
  • +0/-0
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #6 on: November 23, 2006, 09:38:58 PM »
whats the difference with the non multiuser phpmyadmin?

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #7 on: November 23, 2006, 11:09:14 PM »
phpmyadmin is phpmyadmin.

The difference is the way it's setup to log you in.

Code: [Select]
$cfg['Servers'][$i]['auth_type'] string ['HTTP'|'cookie'|'config']
    Whether config or cookie or HTTP authentication should be used for this server.

        * 'config' authentication ($auth_type = 'config') is the plain old way: username and password are stored in config.inc.php.
        * 'cookie' authentication mode ($auth_type = 'cookie') as introduced in 2.2.3 allows you to log in as any valid MySQL user with the help of cookies. Username and password are stored in cookies during the session and password is deleted when it ends. This can also allow you to log in in arbitrary server if $cfg['AllowArbitraryServer'] enabled.
        * 'HTTP' authentication (was called 'advanced' in older versions) ($auth_type = 'HTTP') as introduced in 1.3.0 allows you to log in as any valid MySQL user via HTTP-Auth.
        * 'signon' authentication mode ($auth_type = 'signon') as introduced in 2.10.0 allows you to log in from prepared PHP session data. This is useful for implementing single signon from another application. Sample way how to seed session is in signon example: scripts/signon.php. You need to configure session name and signon URL to use this authentication method.

    Please see the install section on "Using authentication modes" for more information.
Regards,
William

IF I give advise.. It's only if it was me....

Offline sandoz

  • **
  • 47
  • +0/-0
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #8 on: November 24, 2006, 03:42:46 PM »
i must be stupid, but i am not able to change the admin password

when i use the change password field, the password is not changed at all

when i add a 2nd admin, and try to tedelte the first i get
SQL-query:
DROP USER 'admin'@ 'localhost';
#1268 - Can't drop one or more of the requested users

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #9 on: November 24, 2006, 09:10:57 PM »
Hello,

Try the following command as root at command line:
Code: [Select]
 mysql --execute="grant all privileges on *.* to admin@localhost identified by 'admin' WITH GRANT OPTION"
  mysql --execute="flush privileges"

After that command, admin password should be 'admin'.


Regards.

Offline Teviot

  • *
  • 610
  • +0/-0
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #10 on: November 27, 2006, 01:36:07 AM »
I have just installed this version on SME 7.  I noticed at the bottom the following message.

Code: [Select]
You have enabled mbstring.func_overload in your PHP configuration. This option is incompatible with phpMyAdmin and might cause some data to be corrupted!

Is this easy to fix and how would i go about it?
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #11 on: November 27, 2006, 02:03:29 AM »
I wouldn't think this contrib is responsible for that.

Look in /etc/php.ini

If it's in there, find out how it got there

/etc/e-smith/templates/etc/php.ini

or

/etc/e-smith/templates-custom/etc/php.ini

and why.

You may also find it in /etc/httpd/conf/httpd.conf but according to the php manual
Quote
Note:  It is not recommended to use the function overloading option in the per-directory context, because it's not confirmed yet to be stable enough in a production environment and may lead to undefined behaviour.
Regards,
William

IF I give advise.. It's only if it was me....

Offline Teviot

  • *
  • 610
  • +0/-0
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #12 on: November 27, 2006, 02:32:11 AM »
would it be best just to leave it for the moment
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #13 on: November 27, 2006, 05:03:56 AM »
Hello,

You can also edit file
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/86PhpmyadminmultiAlias
and add the line
Code: [Select]
php_admin_value mbstring.func_overload 0
at the last section.

Regards.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[CONTRIB UPDATE] phpmyadmin-multiuser
« Reply #14 on: January 10, 2007, 05:13:34 AM »
Quote from: "MasterSleepy"
Hello,

You can also edit file
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/86PhpmyadminmultiAlias
and add the line
Code: [Select]
php_admin_value mbstring.func_overload 0
at the last section.

Regards.


Hello MasterSleepy,

You might have to change the location of your template.
http://forums.contribs.org/index.php?topic=35156.0

Check with
Code: [Select]
/sbin/e-smith/audittools/templates
Regards,
William

IF I give advise.. It's only if it was me....