Summary
Interstellar has a server-side request forgery vulnerability in its wisp WebSocket functionality when loopback and private IP access are enabled at startup. An unauthenticated attacker may use the WebSocket to create TCP streams to internal services, including cloud metadata services, bypassing the Express password middleware.
Affected context
The issue affects Interstellar deployments where wisp-js starts with allow_loopback_ips and allow_private_ips enabled. The wisp WebSocket can provide a path to internal destinations that is not covered by the Express password middleware, making the risk dependent on startup configuration and network reachability.
Exploit preconditions
- Attack surface: The wisp WebSocket endpoint must be reachable by the attacker.
- Required access: No authentication is required for the described path.
- Trigger point: The attacker opens a wisp WebSocket and requests TCP streams to internal destinations.
- Why exploitation is possible: Startup settings allow loopback and private IP destinations, and the WebSocket path bypasses the Express password middleware.
Why this happens
The application permits server-side connections to loopback and private network addresses based on permissive startup settings. This is an SSRF weakness mapped to CWE-918: a user-accessible feature can cause the server to make requests to destinations that should not be reachable through that feature. The WebSocket route also lacks the authentication enforcement applied by the Express password middleware.
Potential impact
- An attacker may reach services on the host or internal network.
- Cloud metadata services could be exposed to unauthorized requests.
- Internal services could be probed or misused, depending on their access controls.
- Network segmentation protections may be weakened from the application's runtime environment.
General mitigation guidance
Defensive patterns include:
- Disable loopback and private IP access by default, and allow exceptions only when necessary.
- Apply explicit destination allowlists and validate resolved addresses before connecting.
- Enforce authentication and authorization consistently across HTTP and WebSocket routes.
- Restrict outbound network access with egress controls and least-privilege network policies.
- Avoid exposing sensitive services to application workloads unless required.
How teams detect issues like this
- Review startup configuration for settings that permit loopback or private IP destinations.
- Audit WebSocket routes to confirm they enforce the same authentication and authorization policies as other application routes.
- Use static analysis or code review to identify user-controlled destinations passed to network connection APIs without robust validation.
- Monitor outbound connections from application workloads to internal ranges and cloud metadata endpoints.
- Enforce configuration and network policies that deny unnecessary access to private and link-local address ranges.

