Support,
How do I prevent phpMyAdmin 2.10.1 from saving the MySQL Root Password as
Plain Text in the current /tmp Session file? I have auth method cookie. I
don't store my password in the config file.
I searched the Help forum and the internet. It appears that the problem was
identified back in 2003 with version 2.5 and earlier. I could not find the
fix listed anywhere. I would upgrade if a newer version corrects this
problem.
Jim
Reference:
http://www.net-security.org/vuln.php?id=2765
****
From: Lorenzo Manuel Hernandez Garcia-Hierro <security@lorenzohgh.com>
****
SECURITY HOLES FOUND and PROOFS OF CONCEPT:
-----------------------------------------
.... I discover that phpMyAdmin don't encode the mysql user and password ,
it save the data in plain text without encoding !....
------------------
| INFORMATION |
| ENCODING |
| WEAKNESS |
------------------
phpMyAdmin doesn't use any encoding type like BASE64/RadiX64 , only saves
the user data ( username and password too ) in plain text without any
encoding.
The authentication token in the cookie is this:
pma_cookie_username=[UserName]; lang=[language]-iso-8859-1;
pma_cookie_password=[your password]
A sample is:
pma_cookie_username=god; lang=en-iso-8859-1;
pma_cookie_password=doesnotexist
-----------------
| SOLUTIONS ;-p |
-----------------
****
- Second: Use a partial / secure encoding for athentication tokens like
RadiX64 ( not very secure but an attacker
can think that is a more secure algorithm , obscurity ;-D ) .
****
Marc Delisle
Security / Restrictions
None
Public
|
Date: 2008-03-30 20:37
|
|
Date: 2008-03-30 16:01
|
|
Date: 2008-03-30 15:42
|
|
Date: 2008-03-29 15:19
|
|
Date: 2008-03-29 15:12
|
|
Date: 2008-03-29 05:00
|
|
Date: 2008-03-29 01:24
|
|
Date: 2008-03-25 18:49
|
|
Date: 2008-03-25 18:08
|
|
Date: 2008-03-12 16:31
|
| Filename | Description | Download |
|---|---|---|
| sensitive.diff | sensitive.diff | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2008-04-05 20:41 | lem9 |
| status_id | Open | 2008-04-05 20:41 | lem9 |
| resolution_id | None | 2008-03-29 15:09 | lem9 |
| summary | Sensitive data in session files | 2008-03-29 15:09 | lem9 |
| priority | 5 | 2008-03-29 15:09 | lem9 |
| summary | MySQL Root Password as Plain Text in Session Files | 2008-03-29 05:32 | lem9 |
| is_private | 1 | 2008-03-29 05:32 | lem9 |
| File Added | 272337: sensitive.diff | 2008-03-29 05:00 | lem9 |
| File Deleted | 271804: | 2008-03-29 04:59 | lem9 |
| category_id | Security / Restrictions | 2008-03-27 16:35 | lem9 |
| data_type | 377408 | 2008-03-27 16:35 | lem9 |
| File Added | 271804: sensible.diff | 2008-03-25 18:49 | lem9 |
| is_private | 0 | 2008-03-12 16:31 | lem9 |
| assigned_to | nobody | 2008-03-12 16:31 | lem9 |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use