node/test/cctest
Tobias Nießen 2b433af094
inspector: harden IP address validation again
Use inet_pton() to parse IP addresses, which restricts IP addresses
to a small number of well-defined formats. In particular, octal and
hexadecimal number formats are not allowed, and neither are leading
zeros. Also explicitly reject 0.0.0.0/8 and ::/128 as non-routable.

Refs: https://hackerone.com/reports/1710652
CVE-ID: CVE-2022-43548
PR-URL: https://github.com/nodejs-private/node-private/pull/354
Reviewed-by: Michael Dawson <midawson@redhat.com>
Reviewed-by: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-by: Rich Trott <rtrott@gmail.com>
2022-11-01 22:26:28 +00:00
..
node_test_fixture.cc src: add abstract IsolatePlatformDelegate 2019-11-20 19:02:55 +01:00
node_test_fixture.h src: initialize inspector before RunBootstrapping() 2020-04-14 11:03:29 +01:00
test_aliased_buffer.cc src: ignore GCC -Wcast-function-type for v8.h 2020-04-14 11:04:56 +01:00
test_base64.cc buffer: add base64url encoding option 2021-08-31 10:55:05 -04:00
test_base_object_ptr.cc src: introduce custom smart pointers for BaseObjects 2019-11-19 13:47:29 +01:00
test_environment.cc src: add way to get IsolateData and allocator from Environment 2021-08-31 10:54:56 -04:00
test_inspector_socket.cc inspector: harden IP address validation again 2022-11-01 22:26:28 +00:00
test_inspector_socket_server.cc inspector: added --inspect-publish-uid 2019-06-03 18:15:04 +03:00
test_js_native_api_v8.cc node-api: cctest on v8impl::Reference 2021-09-04 12:37:05 +02:00
test_json_utils.cc src: move JSONWriter into its own file 2020-04-07 16:25:13 +01:00
test_linked_binding.cc src: fix multiple AddLinkedBinding() calls 2021-06-14 13:34:10 +02:00
test_node_api.cc node-api: cctest on v8impl::Reference 2021-09-04 12:37:05 +02:00
test_node_postmortem_metadata.cc src: expose BaseObject::kInternalFieldCount in post-mortem metadata 2021-05-01 12:25:04 +02:00
test_per_process.cc tools: fix js2c regression 2019-06-02 12:03:40 +02:00
test_platform.cc src: add public APIs to manage v8::TracingController 2020-06-30 09:34:12 -07:00
test_sockaddr.cc net: allow net.BlockList to use net.SocketAddress objects 2021-08-31 10:55:02 -04:00
test_traced_value.cc src: apply clang-tidy rule modernize-deprecated-headers 2019-02-27 05:35:53 +01:00
test_url.cc src: fix leading backslash bug in URL 2021-05-01 09:44:50 +02:00
test_util.cc test: update old comment style test_util.cc 2020-12-15 20:15:11 +00:00