Summary
LinkAce's API link update controller passes all request fields to the repository, including user_id, even though that field is not allowed by the validated update request. An authenticated user who is authorized to update a link may change its ownership to another user or to a nonexistent account.
Affected context
The issue occurs in LinkAce's API link update flow, where LinkController::update() passes all request data to the repository. It affects deployments where an authenticated API user can update a link and the API accepts a user_id value that is not part of the validated update fields. The web update controller is not affected because it passes only validated fields.
Exploit preconditions
- Attack surface: LinkAce API link update endpoint
- Required access: An authenticated API account authorized to update the target link
- Trigger point: The API controller passes request data to the repository during a link update
- Why exploitation is possible: The controller uses all request fields rather than restricting updates to validated fields, allowing
user_idto be changed
Why this happens
The API controller forwards the full request data to the repository, allowing a client-controlled user_id to be mass-assigned even though it is not an allowed field in the validated update request. This is an improper control of dynamically assigned attributes, corresponding to CWE-915. Because the field controls link ownership, the behavior is also related to authorization bypass through a user-controlled key (CWE-639).
Potential impact
- A link could be transferred into another user's bookmark collection.
- A link could be assigned to a nonexistent user and become orphaned from a real account.
- Users may lose access to links they previously managed.
- Link ownership and account data could become inconsistent.
General mitigation guidance
Mitigation generally centers on limiting which fields an update operation can accept.
Common defensive patterns include:
- Pass only explicitly validated and allowlisted fields to persistence methods.
- Treat ownership and other authorization-sensitive fields as server-controlled rather than client-editable.
- Verify that the requesting user is authorized to modify both the target object and any permitted ownership changes.
- Apply least privilege to API accounts and keep update operations narrowly scoped.
- Use secure-by-default request schemas that reject unexpected fields.
How teams detect issues like this
High-level detection approaches include:
- Static analysis for controllers that pass entire request objects or unfiltered request data into model or repository updates.
- Code review checks for fillable ownership fields that are not included in validated request schemas.
- Tests that verify unexpected fields, particularly ownership identifiers, are rejected or ignored.
- API policy enforcement that requires explicit authorization for changes to ownership-sensitive attributes.
Automated code review tools may help identify broad mass-assignment patterns.

