CVE-2026-54458
PHP 脆弱性の分析と軽減

概要

CVE-2026-54458 is an unauthenticated stored DOM Cross-Site Scripting (XSS) vulnerability in the YPTSocket plugin of WWBN AVideo, allowing any unauthenticated remote attacker to execute arbitrary JavaScript in the authenticated browser session of every administrator viewing a page that renders the YPTSocket online-users debug panel. The vulnerability was published on June 4, 2026, and affects AVideo version 29.0 and earlier. It carries a CVSS v3.1 base score of 9.6 (Critical) (GitHub Advisory).

技術的な詳細

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), with two unsanitized attacker-controlled parameters — webSocketSelfURI and page_title — being stored and broadcast to all connected clients. The getWebSocket.json.php endpoint issues a signed WebSocket token to any anonymous caller (the only gate is whether the YPTSocket plugin is enabled), and MessageSQLiteV2::onOpen reads webSocketSelfURI and page_title from the WebSocket connection URL query string without validation, persisting both verbatim into an in-memory SQLite connections table. The broadcast helper dbGetUniqueUsers() returns these unescaped values as part of the users_id_online JSON frame sent to every connected client; on the client side, script.js::updateSocketUserCard interpolates page_title into an HTML template literal passed to jQuery's $.append(html), which parses attacker-supplied bytes into live DOM nodes — including <img> tags with inline onerror event handlers — executing arbitrary JavaScript in the admin's authenticated origin (GitHub Advisory, Fix Commit).

影響

Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript within the authenticated AVideo origin of every administrator currently viewing a page with the YPTSocket debug panel rendered. The attacker's script can read non-HttpOnly cookies and CSRF tokens from the admin dashboard, issue authenticated requests to any admin-only endpoint, exfiltrate the admin dashboard DOM, and chain into any admin-context mutation — effectively achieving full administrative takeover of the AVideo instance via the victim admin's own session (GitHub Advisory).

エクスプロイテーションのステップ

  1. Reconnaissance: Identify an AVideo instance with the YPTSocket plugin enabled (default after plugin activation) and confirm at least one administrator is actively browsing the platform.
  2. Obtain anonymous WebSocket token: Send an unauthenticated HTTP GET request to /plugin/YPTSocket/getWebSocket.json.php?webSocketSelfURI=/dashboard?x=1 to receive a signed WebSocket URL in the JSON response — no credentials required.
  3. Craft malicious WebSocket URL: Append the attacker-controlled page_title parameter containing an XSS payload (e.g., <img src=x onerror=...> with String.fromCharCode-encoded strings to avoid quote/backtick characters) to the returned WebSocket URL, along with the webSocketSelfURI parameter.
  4. Connect and inject payload: Open a WebSocket connection to the crafted URL. The server's MessageSQLiteV2::onOpen stores the malicious page_title verbatim in the in-memory SQLite connections table.
  5. Payload broadcast: The server's dbGetUniqueUsers() broadcasts the stored page_title to all connected clients in the next broadcast cycle via the users_id_online JSON frame.
  6. XSS execution in admin context: Every administrator tab rendering the YPTSocket debug panel receives the broadcast; script.js::updateSocketUserCard interpolates the malicious page_title into a jQuery $.append(html) call, causing the browser to parse and execute the attacker's JavaScript within the admin's authenticated AVideo origin, enabling session hijacking, CSRF token theft, or admin action execution (GitHub Advisory).

妥協の兆候

  • Network: Unauthenticated HTTP GET requests to /plugin/YPTSocket/getWebSocket.json.php with unusual or external webSocketSelfURI query parameters; anonymous WebSocket connections to the AVideo WebSocket port carrying page_title parameters containing HTML tags or JavaScript-like strings (e.g., <img, onerror, String.fromCharCode).
  • Logs: Web server access logs showing anonymous (no session cookie) requests to getWebSocket.json.php followed immediately by WebSocket upgrade requests with encoded page_title values; repeated WebSocket connections from the same IP with varying payloads.
  • Application Behavior: Administrators reporting unexpected page behavior (e.g., background color changes, tab title modifications) while viewing AVideo pages with the YPTSocket footer loaded; unexpected JavaScript errors or network requests originating from admin browser sessions to external domains.
  • File System: No file-system artifacts expected for this in-memory/DOM-based attack; however, review plugin/YPTSocket/MessageSQLiteV2.php and plugin/YPTSocket/script.js for unauthorized modifications (GitHub Advisory).

軽減策と回避策

The fix is available in commit 8be71e5 for the AVideo repository, which validates webSocketSelfURI against FILTER_VALIDATE_URL and a strict ^https?:// regex before accepting it, and replaces the unsafe utf8_encode call on page_title with htmlspecialchars(..., ENT_QUOTES | ENT_HTML5, 'UTF-8') to properly HTML-encode the value before storage. As of the advisory publication date (June 4, 2026), no patched release version beyond the commit has been formally tagged — administrators should apply the patch commit directly or monitor for an updated release. As an immediate workaround, disabling the YPTSocket plugin or setting debugSocket=false in the plugin configuration will prevent the vulnerable debug panel from rendering in admin sessions (Fix Commit, GitHub Advisory).

コミュニティの反応

The vulnerability was reported by security researcher arkmarta and published by AVideo maintainer DanielnetoDotCom on June 4, 2026, with a detailed advisory and PoC included in the official GitHub Security Advisory. No broader media coverage or notable community commentary beyond the advisory itself has been identified at this time (GitHub Advisory).

関連情報


ソースこのレポートは AI を使用して生成されました

関連 PHP 脆弱 性:

CVE 識別子

重大度

スコア

テクノロジー

コンポーネント名

CISA KEV エクスプロイト

修正あり

公開日

CVE-2026-54458CRITICAL9.6
  • PHP logoPHP
  • wwbn/avideo
いいえいいえJul 15, 2026
CVE-2026-49279HIGH7.7
  • PHP logoPHP
  • wwbn/avideo
いいえいいえJul 15, 2026
GHSA-xg43-5579-qw6vMEDIUM6.5
  • PHP logoPHP
  • adawolfa/isdoc
いいえはいJul 15, 2026
CVE-2026-50182MEDIUM6.1
  • PHP logoPHP
  • wwbn/avideo
いいえいいえJul 15, 2026
CVE-2026-50183MEDIUM4.7
  • PHP logoPHP
  • wwbn/avideo
いいえいいえJul 15, 2026

無料の脆弱性評価

クラウドセキュリティポスチャーのベンチマーク

9つのセキュリティドメインにわたるクラウドセキュリティプラクティスを評価して、リスクレベルをベンチマークし、防御のギャップを特定します。

評価を依頼する

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者