Scope organization Seer RPC methods to accessible projects
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Steps to Reproduce
- Create an organization with open membership disabled.
- Create two teams and one project for each team.
- Add a user to only the first team.
- Enable
organizations:seer-public-rpc. - Authenticate as that user with
org:read. - Call an organization-level Seer RPC method that reads project-backed data.
- Observe that the method can return or query information associated with the second team's project.
Expected Result
Organization Seer RPC methods should only operate on projects the caller can access.
Explicit project IDs or slugs should be validated before dispatch. When the request does not contain a project selection, the endpoint should inject the caller's accessible projects rather than defaulting to every project in the organization.
Methods that cannot be safely constrained to accessible projects should require global project access or deny the request.
Project selection for this JSON-RPC endpoint should come only from the JSON body.
The endpoint should ignore project and projectSlug URL query parameters.
Actual Result
When organizations:seer-public-rpc is enabled, organization membership and
org:read access are sufficient to reach organization-level Seer RPC methods.
These methods do not consistently apply the caller's project restrictions:
get_organization_projectscan return every active project in the organization.- Cross-project handlers such as trace and query methods can operate across projects belonging to teams the caller has not joined.
- Some query handlers default to
ALL_ACCESS_PROJECT_ID, allowing their internal API requests to use organization-wide project selection. - Issue-, event-, replay-, team-, and project-related handlers do not consistently verify access to the resource's associated project before dispatch.
- When project selection is absent from the JSON body, URL
projectorprojectSlugparameters can unintentionally influence project resolution.
As a result, a member of a closed-membership organization may enumerate or read telemetry from another team's private project despite lacking access to that project.
Product Area
Other
Link
No response
DSN
No response
Version
26.9
Source: getsentry/sentry