Summary
The run-debug endpoint enforced organization membership but did not enforce the platform-admin restriction used by the dashboard. An authenticated member who knew the ID of a run in their organization could obtain the run’s plaintext root environment API key and, when present, its parent environment’s key. This bypassed dashboard RBAC and could expose another member’s personal Development key.
The disclosed credentials grant API access to the affected environment, not platform-admin access. No cross-tenant access.
Root cause
The run-debug loader verified that the signed-in user belonged to the run’s organization, but did not enforce the platform-admin restriction used by the dashboard. Hiding Debug run in the UI did not restrict access to the server endpoint.
The run-ops refactor replaced an explicit selection of non-secret environment fields with an internal environment resolver. The loader returned the resolver’s full result in both response branches, including the root environment API key and, where present, the parent environment’s key. The debug dialog did not use the environment object.
Impact
An authenticated organization member who knew the ID of a run in their organization could obtain a root API key they were not authorized to read. This could bypass environment-level RBAC or expose another member’s personal Development key. The disclosed key grants broad read and write access through the affected environment’s API. It does not grant platform-admin access or access to unrelated organizations.
Summary
The run-debug endpoint enforced organization membership but did not enforce the platform-admin restriction used by the dashboard. An authenticated member who knew the ID of a run in their organization could obtain the run’s plaintext root environment API key and, when present, its parent environment’s key. This bypassed dashboard RBAC and could expose another member’s personal Development key.
The disclosed credentials grant API access to the affected environment, not platform-admin access. No cross-tenant access.
Root cause
The run-debug loader verified that the signed-in user belonged to the run’s organization, but did not enforce the platform-admin restriction used by the dashboard. Hiding Debug run in the UI did not restrict access to the server endpoint.
The run-ops refactor replaced an explicit selection of non-secret environment fields with an internal environment resolver. The loader returned the resolver’s full result in both response branches, including the root environment API key and, where present, the parent environment’s key. The debug dialog did not use the environment object.
Impact
An authenticated organization member who knew the ID of a run in their organization could obtain a root API key they were not authorized to read. This could bypass environment-level RBAC or expose another member’s personal Development key. The disclosed key grants broad read and write access through the affected environment’s API. It does not grant platform-admin access or access to unrelated organizations.