Overview
eta-remote is the remote access and support tool used across Pardus ETAP interactive smartboard deployments and enterprise environments. Due to missing server-side and host-side authorization (CWE-862 / CWE-602), permission gating for screen viewing (MessageType.IMAGE) and microphone audio (MessageType.AUDIO) was enforced solely in browser JavaScript. Any client connecting to a session room could receive live JPEG screen frames and PCM audio packets before host approval—or even when those permissions were explicitly unchecked.
Affected Components
src/user/viewer.jssrc/gui/Control.pysrc/server/server.py
Root Cause
Three compounding design flaws exposed media streams prior to authorization:
- Client-Side Enforcement Only (
src/user/viewer.js): The browser viewer suppressed rendering only in local UI code:
// src/user/viewer.js
case MessageType.IMAGE:
if (!perms.image) return;
// Render frame...
-
Premature Capture Start (
src/gui/Control.py): As soon as aCONNECTmessage arrived in the room—before the desktop user interacted with the approval dialog—the host setctx.wait = Falseand immediately startedcapture.py(screen) andpulse.py(microphone). -
Unfiltered Relay Broadcast (
src/server/server.py): The WebSocket relay server forwarded incoming media frames to every connected peer in the room without verifying per-client permission state:
# src/server/server.py (Vulnerable)
if msg_type == MessageType.PERMS:
...
else:
recipients = clients - {client} # Broadcasts IMAGE/AUDIO to all room clients
Impact
- Unauthorized Screen & Audio Surveillance: A modified client that skips the
if (!perms.image) return;andif (!perms.audio) return;browser checks receives dozens of JPEG screen frames and PCM microphone packets per second immediately upon joining a room. - ETAP & Enterprise Exposure: Exam material, personal data, confidential documents displayed on smartboards or support workstations, and classroom/office conversations can be captured silently without the desktop user’s consent.
Remediation
Resolved in commit 2eb231d by enforcing target authorization at the relay and protocol layer:
- Clients are not added to the broadcast target list (
append_target) until the host explicitly grants permission. protocol.pyintroducespack_targets()/unpack_targets()so the relay server deliversIMAGEandAUDIOframes strictly to authorized client sockets.