ID CVE-2012-5159
Summary phpMyAdmin, 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.
Vulnerable Configurations
  • phpMYAdmin
Base: 7.5 (as of 26-09-2012 - 11:10)
  • 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://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.
exploit-db via4
description phpMyAdmin 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
title phpMyAdmin 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.
last seen 2019-03-20
modified 2017-07-24
published 2012-09-25
reliability Normal
reporter Rapid7
title phpMyAdmin server_sync.php Backdoor
nessus via4
NASL family CGI abuses
description The phpMyAdmin install hosted on the remote web server contains a backdoor script, probably obtained from the cdnetworks-kr-1 mirror site as part of the file 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
title phpMyAdmin server_sync.php Backdoor (PMASA-2012-5)
refmap via4
bid 55672
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