AVideo: CSRF on Plugin Enable/Disable Endpoint Allows Disabling Security Plugins
Date: 2026-04
Affected: composer/wwbn/avideo
Attack vector: auth-bypass
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2026-34613
CWE: CWE-352
CVSS: 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N)

## Summary The AVideo endpoint `objects/pluginSwitch.json.php` allows administrators to enable or disable any installed plugin. The endpoint checks for an active admin session but does not validate a CSRF token. Additionally, the `plugins` database table is explicitly listed in `ignoreTableSecurityCheck()`, which means the ORM-level Referer/Origin domain validation in `ObjectYPT::save()` is also bypassed. Combined with `SameSite=None` on session cookies, an attacker can disable critical security plugins (such as LoginControl for 2FA, subscription enforcement, or access control plugins) by luring an admin to a malicious page. Plugin UUIDs are not secret values. They are hardcoded in the frontend JavaScript source and are consistent across installations, making it trivial for an attacker to target specific plugins. ## Details The `objects/pluginSwitch.json.php` endpoint checks admin status but performs no CSRF validation: ```php // objects/pluginSwitch.json.php if (!User::isAdmin()) { die('{"error": "Must be admin"}'); } $obj = new Plugin(0); $obj->loadFromUUID($_POST['uuid']); $obj->setStatus($_POST['status']); $obj->save(); ``` The `plugins` table is explicitly excluded from the ORM security check at `objects/Object.php:529`: ```php // objects/Object.php:529 public static function ignoreTableSecurityCheck() { return array( 'plugins', // ... other tables ); } ``` This means the `save()` call does not trigger the Referer/Origin domain valida


Mitigations:

Architectural layers (MAESTRO):