ID CVE-2012-5159
Summary phpMyAdmin 3.5.2.2, as distributed by the cdnetworks-kr-1 mirror during an unspecified time frame in 2012, contains an externally introduced modification (Trojan Horse) in server_sync.php, which allows remote attackers to execute arbitrary PHP code via an eval injection attack.
References
Vulnerable Configurations
  • phpMYAdmin 3.5.2.2
    cpe:2.3:a:phpmyadmin:phpmyadmin:3.5.2.2
CVSS
Base: 7.5 (as of 26-09-2012 - 11:10)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
exploit-db via4
description phpMyAdmin 3.5.2.2 server_sync.php Backdoor. CVE-2012-5159. Webapps exploit for php platform
id EDB-ID:21834
last seen 2016-02-02
modified 2012-10-10
published 2012-10-10
reporter metasploit
source https://www.exploit-db.com/download/21834/
title phpMyAdmin 3.5.2.2 server_sync.php Backdoor
metasploit via4
description This module exploits an arbitrary code execution backdoor placed into phpMyAdmin v3.5.2.2 through a compromised SourceForge mirror.
id MSF:EXPLOIT/MULTI/HTTP/PHPMYADMIN_3522_BACKDOOR
last seen 2019-03-20
modified 2017-07-24
published 2012-09-25
reliability Normal
reporter Rapid7
source https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/phpmyadmin_3522_backdoor.rb
title phpMyAdmin 3.5.2.2 server_sync.php Backdoor
nessus via4
NASL family CGI abuses
NASL id PHPMYADMIN_PMASA_2012_5.NASL
description The phpMyAdmin install hosted on the remote web server contains a backdoor script, probably obtained from the cdnetworks-kr-1 SourceForge.net mirror site as part of the file phpMyAdmin-3.5.2.2-all-languages.zip. An unauthenticated, remote attacker can use this backdoor to execute arbitrary PHP code on the remote host, subject to the privileges under which the web server operates. Note that the bogus distribution file is also reported to have contained a modified version of the file js/cross_framing_protection.js, although Nessus has not tested for that.
last seen 2019-02-21
modified 2018-11-15
plugin id 62312
published 2012-09-26
reporter Tenable
source https://www.tenable.com/plugins/index.php?view=single&id=62312
title phpMyAdmin server_sync.php Backdoor (PMASA-2012-5)
refmap via4
bid 55672
confirm http://www.phpmyadmin.net/home_page/security/PMASA-2012-5.php
misc http://sourceforge.net/blog/phpmyadmin-back-door/
mlist [oss-security] 20120925 Re: CVE Request - phpMyAdmin: PMASA-2012-5 incident
Last major update 25-01-2013 - 23:57
Published 25-09-2012 - 18:55
Back to Top