1. /
  2. Security Response/
  3. phpMyAdmin 'setup.php' PHP Code Injection Vulnerability

phpMyAdmin 'setup.php' PHP Code Injection Vulnerability

Risk

High

Date Discovered

March 25, 2009

Description

phpMyAdmin is prone to a remote PHP code-injection vulnerability. An attacker can exploit this issue to inject and execute arbitrary malicious PHP code in the context of the webserver process. This may facilitate a compromise of the application and the underlying system; other attacks are also possible. Versions prior to phpMyAdmin 2.11.9.5 and 3.1.3.1 are vulnerable.

Technologies Affected

  • Debian Linux 4.0
  • Debian Linux 4.0 Alpha
  • Debian Linux 4.0 Amd64
  • Debian Linux 4.0 Arm
  • Debian Linux 4.0 Armel
  • Debian Linux 4.0 Hppa
  • Debian Linux 4.0 Ia-32
  • Debian Linux 4.0 Ia-64
  • Debian Linux 4.0 M68k
  • Debian Linux 4.0 Mips
  • Debian Linux 4.0 Mipsel
  • Debian Linux 4.0 Powerpc
  • Debian Linux 4.0 S/390
  • Debian Linux 4.0 Sparc
  • Debian Linux 5.0
  • Debian Linux 5.0 Alpha
  • Debian Linux 5.0 Amd64
  • Debian Linux 5.0 Arm
  • Debian Linux 5.0 Armel
  • Debian Linux 5.0 Hppa
  • Debian Linux 5.0 Ia-32
  • Debian Linux 5.0 Ia-64
  • Debian Linux 5.0 M68k
  • Debian Linux 5.0 Mips
  • Debian Linux 5.0 Mipsel
  • Debian Linux 5.0 Powerpc
  • Debian Linux 5.0 S/390
  • Debian Linux 5.0 Sparc
  • Gentoo Linux
  • Mandriva Corporate Server 4.0
  • Mandriva Corporate Server 4.0.0 X86 64
  • Red Hat Fedora 10
  • Red Hat Fedora 9
  • SuSE openSUSE 10.3
  • SuSE openSUSE 11.0
  • phpMyAdmin phpMyAdmin 2.11.1
  • phpMyAdmin phpMyAdmin 2.11.1.1
  • phpMyAdmin phpMyAdmin 2.11.1.2
  • phpMyAdmin phpMyAdmin 2.11.2.1
  • phpMyAdmin phpMyAdmin 2.11.2.2
  • phpMyAdmin phpMyAdmin 2.11.4
  • phpMyAdmin phpMyAdmin 2.11.5
  • phpMyAdmin phpMyAdmin 2.11.5.1
  • phpMyAdmin phpMyAdmin 2.11.5.2
  • phpMyAdmin phpMyAdmin 2.11.7
  • phpMyAdmin phpMyAdmin 2.11.8
  • phpMyAdmin phpMyAdmin 2.11.8.1
  • phpMyAdmin phpMyAdmin 2.11.9
  • phpMyAdmin phpMyAdmin 2.11.9 .1
  • phpMyAdmin phpMyAdmin 2.11.9 4
  • phpMyAdmin phpMyAdmin 2.11.9.2
  • phpMyAdmin phpMyAdmin 2.11.9.3
  • phpMyAdmin phpMyAdmin 2.2.3
  • phpMyAdmin phpMyAdmin 2.2.6
  • phpMyAdmin phpMyAdmin 2.5.1
  • phpMyAdmin phpMyAdmin 2.5.4
  • phpMyAdmin phpMyAdmin 2.5.5
  • phpMyAdmin phpMyAdmin 2.5.5 -Rc1
  • phpMyAdmin phpMyAdmin 2.5.5 -Rc2
  • phpMyAdmin phpMyAdmin 2.5.5 Pl1
  • phpMyAdmin phpMyAdmin 2.5.6 -Rc1
  • phpMyAdmin phpMyAdmin 2.5.7
  • phpMyAdmin phpMyAdmin 2.6.0
  • phpMyAdmin phpMyAdmin 2.6.0 .0Pl1
  • phpMyAdmin phpMyAdmin 2.6.0 .0Pl2
  • phpMyAdmin phpMyAdmin 2.6.0 .0Pl3
  • phpMyAdmin phpMyAdmin 2.6.1
  • phpMyAdmin phpMyAdmin 2.6.1 -Rc1
  • phpMyAdmin phpMyAdmin 2.6.1 Pl1
  • phpMyAdmin phpMyAdmin 2.6.1 Pl3
  • phpMyAdmin phpMyAdmin 2.6.2
  • phpMyAdmin phpMyAdmin 2.6.2 -Rc1
  • phpMyAdmin phpMyAdmin 2.6.3 -Pl1
  • phpMyAdmin phpMyAdmin 2.6.4 -Pl1
  • phpMyAdmin phpMyAdmin 2.6.4 -Pl3
  • phpMyAdmin phpMyAdmin 2.6.4 -Pl4
  • phpMyAdmin phpMyAdmin 2.6.4 -Rc1
  • phpMyAdmin phpMyAdmin 2.7.0
  • phpMyAdmin phpMyAdmin 2.7.0 -Pl1
  • phpMyAdmin phpMyAdmin 2.7.0 .0-Beta1
  • phpMyAdmin phpMyAdmin 2.7.0-Pl2
  • phpMyAdmin phpMyAdmin 2.8.0 .1
  • phpMyAdmin phpMyAdmin 2.8.0 .3
  • phpMyAdmin phpMyAdmin 2.8.0 .4
  • phpMyAdmin phpMyAdmin 2.8.1
  • phpMyAdmin phpMyAdmin 2.8.2
  • phpMyAdmin phpMyAdmin 3.0.0
  • phpMyAdmin phpMyAdmin 3.0.1
  • phpMyAdmin phpMyAdmin 3.0.1.1
  • phpMyAdmin phpMyAdmin 3.1.1 0

Recommendations

Block external access at the network boundary, unless external parties require service.

If global access isn't needed, filter access to the affected computer at the network boundary. Restricting access to only trusted computers and networks might greatly reduce the likelihood of a successful exploit.

Deploy network intrusion detection systems to monitor network traffic for malicious activity.

Deploy NIDS to detect and block attacks and anomalous activity such as requests containing suspicious URI sequences. Since the webserver may log such requests, review its logs regularly.

Run all software as a nonprivileged user with minimal access rights.

To limit the consequences of a successful exploit, run server processes within a restricted environment using facilities such as chroot or jail.
Vendor updates are available. Please see the references for more information.

Credits

Greg Ose
Copyright © Symantec Corporation.
Permission to redistribute this alert electronically is granted as long as it is not edited in any way unless authorized by Symantec Security Response. Reprinting the whole or part of this alert in any medium other than electronically requires permission from secure@symantec.com.

Disclaimer
The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information.
Symantec, Symantec products, Symantec Security Response, and secure@symantec.com are registered trademarks of Symantec Corp. and/or affiliated companies in the United States and other countries. All other registered and unregistered trademarks represented in this document are the sole property of their respective companies/owners.

Threat Intelligence

Subscribe
Follow the Threat Intelligence Twitter feed
STAR Antimalware Protection Technologies
Internet Security Threat Report, Volume 17
Symantec DeepSight Screensaver