Media

WWBN AVideo: Stored XSS via unescaped Gallery category description

  • Publicada: 04.06.2026
  • Actualizado: 11.10.2026 10:22

Summary

AVideo stores category descriptions from user input and later renders category_description as raw HTML in the Gallery view. A user who can create or edit categories can store JavaScript in a category description, which executes when another user views the affected Gallery/category page.

This is a stored XSS in the category description field, separate from previously fixed XSS issues in video titles or comments.

Details

Source:

objects/categoryAddNew.json.php

php
$objCat->setDescription($_POST['description']);

Storage setter:

objects/category.php

public function setDescription($description)
{
    $this->description = $description;
}

Sink:

plugin/Gallery/view/mainAreaCategory.php

php
  <div id="categoryDescription<?php echo $duid; ?>" style="display: none;"><?php echo $videos[0]['category_description']; ?></div>

The value is rendered without htmlspecialchars(), htmlentities(), HTMLPurifier, or equivalent output encoding.

PoC

Prerequisites:

  • AVideo current master / v29.0
  • User account with permission to create or edit categories
  • Gallery plugin/view enabled
  • At least one video assigned to the affected category

Steps:

  1. Log in as a user who can create or edit categories.
  2. Create or edit a category.
  3. Set the category description to:
  <img src=x onerror=alert(document.domain)>
  1. Save the category.
  2. Assign at least one video to that category.
  3. Open the Gallery/category page that renders the category section.
  4. The payload is inserted into the page as raw HTML and JavaScript executes.

Impact

An attacker with category edit permission can execute JavaScript in the browser of users or administrators who view the affected Gallery/category page. This can be used to perform actions as the victim, steal same-origin data accessible to JavaScript, or abuse administrative UI actions if an administrator views the malicious category.

Recommended fix

  • Sanitize category descriptions on input with the same HTML policy used for video descriptions, or store plain text only.
  • Encode on output:
php
echo htmlspecialchars($videos[0]['category_description'], ENT_QUOTES, 'UTF-8');
  • If limited HTML is intended, run the description through HTMLPurifier before storage or before render.
  • Add regression tests for category description rendering in Gallery views.

Software afectado

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

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de Composer WWBN/AVideo <= 29.0 sin corrección

Referencias

Puntuación CVSS 5.4/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Debilidad (CWE)
CWE-79
Plataforma
Composer
Paquete
WWBN/AVideo
Publicada
04.06.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-c8h8-vq34-9fw2 - 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. WWBN AVideo: Stored XSS via unescaped Gallery category description esta entrada
    Media · 5.4 CVE-2026-47694 <= 29.0 sin corrección
  2. Alta · 8.8 CVE-2026-45578 <= 29.0 sin corrección
  3. Alta · 9.8 CVE-2026-41304 <= 29.0 sin corrección
  4. Alta · 9.3 CVE-2026-41064 <= 29.0 sin corrección
  5. Crítica CVE-2026-33867 <= 26.0 sin corrección
  6. Alta · 8.8 CVE-2026-33717 <= 26.0 sin corrección
  7. Alta · 7.5 CVE-2026-33512 <= 26.0 sin corrección
  8. Crítica · 9.3 CVE-2026-33502 <= 26.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.