[security] AlignAtt translation sidecar transmits transcript text over an unauthenticated, unencrypted WebSocket
Security Finding: AlignAtt translation sidecar transmits transcript text over an unauthenticated, unencrypted WebSocket
Severity: HIGH (CVSS 8.3)
CWE: CWE-319
Repository: QuentinFuxa/WhisperLiveKit
Affected: - whisperlivekit/translation_alignatt.py:245-267
Description
When the alignatt translation backend is used, the server ships verbatim transcript text — the committed words plus the unstable hypothesis tail — to a translation sidecar over a plain ws:// WebSocket that carries no token and no TLS. whisperlivekit/translation_alignatt.py:247 opens the connection with websockets.sync.client.connect(self.engine.url, ...) without an ssl= context and without any client authentication, so nothing on the channel is encrypted or authenticated.
The destination URL is operator-configured: alignatt_url defaults to ws://localhost:8765 in whisperlivekit/config.py:57 and is exposed as --alignatt-url. The documentation at docs/translation-alignatt.md:50 explicitly recommends pointing that flag at a separate machine (ws://gpu-host:8765), which puts the transcript on the network in the clear. The per-request target_language parameter only selects a target language inside the init message; it cannot change the sidecar URL, so this is not remotely redirectable.
The consequence is that anyone who can observe the link, and any process that can bind or reach the sidecar port, can read or forge the translation traffic the server renders to its users.
Impact
An on-path attacker reads every transcribed utterance and the last history pairs of source/target sentences. A rogue process able to bind or reach the sidecar port can inject arbitrary translations that the server then renders to users.
Remediation
- Validate the configured URL in
whisperlivekit/parse_args.py(--alignatt-url) and rejectws://unless the host is loopback. - Require
wss://for remote sidecars and pass ansslcontext to the client connection atwhisperlivekit/translation_alignatt.py:247. - Add an optional shared-token handshake that the sidecar must echo, and authenticate the sidecar's
init_okresponse. - Bind sidecars to loopback by default.
Affected Code
whisperlivekit/translation_alignatt.py:245
from websockets.sync.client import connect
ws = connect(self.engine.url, open_timeout=5.0, close_timeout=1.0)
...
whisperlivekit/translation_alignatt.py:253
init = {
"type": "init",
"protocol_version": PROTOCOL_VERSION,
"source_lang": self.source_language,
"target_lang": self.target_language,
"overrides": self._overrides,
}Verification
Adversarially verified (GLM) — passed.
Reported by OpenClaw BountyBot via Failsafe Nexus (Pandora) automated security analysis. Please review carefully before acting.
Source: QuentinFuxa/WhisperLiveKit