Executive Summary

Summary
Title ForeScout CounterACT SecureConnector agent is vulnerable to privilege escalation
Informations
Name VU#768331 First vendor Publication 2016-12-07
Vendor VU-CERT Last vendor Modification 2016-12-07
Severity (Vendor) N/A Revision M

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:L/AC:L/Au:N/C:C/I:C/A:C)
Cvss Base Score 7.2 Attack Range Local
Cvss Impact Score 10 Attack Complexity Low
Cvss Expoit Score 3.9 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Vulnerability Note VU#768331

ForeScout CounterACT SecureConnector agent is vulnerable to privilege escalation

Original Release date: 07 Dec 2016 | Last revised: 07 Dec 2016

Overview

On Windows endpoints, the SecureConnector agent is vulnerable to privilege escalation whereby an authenticated unprivileged user can obtain administrator privileges on the endpoint by causing the SecureConnector agent to execute arbitrary code.

Description

On Windows endpoints, the SecureConnector agent must run under the local SYSTEM account or another administrator account in order to enable full functionality of the agent. The typical configuration is for the agent to run as a Windows service under the local SYSTEM account. The SecureConnector agent runs various plugin scripts and executables on the endpoint in order to gather and report information about the host to the CounterACT management appliance. The SecureConnector agent downloads these scripts and executables as needed from the CounterACT management appliance and runs them on the endpoint.

CWE-378: Creation of Temporary File with Insecure Permissions - CVE-2016-9485
The SecureConnector agent fails to set any permissions on downloaded file objects. This allows a malicious user to take ownership of any of these files and make modifications to it, regardless of where the files are saved. These files are then executed under SYSTEM privileges. A malicious unprivileged user can overwrite these executable files with malicious code before the SecureConnector agent executes them, causing the malicious code to be run under the SYSTEM account.

CWE-379: Creation of Temporary File in Directory with Incorrect Permissions - CVE-2016-9486
By default, these executable files are downloaded to and run from the %TEMP% directory of the currently logged on user, despite the fact that the SecureConnector agent is running as SYSTEM. Aside from the downloaded scripts, the SecureConnector agent runs a batch file with SYSTEM privileges from the temp directory of the currently logged on user. If the naming convention of this script can be derived, which is made possible by placing it in a directory to which the user has read access, it may be possible overwrite the legitimate batch file with a malicious one before SecureConnector executes it.

It is possible to change this directory by setting the the configuration property config.script_run_folder.value in the local.properties configuration file on the CounterACT management appliance, however the batch file which is run does not follow this property.

The CVSS score below represents CVE-2016-9485.

Impact

A local unprivileged attacker may gain SYSTEM privileges on an affected machine.

Solution

Apply an update
The vendor has released the HPS Inspection Engine Plugin, version 10.4.1.1 to address the vulnerability.

Vendor Information (Learn More)

VendorStatusDate NotifiedDate Updated
ForeScoutAffected-07 Dec 2016
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

GroupScoreVector
Base6.6AV:L/AC:M/Au:S/C:C/I:C/A:C
Temporal5.9E:POC/RL:ND/RC:C
Environmental4.4CDP:N/TD:M/CR:ND/IR:ND/AR:ND

References

  • https://www.forescout.com/products/counteract/
  • https://cwe.mitre.org/data/definitions/378.html
  • https://cwe.mitre.org/data/definitions/379.html

Credit

Thanks to Brendan Saulsbury, Ariel Montano Cardenas, and Matthew Hyde for reporting this vulnerability.

This document was written by Trent Novelly.

Other Information

  • CVE IDs:CVE-2016-9485CVE-2016-9486
  • Date Public:07 Dec 2016
  • Date First Published:07 Dec 2016
  • Date Last Updated:07 Dec 2016
  • Document Revision:8

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.

Original Source

Url : http://www.kb.cert.org/vuls/id/768331

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-264 Permissions, Privileges, and Access Controls

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 1

Alert History

If you want to see full details history, please login or register.
0
1
2
Date Informations
2018-09-10 17:23:39
  • Multiple Updates
2018-07-14 00:21:04
  • Multiple Updates
2016-12-08 00:23:02
  • First insertion