node/test/fixtures/policy
Tobias Nießen e673c03629 policy: use tamper-proof integrity check function
Using the JavaScript Hash class is unsafe because its internals can be
tampered with. In particular, an application can cause
Hash.prototype.digest() to return arbitrary values, thus allowing to
circumvent the integrity verification that policies are supposed to
guarantee.

Add and use a new C++ binding internalVerifyIntegrity() that (hopefully)
cannot be tampered with from JavaScript.

PR-URL: https://github.com/nodejs-private/node-private/pull/462
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
CVE-ID: CVE-2023-38552
2023-10-13 18:03:19 -03:00
..
crypto-default-encoding policy: fix integrity when DEFAULT_ENCODING is set 2021-08-15 11:10:12 -07:00
crypto-hash-tampering policy: use tamper-proof integrity check function 2023-10-13 18:03:19 -03:00
dependencies policy: canonicalize before resolving specifiers 2021-08-19 12:43:21 -05:00
process-binding policy: disable process.binding() when enabled 2023-08-09 14:29:06 -03:00
bad-main.mjs esm: use correct URL for error decoration 2021-04-12 16:47:57 -05:00
canonicalize.mjs policy: canonicalize before resolving specifiers 2021-08-19 12:43:21 -05:00
dep-policy.json
dep.js
main.mjs
multi-deps.js
parent.js