Summary
WWBN AVideo can store a video download link and later render it without escaping, allowing an uploader to inject script content into a video source display. If an administrator views the affected content, the script may run in the administrator's browser session and could be used to perform actions available to that administrator.
Affected context
The issue involves the handling of the videoDownloadedLink value in objects/aVideoEncoder.json.php and its rendering as a Source tag in view/managerVideos_body.php. Risk exists when an uploader can submit a value that is stored and later included in the administrator-facing page without context-appropriate output encoding.
Exploit preconditions
- Attack surface: Video upload or related handling of the
videoDownloadedLinkvalue, followed by the video management interface. - Required access: An account or other means that permits submitting or changing the relevant video value; the description identifies uploaders as the likely source.
- Trigger point: An administrator views the affected video in the manager videos page.
- Why exploitation is possible: The stored value is rendered in a page without adequate escaping, allowing browser-interpreted markup or event-handler content to execute.
Why this happens
The underlying issue is stored cross-site scripting, mapped to CWE-79: Improper Neutralization of Input During Web Page Generation. A value that may be attacker-controlled is stored and later inserted into HTML without encoding it for the output context. Browser interpretation of that value can then cause script execution when the page is viewed.
Potential impact
- An attacker may run script in an administrator's browser session.
- The script could perform actions available to the administrator, depending on session and application protections.
- An attacker could potentially use administrator privileges to install plugin archives containing PHP, which may lead to server-side compromise if the application permits it.
General mitigation guidance
Defensive patterns include:
- Applying context-appropriate output encoding wherever stored values are rendered in HTML or attribute contexts.
- Validating URL values against an explicit scheme and format policy, while treating validation as an additional control rather than a replacement for output encoding.
- Reducing trust in uploader-controlled metadata and limiting which roles can submit or modify it.
- Restricting plugin installation to trusted, verified sources and applying least privilege to administrative and application processes.
- Using browser-side policies such as Content Security Policy as a defense in depth, not as a substitute for safe rendering.
How teams detect issues like this
- Use static analysis to identify stored values reaching HTML or attribute output without context-aware encoding.
- Review code that renders video links, source elements, and other uploader-controlled metadata in administrator-facing pages.
- Add tests that verify untrusted values are encoded and cannot introduce executable markup in each output context.
- Apply code-review or CI policies requiring safe templating and output-encoding patterns; automated review tools may help flag risky data flows.

