Skip to content

bug(platform): sandbox capacity exposes private workspace IDs to Developers through placements #3679

Closed

Description

@yannickmonney

Sandbox capacity exposes private workspace IDs to Developers through placements

Confirmed at 44e0dcf254975286c0e9dea443b5cd1ca6b23347. Suggested severity: P2.

The aggregate-only role can learn private workspace identifiers and their device association. The evidence is limited to those identifiers; it does not demonstrate file access, credentials, project content or cross-organization access.

Reproduce:

  1. Use an organization whose capacity snapshot includes a device placement for a workspace, including one belonging to a private project.
  2. As a Developer, read /api/app/sandbox/capacity?orgId=.
  3. Compare runtimeSessions with placements, and attempt /api/app/sandbox/sessions/view with the same role.

Expected: A Developer’s aggregate capacity response must not disclose workspace identifiers that the same endpoint deliberately removes from runtimeSessions.

Actual: The response spreads the complete snapshot and replaces only runtimeSessions with []. The placements array still returns {sessionId:"private-project-workspace",deviceId:"private-device"}. The same Developer correctly receives 403 for workspace details.

Controls: The Owner/Admin response retains runtimeSessions as intended. A Member is denied 403 for capacity. A Developer is denied 403 for sessions/view but receives the identical private identifier through placements. The controlled snapshot passes the real shared capacity schema and real sandbox client parser.

Source:

Observed output: Admin runtimeSessions1; Developer runtimeSessions[] and placements[private-project-workspace→private-device]; Member capacity403; Developer sessions/view403.

Frozen proof: /Users/yannick/.codex/notes/tale-100-findings/runtime-proof/frozen/batch-01/runtime-api.ts, runtime-api-results.json, runtime-api.log, runtime-ui.test.tsx, runtime-ui.log, with sha256.json. API assertions and all 8 UI/adapter probes passed. Retained fixture database: tale_runtime_proof_20260928_mul1dhlf. The launcher allocates a new database on each replay and does not clean up existing state.

python3 /Users/yannick/.codex/notes/tale-100-findings/runtime-proof/run-runtime-api.py
/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x --no-install vitest run --config /Users/yannick/.codex/notes/tale-100-findings/runtime-proof/vitest.config.ts runtime-ui.test.tsx --maxWorkers=1 --testTimeout=30000 --reporter=verbose

Limits: Pinned local execution only. Actual Hono routes, membership checks, SQL and sandbox client parsing run against a newly allocated, retained QA database. Authentication sessions and final HTTP transport are synthetic. Every sandbox/device HTTP call is intercepted and unexpected calls fail; no sandbox, provider, CLI connection, browser, or production action runs. Component probes use actual React components and write adapters, with controlled query responses. This does not claim observed live-process termination or live-device connectivity.

Deduplication: No matching sandbox developer placement redaction root. Metadata only; no claim of cross-org access or workspace content. Cached 931 all-state issues and 89-entry ledger checked; Final parent review is recorded below.

Independent parent verification

Independently reran the real-router/PostgreSQL API proof and all 8 component/adapter observation and control tests: both commands exited 0 (UI: 2.89 seconds). Logs: runtime-proof/parent-runtime-api.log and runtime-proof/parent-runtime-ui.log. The API dispatcher recorded zero external requests. Live all-state GitHub searches for sandbox cancel, sandbox metrics duplicate, sandbox developer placements, sandbox capacity unavailable and Add device found no matching root. Checked these five reports against one another and the accepted ledger; stop-result handling, join cardinality, placement redaction, unavailable placement display and enrollment correlation are separate causes.

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

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions