Summary
WWBN AVideo has a stored cross-site scripting vulnerability in its embedded-video handling: a user with upload permission can submit a javascript: URL that is later rendered as an iframe source. When viewers, including administrators, view the affected content, the script may execute in their browser and could be used to perform actions such as creating administrator accounts.
Affected context
The issue is reported in WWBN AVideo 6.5 and occurs in the handling of embed-video links. The URL is rendered into an iframe source in videoEmbeded.php and PlayerSkins.php without adequate validation or restriction of the scheme. Risk depends on an attacker having upload permission and viewers opening the affected content.
Exploit preconditions
- Attack surface: Embed-video submission and rendering in the AVideo web application
- Required access: Permission to upload or submit embed videos
- Trigger point: A viewer loads a page that renders the submitted video link in an iframe
- Why exploitation is possible: The URL scheme is not sufficiently validated before the value is used as an iframe source, allowing script execution in the viewer's browser
Why this happens
The application treats a user-controlled embed URL as safe for an iframe source without adequately validating its scheme. Allowing a javascript: URL in this context can cause script to run when the content is rendered. This is a stored cross-site scripting flaw mapped to CWE-79, where untrusted input is included in a page without context-appropriate validation or output handling.
Potential impact
- Script execution in the browser of users who view the affected content
- Unauthorized actions performed in the context of a viewer's session
- Administrator account creation or other administrative changes, if the affected viewer has sufficient privileges
- Further compromise of application data or user accounts, depending on the privileges and protections in place
General mitigation guidance
Defensive approaches generally focus on controlling URL trust and safely rendering user-provided content:
- Allow only explicitly approved URL schemes and destinations for embed links
- Validate URLs against a strict, documented policy before storing or rendering them
- Use context-appropriate output handling and safe embedding patterns
- Apply browser security controls, such as a restrictive Content Security Policy, as defense in depth
- Limit upload permissions and ensure privileged accounts use additional protections
How teams detect issues like this
- Use static analysis to identify user-controlled values flowing into iframe
srcattributes without scheme validation - Review embed-video handlers, templates, and player components for unsafe rendering of stored URLs
- Add automated tests that verify disallowed URL schemes are rejected or rendered inert
- Enforce URL-scheme allowlists through application policies and code-review checks
- Monitor for suspicious embed links and unexpected administrative account creation

