Описание
closure-util downloads Resources over HTTP
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:
- Install the package using npm's
--ignore-scriptsflag. - Navigate to the package directory, and open
default-config.jsonin a text editor - Change the download URLs in the
compiler_urlandlibrary_urltohttpsequivalents - run
npm iin the package directory.
Пакеты
closure-util
<= 2.0.0-beta.1
Отсутствует
Связанные уязвимости
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.