Lucene search

K
githubGitHub Advisory DatabaseGHSA-2HPJ-G53M-9GJ6
HistoryFeb 18, 2019 - 11:58 p.m.

closure-util downloads Resources over HTTP

2019-02-1823:58:03
CWE-311
GitHub Advisory Database
github.com
9

CVSS2

9.3

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:M/Au:N/C:C/I:C/A:C

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS

0.002

Percentile

55.3%

Affected versions of closure-util insecurely download an executable over an unencrypted HTTP connection.

In scenarios where an attacker has a privileged network position, it is possible to intercept the response and replace the executable with a malicious one, resulting in code execution on the system running closure-util.

Recommendation

To mitigate this issue:

  1. Install the package using npm’s --ignore-scripts flag.
  2. Navigate to the package directory, and open default-config.json in a text editor
  3. Change the download URLs in the compiler_url and library_url to https equivalents
  4. run npm i in the package directory.

Affected configurations

Vulners
Node
openlayersclosure-utilRange2.0.0-beta.1node.js
VendorProductVersionCPE
openlayersclosure-util*cpe:2.3:a:openlayers:closure-util:*:*:*:*:*:node.js:*:*

CVSS2

9.3

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:M/Au:N/C:C/I:C/A:C

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS

0.002

Percentile

55.3%

Related for GHSA-2HPJ-G53M-9GJ6