mediumCVSS 6.1Vulnerability

GHSA-gmpc-fxg2-vcmq

## Summary The TopMenu plugin renders menu item fields (icon classes, URLs, and text labels) directly into HTML without applying `htmlspecialchars()` or any other output encoding. Since menu items are rendered on every public page through plugin hooks, a single malicious menu entry results in stored cross-site scripting that executes for every visitor to the site. An admin user who is tricked into saving a crafted menu item (or an attacker who gains admin access) can compromise all site visitors. ## Details Multiple output locations in the TopMenu plugin render user-controlled data without escaping: In `HTMLMenuRight.php:24`, the icon class is injected directly: ```php <i class="<?php echo $value2['icon'] ?>"></i> ``` In `HTMLMenuRight.php:40`, the URL is rendered without encoding: ```php <a href="<?php echo $value2['finalURL']; ?>"> ``` In `HTMLMenuLeft.php:32`, same pattern for the left menu: ```php <a href="<?php echo $value2['finalURL']; ?>"> ``` In `index.php:49`, the menu item text is echoed raw: ```php <?php echo $menuItem->getText(); ?> ``` Menu item data is saved via `menuItemSave.json.php` with no sanitization in the setter methods. The stored values are loaded from the database and rendered on every page because the TopMenu plugin hooks into the global page layout. Critically, `menuItemSave.json.php` has no CSRF protection. It checks `User::isAdmin()` but does not call `isGlobalTokenValid()` or perform any other CSRF token validation. This means the stored XSS can be chained with CSRF: an attacker does not need a compromised admin account. Instead, a cross-origin POST from an attacker-controlled page can create the malicious menu item if an admin visits the attacker's page while logged in. ## Proof of Concept 1. As an admin user, save a menu item with a malicious icon class: ```bash curl -b "PHPSESSID=ADMIN_SESSION" \ -X POST "https://your-avideo-instance.com/plugin/TopMenu/menuItemSave.json.php" \ -d 'icon=fa-home" onmouseover="alert(

Properties

ghsa_id
GHSA-gmpc-fxg2-vcmq
severity
medium
summary
AVideo has Stored XSS via Unescaped Menu Item Fields in TopMenu Plugin
cvss_score
6.1
cve_id
GHSA-gmpc-fxg2-vcmq
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
is_ghsa_only
true
ghsa_published
2026-04-01T23:25:11Z
source_url
https://github.com/advisories/GHSA-gmpc-fxg2-vcmq
ghsa_updated
2026-04-02T11:30:51Z

Related Entities (3)

AFFECTS (1)

[Software]composer/WWBN/AVideo

REPORTED_BY (1)

[Source]GitHub Advisory Database

HAS_WEAKNESS (1)

[Weakness]Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Explore deeper with Ninja Signal's threat intelligence graph