closure-utils is Utilities for Closure Library based projects. closure-utils downloads binary resources over HTTP, which leaves it…
hackerone·CWE-310·Published 2018-06-01
closure-utils is Utilities for Closure Library based projects. closure-utils downloads binary resources over HTTP, which leaves it vulnerable to MITM attacks. It may be possible to cause remote code execution (RCE) by swapping out the requested binary with an attacker controlled binary if the attacker is on the network or positioned in between the user and the remote server.
closure-utils is Utilities for Closure Library based projects. closure-utils downloads binary resources over HTTP, which leaves it vulnerable to MITM attacks. It may be possible to cause remote code execution (RCE) by swapping out the requested binary with an attacker controlled binary if the attacker is on the network or positioned in between the user and the remote server.
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 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.
closure-utils es Utilities para proyectos basados en la biblioteca Closure. closure-utils descarga recursos binarios por HTTP, lo que lo deja vulnerable a ataques MITM. Podría ser posible provocar la ejecución remota de código (RCE) cambiando el binario solicitado por otro controlado por el atacante si éste están en la red o posicionado entre el usuario y el servidor remoto.
| Version | Type | Source | Base | Exp | Impact | Vector |
|---|---|---|---|---|---|---|
| 2.0 | Primary | NVD | 9.3 | 8.6 | 10.0 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
| 3.1 | Primary | NVD | 8.1 | 2.2 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | Secondary | GHSA | 8.1 | — | — | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |