mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
lib,test: redact proxy credentials in tunnel errors
Refs: https://hackerone.com/reports/3720313 Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: https://github.com/nodejs-private/node-private/pull/867 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> CVE-ID: CVE-2026-48615
This commit is contained in:
1 parent
8d36d522b2
commit
9308084fcb
2 files changed
+11
-2
No files matched your search
@@ -53,6 +53,9 @@ const { code, signal, stderr } = await runProxiedRequest({
|
||||
// The proxy client should get an error from proxy authentication failure.
|
||||
// Since the process exits cleanly but with an error, check for any error output
|
||||
assert.match(stderr, /407 Proxy Authentication Required/);
|
||||
assert.match(stderr, /via http:\/\/localhost:\d+\/?/);
|
||||
assert.doesNotMatch(stderr, /baduser/);
|
||||
assert.doesNotMatch(stderr, /badpass/);
|
||||
assert.strictEqual(code, 0);
|
||||
assert.strictEqual(signal, null);
|
||||
|
||||
|
||||
Reference in new issue
Block a user