F-2025-0004·configuration

Hardcoded WebSocket endpoints without integrity validation

Fixedpentesttypescriptbackend
TL;DR

WebSocket endpoint URLs were hardcoded in the codebase and consumed without integrity checks (no message signing or origin validation), making MITM or compromised-CDN scenarios harder to detect.

Severity
MEDIUM
Impact
MEDIUM
Likelihood
MEDIUM
Method
MManual review
CAT.
Complexity
LOW
Exploitability
MEDIUM
02Section · Description

Description

WebSocket endpoint URLs were hardcoded in the codebase. Once the connection was established, messages were consumed without integrity validation (no per-message signatures, no origin or token-bound validation), so a MITM or compromised CDN scenario that swapped the WebSocket destination or tampered with messages would not be detected by the client.

03Section · Impact

Impact

Increased blast radius if any layer between the client and the configured endpoint is compromised. State derived from WebSocket messages could be manipulated, leading to UI desync or user actions taken on falsified data.

04Section · Recommendation

Recommendation

  • Move endpoint URLs into environment configuration rather than hardcoding.
  • Sign WebSocket messages on the server or include a session-bound HMAC the client verifies.
  • Validate the origin of incoming messages against the expected backend identity.

Ipal Network: Confirmed. Zealynx: Fixed.

Status
Fixed
F-2025-0004