OSV 1.4.0 · github-reviewed · 修改于 2026-06-05 02:48
发布时间
2026-06-05 02:46
GitHub 审查时间
2026-06-05 02:46
NVD 发布时间
2026-05-29 22:16
源文件
advisories/github-reviewed/2026/06/GHSA-c8h8-vq34-9fw2/GHSA-c8h8-vq34-9fw2.json
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.
Source:
objects/categoryAddNew.json.php
$objCat->setDescription($_POST['description']);
Storage setter:
objects/category.php
public function setDescription($description)
{
$this->description = $description;
}
Sink:
plugin/Gallery/view/mainAreaCategory.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.
Prerequisites:
Steps:
<img src=x onerror=alert(document.domain)>
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.
echo htmlspecialchars($videos[0]['category_description'], ENT_QUOTES, 'UTF-8');