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
session_list exposes session names to every holder of the proxy token #4908
session_list filters sessions only by the tenant label that the client sends (packages/daemon/src/sessions/session-routing.ts). On a shared agent-device proxy, every holder of the proxy token can list the session names of every tenant.
The lease-id admission rule in the 0.22 fix (ADR 0007, "Lease ownership" in packages/daemon/docs/remote-device-lease-contracts.md) stops a session name from granting access. A name list still helps an attacker pick a target and shows other clients' activity.
Expected: on a daemon that serves several clients through one token, session_list shows only sessions whose lease id the caller sends, or sessions with no lease. Alternatively, a host in front of the proxy filters the list.
Repro: connect proxy --tenant e2b --session agentA then open. From a second state dir with the same token, run a raw session_list with --tenant e2b --session-isolation tenant. The output includes agentA.
The issue reports an existing security/authorization defect: session_list filters only by tenant label, allowing any holder of a shared proxy token to enumerate other tenants' session names. It provides a concrete repro and expected filtering behavior, so a maintainer can act on it.
Activity
apex-sentinel-staging commentedon Nov 21, 2026
Apex Sentinel · Issue review
Suggested label:
bugThe issue reports an existing security/authorization defect:
session_listfilters only by tenant label, allowing any holder of a shared proxy token to enumerate other tenants' session names. It provides a concrete repro and expected filtering behavior, so a maintainer can act on it.Required sections
thymikee commentedon Nov 21, 2026
Follow-up from #4911 (lease id is the session credential on 0.22).
thymikee commentedon Nov 22, 2026
Fixed by #4917 (merged into 0.22): session_list shows a leased session only to the caller that sends its lease id.