Skip to content

session_list exposes session names to every holder of the proxy token #4908

Closed

Description

@thymikee

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.

Activity

  1. apex-sentinel-staging commented on Nov 21, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: bug

    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.

    Required sections

    • Steps to reproduce
    • Expected and actual behavior (missing)
    • Version or environment (missing)
  2. thymikee commented on Nov 21, 2026

    @thymikee
    MemberAuthor

    Follow-up from #4911 (lease id is the session credential on 0.22).

  3. added
    bug
    on Nov 22, 2026
  4. thymikee commented on Nov 22, 2026

    @thymikee
    MemberAuthor

    Fixed by #4917 (merged into 0.22): session_list shows a leased session only to the caller that sends its lease id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions