Summary
Chartbrew's project authorization check can trust a caller-supplied team ID instead of verifying that the requested project belongs to that team. An authenticated team owner or admin may use this mismatch to access or change another team's project, and the shared delete route may allow cross-tenant deletion.
Affected context
The issue affects project routes and related authorization checks that accept user-controlled project identifiers. It becomes risky when authorization relies on a caller-provided team ID without confirming the target project's actual team, and update handlers accept request fields without an appropriate allow-list.
Exploit preconditions
- Attack surface: Authenticated project routes and the shared project delete route
- Required access: A valid account with an owner or admin role on the caller's own team; default self-signup may provide this role
- Required information: A victim project identifier
- Trigger point: A request that pairs the victim project ID with the caller's own team ID in the request body
- Why exploitation is possible: The permission check evaluates the caller-selected team rather than confirming the target project's team; requests without the body team ID are rejected
Why this happens
The authorization logic uses a caller-controlled team identifier as the basis for access decisions without binding that identifier to the requested project. This is a form of CWE-639: Authorization Bypass Through User-Controlled Key. The update path compounds the issue by mass-assigning request fields without a project field allow-list, allowing sensitive ownership and access settings to be changed.
Potential impact
- An attacker may re-parent a victim project into their own team and gain read and write access.
- Project data could be exposed, or a project could be made public or have its password protection removed.
- The victim team may lose access to the project.
- Cross-tenant deletion could cause loss of project data or availability.
General mitigation guidance
Defensive patterns include binding every authorization decision to the resource's server-verified tenant or team, rather than trusting identifiers supplied by the caller. Update operations can use explicit field allow-lists and reject changes to ownership or access-control fields unless separately authorized. Prefer deny-by-default resource checks, minimize privileged roles, and limit public sharing and deletion capabilities to explicitly authorized actions.
How teams detect issues like this
- Review authorization code for checks based on caller-supplied team or tenant IDs without a server-side resource ownership check.
- Use static analysis or code review to identify mass assignment and update handlers that accept unrestricted request bodies.
- Add policy tests that verify cross-tenant reads, updates, re-parenting, sharing changes, and deletions are denied.
- Monitor for project ownership changes, unexpected public exposure, password-protection changes, and deletion attempts across team boundaries.

