CVE-2026-45610: AVideo 2FA Toggle Endpoint Has No Vulnerability
MODERATECVE-2026-45610 is a MODERATE (CVSS 5.7) 2fa toggle endpoint has no vulnerability (CWE-306: Missing Authentication for Critical Function) affecting AVideo libraries in the Packagist ecosystem. The issue involves 2fa toggle endpoint has no csrf protection, letting an attacker page silently disable a logged-in victim's 2fa. Remediation is available in the latest vendor maintenance releases.
CVE-2026-45610 at a Glance
Security Impact
CVSS: 5.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-45610
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-45610, 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-45610 Affected AVideo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
WWBN/AVideo
|
Packagist |
≤ 29.0
|
|
References
Frequently Asked Questions
What is CVE-2026-45610?
Which AVideo versions are affected?
What version fixes CVE-2026-45610?
Is WWBN/AVideo affected?
What is the CVSS score of CVE-2026-45610?
What CWE is associated with CVE-2026-45610?
How can I check Packagist dependencies for CVE-2026-45610?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3mv2-vmwh-rwfx",
"modified" : "2026-06-09T10:27:26Z",
"published" : "2026-05-15T18:34:57Z",
"aliases" : [ "CVE-2026-45610" ],
"summary" : "AVideo: 2FA toggle endpoint has no CSRF protection, letting an attacker page silently disable a logged-in victim's 2FA",
"details" : "## Summary\n\n**Type:** Cross-site request forgery on the 2FA toggle. `plugin/LoginControl/set.json.php` accepts `POST type=set2FA value=false`, calls `LoginControl::setUser2FA(User::getId(), false)` on the session-authenticated user, and returns. There is no `forbidIfIsUntrustedRequest()` call, no `isTokenValid()` check, no `X-CSRF-Token`/`SameSite` enforcement, and no re-authentication step. A cross-origin page that the victim visits while logged into the AVideo dashboard issues the POST via a hidden form (or `fetch` without `credentials:\"omit\"`) and disables the victim's 2FA in one request. The next phishing/credential-stuffing attempt against that account no longer needs the second factor.\n**File:** `plugin/LoginControl/set.json.php`, lines 1-37.\n**Root cause:** the developer relied on the `User::isLogged()` check at line 9 as the only auth, then dispatched directly into `LoginControl::setUser2FA(User::getId(), $value=='true')`. Other AVideo state-changing endpoints in the same codebase (`videoUpdateUsage.json.php`, `videoStatus.json.php`, `videoRotate.json.php`, etc.) call `forbidIfIsUntrustedRequest('<name>')` to compare `Origin`/`Referer` against the AVideo domain; this endpoint simply omits the call. The session cookie carries the user's identity on every cross-origin POST, so any attacker page can speak for the logged-in user on this endpoint.\n\n## Affected Code\n\n**File:** `plugin/LoginControl/set.json.php`, lines 1-37.\n\n```php\n<?php\nrequire_once '../../videos/configuration.php';\n_session_write_close();\nheader('Content-Type: application/json');\n\n$obj = new stdClass();\n$obj->error = true;\n$obj->msg = \"\";\nif (!User::isLogged()) {\n $obj->msg = \"Not logged\";\n die(json_encode($obj));\n}\nif (empty($_POST['type'])) {\n $obj->msg = \"Type is empty\";\n die(json_encode($obj));\n}\nif (!isset($_POST['value'])) {\n $obj->msg = \"value is empty\";\n die(json_encode($obj));\n}\n\n$cu = AVideoPlugin::loadPluginIfEnabled('LoginControl');\n\nif (empty($cu)) {\n $obj->msg = \"Plugin not enabled\";\n die(json_encode($obj));\n}\n\n$obj->error = false;\nswitch ($_POST['type']) {\n case 'set2FA':\n LoginControl::setUser2FA(User::getId(), $_POST['value']==\"true\" ? true : false); // <-- BUG: no CSRF gate, no re-auth\n break;\n}\n\ndie(json_encode($obj));\n```\n\n**Why it's wrong:** disabling a victim's second factor is exactly the kind of state change the AVideo CSRF helper `forbidIfIsUntrustedRequest()` exists to protect. Compare with `objects/comments_like.json.php:18` (`forbidIfIsUntrustedRequest('comments_like')`) — comments-likes get CSRF protection, but the 2FA toggle does not. Beyond CSRF, security-sensitive toggles like 2FA-disable conventionally also require either the current 2FA code or a password re-prompt: a malicious browser extension, an XSS that lands in any AVideo subdomain, or a compromised tab can otherwise flip the bit silently. None of those mitigations exist here.\n\n## Exploit Chain\n\n1. Attacker hosts `https://attacker.example/avideo-2fa-off.html` containing:\n ```html\n <form id=\"f\" action=\"https://avideo.example/plugin/LoginControl/set.json.php\" method=\"POST\">\n <input type=\"hidden\" name=\"type\" value=\"set2FA\">\n <input type=\"hidden\" name=\"value\" value=\"false\">\n </form>\n <script>document.getElementById('f').submit();</script>\n ```\n State: page is live and indexable.\n2. Attacker delivers the page to a victim who is logged in to `avideo.example` (open redirect on a trusted partner, ad campaign, IM phishing link, encyclopedic-looking forum post). The victim's browser opens the page; the form auto-submits to AVideo. State: cross-origin POST hits `set.json.php` with the victim's session cookie attached (the cookie's `SameSite` attribute is set to `Lax`/`None` by AVideo's defaults so the cross-origin POST succeeds for top-level navigations).\n3. `set.json.php:9` confirms `User::isLogged()` (true, victim's session is valid). Lines 13-19 see `type=set2FA`, `value=false`. Line 30-32 calls `LoginControl::setUser2FA(victim_user_id, false)` and persists the change. State: victim's 2FA is now disabled in `users.externalOptions.LoginControl.is2FAEnabled`.\n4. Victim sees a generic \"operation completed\" JSON response in a redirected browser tab (or no visible feedback at all if the form lands in an `iframe`). State: victim notices nothing unusual.\n5. Attacker (in a separate session) attempts credential stuffing or password-spray against `avideo.example/objects/login.json.php`. Without the second factor, any one of: a previously leaked password, a successful credential-stuffing match, or a spear-phishing-collected password completes the login. State: attacker holds full session for victim's account.\n6. Final state: the second factor that the victim explicitly enabled was silently disabled across the wire by visiting an attacker-hosted page. The whole chain takes one HTTP POST and zero clicks beyond the initial visit.\n\n## Security Impact\n\n**Severity:** sec-moderate. CVSS 6.5: network attack, low complexity, low privileges (the attacker themselves are unauthenticated; the victim must be a logged-in AVideo user; this is captured by `PR:L` because the action's effect requires the victim's session), user interaction required (visit attacker page), scope unchanged, no confidentiality directly, high integrity (the victim's 2FA configuration is silently corrupted), no availability claim.\n**Attacker capability:** with one cross-origin POST, the attacker turns a victim's 2FA-protected account into a plain password-only account. Combined with any password leak, credential-stuffing match, or successful phishing of the password, the account is fully compromised. The change is permanent until the victim notices and re-enables 2FA, and AVideo does not raise an audit-log event when 2FA is disabled (see `LoginControl::setUser2FA` — it simply writes the boolean), so detection is unlikely.\n**Preconditions:** AVideo deployment with the `LoginControl` plugin enabled (the plugin shipping the 2FA feature); the victim is logged in to AVideo at the moment they visit the attacker page; the AVideo session cookie does not have `SameSite=Strict` (the deployment default is `SameSite=Lax` per `objects/phpsessionid.json.php:53`, which still allows cross-origin top-level POSTs from a form auto-submit).\n**Differential:** source-inspection-verified. `set.json.php` does not contain `forbidIfIsUntrustedRequest`, `isTokenValid`, `verifyToken`, or any equivalent string; the entire body of the file is reproduced above. With the suggested fix below, the same cross-origin POST returns a 403 with `Invalid Request` and the `setUser2FA` call never fires.\n\n## Suggested Fix\n\nAdd the same CSRF gate every other state-changing endpoint in this codebase uses, and require the current 2FA code (or a password re-prompt) when the user is *disabling* the second factor.\n\n```diff\n--- a/plugin/LoginControl/set.json.php\n+++ b/plugin/LoginControl/set.json.php\n@@ -9,6 +9,8 @@\n if (!User::isLogged()) {\n $obj->msg = \"Not logged\";\n die(json_encode($obj));\n }\n+forbidIfIsUntrustedRequest('LoginControl-set');\n+\n if (empty($_POST['type'])) {\n $obj->msg = \"Type is empty\";\n die(json_encode($obj));\n@@ -28,7 +30,15 @@\n $obj->error = false;\n switch ($_POST['type']) {\n case 'set2FA':\n- LoginControl::setUser2FA(User::getId(), $_POST['value']==\"true\" ? true : false);\n+ $newValue = ($_POST['value'] == 'true');\n+ // Require the current 2FA code (or a password re-prompt) when DISABLING 2FA;\n+ // turning it on is fine, turning it off needs a step-up.\n+ if (!$newValue && !LoginControl::confirmStepUpForCurrentUser($_POST['confirm'] ?? '')) {\n+ $obj->error = true;\n+ $obj->msg = __('Re-authentication required to disable 2FA');\n+ die(json_encode($obj));\n+ }\n+ LoginControl::setUser2FA(User::getId(), $newValue);\n break;\n }\n```\n\nDefence-in-depth: the AVideo session cookie should be issued with `SameSite=Strict` for the management dashboard's first-party POSTs; the public read-only player can keep a separate `SameSite=Lax` cookie. Audit-log every 2FA-disable event with the source IP and user agent so an unexpected disable is visible to the operator.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "WWBN/AVideo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "29.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/WWBN/AVideo/security/advisories/GHSA-3mv2-vmwh-rwfx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45610"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/WWBN/AVideo"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-306", "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-15T18:34:57Z",
"nvd_published_at" : "2026-05-29T14:16:30Z"
}
}