Summary
Stonewuu ai-fusion-video contains an insecure direct object reference (IDOR) issue in project, asset, and script handlers. An authenticated user may access or alter other users' data by supplying object IDs that are not properly scoped to their authorization.
Stonewuu ai-fusion-video contains an insecure direct object reference (IDOR) issue in project, asset, and script handlers. An authenticated user may access or alter other users' data by supplying object IDs that are not properly scoped to their authorization.
Affected context
The issue affects ai-fusion-video versions before 1.3.0 in API handlers for projects, assets, and scripts. Risk arises when these handlers accept object IDs without consistently checking that the requesting user is authorized to access the corresponding objects.
The issue affects ai-fusion-video versions before 1.3.0 in API handlers for projects, assets, and scripts. Risk arises when these handlers accept object IDs without consistently checking that the requesting user is authorized to access the corresponding objects.
Exploit preconditions
- Attack surface: Authenticated API access to project, asset, or script handlers
- Required access: A valid user account; the description does not establish a particular privilege level
- Trigger point: A request that references an object by its ID
- Why exploitation is possible: IDs may be enumerable, and object access may not be scoped or checked against the requesting user's permissions
- Attack surface: Authenticated API access to project, asset, or script handlers
- Required access: A valid user account; the description does not establish a particular privilege level
- Trigger point: A request that references an object by its ID
- Why exploitation is possible: IDs may be enumerable, and object access may not be scoped or checked against the requesting user's permissions
Why this happens
The underlying bug is an object-level authorization failure. A handler that trusts a user-supplied object ID without verifying the requester's access to that specific object can expose or modify another user's data.
This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where an attacker can use a key they control to access resources without the required authorization checks.
The underlying bug is an object-level authorization failure. A handler that trusts a user-supplied object ID without verifying the requester's access to that specific object can expose or modify another user's data.
This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where an attacker can use a key they control to access resources without the required authorization checks.
Potential impact
- Authenticated users may read other users' project, asset, or script data
- Project or related data may be overwritten or cascade-deleted
- Unauthorized users could add themselves as project members
- Data integrity and confidentiality may be affected
- Authenticated users may read other users' project, asset, or script data
- Project or related data may be overwritten or cascade-deleted
- Unauthorized users could add themselves as project members
- Data integrity and confidentiality may be affected
General mitigation guidance
Defensive patterns focus on enforcing authorization for every object-level operation:
- Check ownership, membership, or explicit permissions on the server for each requested object
- Scope data lookups to the authenticated user's authorized resources
- Apply the same authorization checks to read, update, delete, and membership operations
- Avoid relying on unguessable identifiers as a substitute for access control
- Use least-privilege roles and minimize the data and actions available to each account
Defensive patterns focus on enforcing authorization for every object-level operation:
- Check ownership, membership, or explicit permissions on the server for each requested object
- Scope data lookups to the authenticated user's authorized resources
- Apply the same authorization checks to read, update, delete, and membership operations
- Avoid relying on unguessable identifiers as a substitute for access control
- Use least-privilege roles and minimize the data and actions available to each account
How teams detect issues like this
- Review API handlers for lookups using request-supplied IDs that lack object-level authorization checks
- Use static analysis or code review rules to flag unscoped resource queries and inconsistent checks across CRUD operations
- Test with accounts that have different ownership and membership relationships, verifying that one account cannot access another's objects
- Enforce authorization policies consistently in API middleware or shared service-layer checks
- Review API handlers for lookups using request-supplied IDs that lack object-level authorization checks
- Use static analysis or code review rules to flag unscoped resource queries and inconsistent checks across CRUD operations
- Test with accounts that have different ownership and membership relationships, verifying that one account cannot access another's objects
- Enforce authorization policies consistently in API middleware or shared service-layer checks

