-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto,https,tls: disable engines if perms enabled
When the experimental permission model is enabled, the running JavaScript code is subject to certain restrictions, all of which can be bypassed or even disabled by native code due to the nature of the permission model implementation. That is why Node.js native addons are disabled by default when the permission model is enabled. However, the built-in crypto, https, and tls modules still allow loading custom OpenSSL engines. Because OpenSSL engines can execute arbitrary (native) code while being loaded by Node.js, this has the same security implications as allowing native addons. In other words, allowing user code to load OpenSSL engines at runtime effectively enables bypassing any supposed security restrictions. This patch adds appropriate checks before attempting to dynamically load an OpenSSL engine that throw an error if the permission model is enabled. PR-URL: nodejs-private/node-private#409 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> CVE-ID: CVE-2023-30586
- Loading branch information
Showing
5 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters