You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remote desktop bearer token is serializable and leaks via JSON.stringify #22
RemoteDesktopTransport stores the remote bearer token in a TypeScript private field. private is erased at compile time — the property is a normal
enumerable own property at runtime, so anything that serializes a transport
emits the token in plaintext.
AssertionError: expected '{"environment":"remote-desktop","prof…' not to contain 'token-a'
Received: {"environment":"remote-desktop","profileId":"profile-a",
"baseUrl":"https://server-a.example","token":"token-a",
"bridge":{},"destroyed":false}
Impact
Any code path that stringifies a transport — structured logging, telemetry, a
crash report, React devtools state, an error boundary that dumps context —
writes a live remote-access bearer token wherever that output lands.
Fix
Use a true private #token field, which does not exist as an own property at
runtime and therefore cannot be serialized. Included in #20.
Activity