Summary
AVideo's encoder endpoints may allow delegated Videos Admin users to obtain a video_id_hash associated with a video owned by another user. Replaying a hash for an administrator-owned video through useVideoHashOrLogin() may enable password-less access to administrative capabilities, including plugin uploads, configuration changes, and user management.
Affected context
The issue affects AVideo deployments through version 29.7.1 where delegated Videos Admin users can access encoder endpoints such as aVideoEncoderStatus.json.php. Risk arises if those endpoints disclose hashes for videos owned by other users and the application accepts a disclosed hash for password-less login without adequately verifying the requester's authorization.
Exploit preconditions
- Attack surface: AVideo encoder endpoints and the password-less login flow
- Required access: A delegated Videos Admin account with access to the relevant encoder endpoint
- Trigger point: Requesting a video hash and presenting it to
useVideoHashOrLogin() - Why exploitation is possible: Authorization checks may not sufficiently restrict which owners' video hashes the delegated user can obtain or use
Why this happens
The underlying issue is an authorization check that does not adequately enforce ownership or role boundaries for access to video hash values. This maps to CWE-863: Incorrect Authorization: a request may be permitted without verifying that the user is authorized to access the specific resource. If the resulting hash is also accepted as an authentication credential, the authorization gap can cross into account access.
Potential impact
- A delegated user could gain password-less access associated with another video owner
- An attacker could obtain administrative capabilities, depending on the affected account
- Unauthorized users may be able to upload plugins or change application configuration
- User accounts or permissions could be modified
General mitigation guidance
Mitigations generally focus on enforcing authorization at every point where a resource or credential is issued and used.
Common defensive patterns include:
- Check the caller's role and resource ownership before returning video hashes
- Bind authentication tokens or hashes to the intended user and purpose
- Use short-lived, single-use credentials and reject tokens outside their intended context
- Apply least privilege to delegated roles and limit access to sensitive management functions
- Avoid treating resource identifiers or hashes as sufficient proof of identity
How teams detect issues like this
High-level review and monitoring can focus on:
- Static analysis or code review of encoder endpoints and authorization checks
- Tracing whether hash issuance verifies the caller's access to the video owner
- Reviewing
useVideoHashOrLogin()to confirm that hashes are scoped, validated, and not accepted as unrestricted login credentials - Enforcing policies that require authorization checks at both credential issuance and redemption
- Monitoring for delegated accounts accessing hashes or administrative functions outside their expected scope

