vendor:
PhpMyAdmin
by:
Greg Ose, pagvac, egypt
7.5
CVSS
HIGH
Code Injection
Code Injection
CWE
Product Name: PhpMyAdmin
Affected Version From: 2.11.x
Affected Version To: 2.11.9.5 and 3.x
Patch Exists: YES
Related CWE: CVE-2009-1151
CPE: a:phpmyadmin:phpmyadmin
Metasploit:
https://www.rapid7.com/db/vulnerabilities/suse-cve-2009-1151/, https://www.rapid7.com/db/vulnerabilities/freebsd-vid-06f9174f-190f-11de-b2f0-001c2514716c/, https://www.rapid7.com/db/vulnerabilities/gentoo-linux-cve-2009-1151/, https://www.rapid7.com/db/vulnerabilities/phpmyadmin-cve-2009-1151/
Tags: deserialization,kev,vulhub,cve,cve2009,phpmyadmin,rce
CVSS Metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
Nuclei References:
https://www.phpmyadmin.net/security/PMASA-2009-3/, https://github.com/vulhub/vulhub/tree/master/phpmyadmin/WooYun-2016-199433, http://phpmyadmin.svn.sourceforge.net/viewvc/phpmyadmin/branches/MAINT_2_11_9/phpMyAdmin/scripts/setup.php?r1=11514&r2=12301&pathrev=12301, http://www.phpmyadmin.net/home_page/security/PMASA-2009-3.php, https://nvd.nist.gov/vuln/detail/CVE-2009-1151
Nuclei Metadata: {'max-request': 1, 'vendor': 'phpmyadmin', 'product': 'phpmyadmin'}
Platforms Tested: php
2009
PhpMyAdmin Config File Code Injection
This module exploits a vulnerability in PhpMyAdmin's setup feature which allows an attacker to inject arbitrary PHP code into a configuration file. The original advisory says the vulnerability is present in phpMyAdmin versions 2.11.x < 2.11.9.5 and 3.x < 3.1.3.1; this module was tested on 3.0.1.1.The file where our payload is written (phpMyAdmin/config/config.inc.php) is not directly used by the system, so it may be a good idea to either delete it or copy the running config (phpMyAdmin/config.inc.php) over it after successful exploitation.
Mitigation:
It is recommended to update to a patched version of PhpMyAdmin (2.11.9.5 or 3.1.3.1 or later). Additionally, users should ensure that the configuration file (config.inc.php) is properly secured and not accessible by unauthorized users.