Summary
dataCycle-CORE allows authenticated API users to have permissions evaluated as other users by passing a user_email parameter, bypassing intended authorization checks.
When a target user owns collections, this behaviour can expose their data and, in some V4 routes, enables cross-user modification of collection contents without proper object-level authorization.
Affected context
This vulnerability affects deployments of dataCycle-CORE up to and including version 25.07.3 where the collection API:
- Accepts a
user_emailparameter to determine which user's permissions to evaluate - Exposes collection data via API endpoints for authenticated users
- In V4, provides
add_itemandremove_itemroutes that do not enforce object-levelauthorize!checks
It arises in contexts where API clients can control the effective user identity used for permission evaluation instead of having it derived from their own authenticated session.
Exploit preconditions
- Attack surface: dataCycle-CORE collection API endpoints, including permission evaluation and collection modification routes.
- Required access: Valid authenticated API access token for any user; no additional elevated privileges needed.
- Trigger point: Sending requests that include a
user_emailcorresponding to another user who owns collections, then using known collection IDs withadd_itemorremove_itemin V4. - Why exploitation is possible: The API trusts caller-supplied
user_emailfor permission evaluation and omits object-levelauthorize!checks on certain collection modification routes, allowing actions to be carried out in the context of other users.
Why this happens
The core issue is an authorization design flaw where identity and permission checks rely on caller-controlled parameters instead of the authenticated principal, aligning with CWE-285 (Improper Authorization).
By allowing user_email to dictate whose permissions are evaluated and failing to enforce per-object authorization in modification routes, the system breaks the binding between authentication and authorization.
Abstractly, this reflects a pattern where resource-level operations do not consistently verify that the requesting user is entitled to view or modify the targeted object, leading to cross-user access.
Potential impact
- Authenticated users may read collections owned by other users.
- Attackers could add items to another user's collections.
- Attackers could remove or tamper with items in another user's collections.
- Data integrity within shared data management environments could be compromised.
- Unauthorized changes may propagate into downstream data consumers and processes.
General mitigation guidance
Effective mitigation focuses on restoring a strong binding between authenticated identities and authorization decisions.
Recommended patterns include:
- Deriving the effective user strictly from the authenticated access token or session, not from user-controlled request parameters.
- Enforcing object-level authorization checks (
authorize!-style guards) on all collection read and modification routes, ensuring callers can only act on resources they own or are explicitly allowed to access. - Centralizing authorization logic so that per-object checks cannot be bypassed by alternative controllers or code paths.
- Applying least-privilege principles to API roles so that generic authenticated accounts cannot access or modify other users' collections by design.
- Conducting regular authorization modelling and threat reviews when adding new API parameters that influence identity or scope.
How teams detect issues like this
Detection typically combines design review and technical inspection:
- Reviewing API controllers and routes for any parameters (such as
user_email) that influence identity or permission evaluation, ensuring they are not user-controlled. - Performing code reviews to verify consistent use of object-level authorization checks before returning or mutating collection data.
- Applying static analysis or policy-based checks that flag authorization decisions made on request parameters rather than authenticated principals.
- Logging and monitoring for anomalous patterns where a single API client frequently accesses or modifies collections belonging to multiple distinct users.
- Incorporating automated security testing in CI/CD that exercises multi-tenant scenarios and validates correct enforcement of per-user boundaries.

