All vulnerabilities

Servers and applications

GHSA-whh2-8p2q-5598

CSRF on encoder endpoints via session-auth fallback in useVideoHashOrLogin()

Severity
Medium
Published
26 Nov 2026
Last changed
26 Nov 2026
Added to UpHeron
26 Nov 2026
Weakness
Cross-site request forgery (CWE-352)
Sources
Project advisories (GitHub)

Description

Five encoder endpoints are explicitly exempted from CSRF protection in the autoCSRFGuard bypass list (objects/functionsSecurity.php:1181-1185):

  • objects/aVideoEncoder.json.php
  • objects/aVideoEncoderLog.json.php
  • objects/aVideoEncoderNotifyIsDone.json.php
  • objects/aVideoEncoderReceiveImage.json.php
  • objects/aVideoQueueEncoder.json.php

The intent is that these endpoints authenticate via video_id_hash tokens, not browser sessions. However, useVideoHashOrLogin() (objects/functions.php:7750) falls through to User::loginFromRequest() when no hash is provided. If the user already has an active PHP session cookie, the session is used. The endpoints also set $global['bypassSameDomainCheck'] = 1, further disabling origin validation.

  • Victim is logged into AVideo with upload permission, visits attacker-controlled page.
  • Attacker submits a cross-origin form POST (no CORS preflight for application/x-www-form-urlencoded).
  • Browser sends session cookie automatically.
From WWBN/AVideo's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
AVideoServers and applications · github:wwbn/avideo
  • Every version up to 29.9.0

About AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP

From its GitHub repository.
GitHub stars
2,115GitHub, 29 Nov 2026
Forks
1,013GitHub, 29 Nov 2026
Latest release
v29.9.0GitHub, 29 Nov 2026
Released
23 Nov 2026GitHub
First published on GitHub
2 Apr 2017GitHub

References