Live migration state secret exposed to event and operation viewers (incomplete fix of GHSA-h2j8-4crh-vhfc)
Description
Reported from github.com/
The fix for GHSA-h2j8-4crh-vhfc keeps the per-connection secrets of websocket operations out of the event stream and of operation queries, returning them only in the synchronous response to the operation's creator.
Details
Live and stateful migrations carry a fourth connection, used to transfer the instance's runtime state, whose secret was not covered by that fix. It was still broadcast in operation events and returned by operation queries.
Proof of concept
A client allowed to view a project's events or operations, but not to access its instances, receives the state connection secret of any live or stateful migration started in that project and can connect to the migration operation's websocket with it.
Impact
The state channel carries the checkpointed runtime state of the instance being migrated. The control and filesystem connection secrets are correctly withheld.