AikidoSec-safe-chain/packages/safe-chain/src/registryProxy
Xander Van Raemdonck 19d2dee5c9
Bind registry proxy to loopback only
Without an explicit host, `server.listen(0)` binds to every interface,
turning safe-chain's unauthenticated forward proxy into an open relay
while `aikido-*` commands are running. Anyone reachable on the network
can use it to hit the victim's localhost, intranet, or cloud metadata
endpoints. The advertised HTTPS_PROXY URL already used `localhost`
(loopback), but the listener itself was wide open.

Bind to 127.0.0.1 explicitly and update the advertised URL to match.
Add a regression test that verifies the listener refuses connections
on non-loopback interfaces.
2026-04-30 20:37:41 +02:00
..
interceptors Fix PyPI minimum-age fallback when cached metadata bypasses rewrite 2026-04-17 09:37:40 -07:00
certBundle.js Undo dot in comment 2026-03-19 15:42:09 +01:00
certBundle.spec.js Fix some issues 2025-12-08 15:18:06 -08:00
certUtils.js Adapt per review 2026-04-14 11:30:29 -07:00
certUtils.spec.js Adapt per review 2026-04-14 11:30:29 -07:00
getConnectTimeout.js Add tests for: not shortcircuiting timeout on imds endpoint. 2025-12-09 15:46:37 +01:00
http-utils.js Adapt per review 2026-04-02 08:56:20 -07:00
isImdsEndpoint.js Don't repeatedly call isImdsEndpoint 2025-12-05 12:12:22 +01:00
mitmRequestHandler.js Adapt per review 2026-04-02 08:56:20 -07:00
mitmRequestHandler.spec.js Initial 2026-04-01 14:32:36 -07:00
plainHttpProxy.js Remove @ts-expect-error suppressions 2025-11-03 13:57:29 +01:00
registryProxy.connect-tunnel.spec.js fix: use true connection timeout instead of idle timeout 2025-12-18 12:53:49 +01:00
registryProxy.http-proxy.spec.js Add tests for the proxy 2025-10-22 15:41:33 +02:00
registryProxy.js Bind registry proxy to loopback only 2026-04-30 20:37:41 +02:00
registryProxy.loopback.spec.js Bind registry proxy to loopback only 2026-04-30 20:37:41 +02:00
registryProxy.mitm.spec.js Fix tests for mitm registryproxy 2026-01-22 11:58:52 +01:00
tunnelRequestHandler.js fix: use true connection timeout instead of idle timeout 2025-12-18 12:53:49 +01:00