#6639·uppy

companion: Bind OAuth callback WebSocket delivery to the initiating session

Author: qxprakashCreated Sep 30, 2026Updated Sep 30, 2026

Companion accepts a caller-supplied authCallbackToken and lets WebSocket clients subscribe without session or origin verification. Anyone knowing that identifier can receive the encrypted Companion bearer token when OAuth completes.

A local test with simulated OAuth completion confirmed that two cookie-free WebSocket clients received the same token, which was accepted in an unrelated HTTP session. Standard Uppy identifiers are random; exploitation requires a known or attacker-selected identifier.

Affected code: controllers/connect.ts, controllers/send-token.ts, server/socket.ts.

Expected: only the client bound to the initiating OAuth session can receive the result, with delivery consumed once.