Summary
A missing authorization check in AVideo's media import functionality may let an uploader access or manipulate files belonging to other users. Depending on the deployment and the files referenced, this could expose protected video content and associated sidecar files or allow media deletion.
Affected context
The issue is associated with AVideo's objects/import.json.php endpoint and related file-handling functionality. It becomes risky when an uploader can reference folders under videos/ without the application verifying that the requested media belongs to that user or is otherwise authorized for access. Related behavior described for objects/listFiles.json.php and the import endpoint may expose file listings, sidecar contents, or media deletion capabilities.
Exploit preconditions
- Attack surface: AVideo media import and file-management endpoints
- Required access: An uploader account or equivalent access to the relevant functionality
- Trigger point: A request that references files or folders under
videos/, or invokes file listing or deletion behavior - Why exploitation is possible: The application may not enforce per-user authorization before performing operations on the referenced files
Why this happens
The underlying issue is a missing authorization check, mapping to CWE-862. The application accepts a file or folder reference and performs an operation without adequately confirming that the authenticated user is permitted to access or modify that resource. This is an insecure object-level access pattern: possession of a reference is treated as sufficient authority.
Potential impact
- Private, unlisted, password-protected, or pay-per-view videos may be copied or exposed
.txtor.htmlsidecar files may be read and reveal descriptions or other information- File listings may disclose media or directory information
- Victims' media may be deleted
- Content confidentiality, availability, or revenue may be affected
General mitigation guidance
Defensive patterns focus on enforcing authorization for every requested resource, rather than trusting client-supplied paths or identifiers.
- Apply server-side ownership and access-policy checks before import, listing, reading, or deletion operations.
- Use secure-by-default access controls that deny access unless permission is explicitly established.
- Resolve file references within an approved storage boundary and avoid treating user-supplied paths as trusted.
- Limit endpoint permissions and service privileges to the minimum required.
- Keep private media and sidecar files inaccessible through alternate file-handling paths.
How teams detect issues like this
- Review file import, listing, and deletion handlers for authorization checks tied to the specific requested resource.
- Use static analysis or code review rules to flag file operations based on client-supplied paths without nearby access-control decisions.
- Test access policies across users and media visibility states, including private and paid content.
- Monitor logs for cross-user file references, unexpected media deletions, and unusual access to sidecar files.
- Enforce centralized authorization policies for media operations and include them in security testing.

