Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify target AVideo instance
-
DeliveryCraft malicious HTML with CSRF payload
-
ExploitDeliver via phishing/SEO poisoning
-
ExecutionVictim visits while authenticated
-
PersistAuto-submit form disables 2FA
-
ImpactCredential stuffing gains full access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the AVideo LoginControl plugin to be enabled (default for deployments using two-factor authentication features) and the victim to be authenticated to the AVideo dashboard with an active session cookie at the moment they visit the attacker-controlled webpage. The AVideo session cookie must be configured with SameSite=Lax (the platform default per phpsessionid.json.php:53) or SameSite=None, as SameSite=Strict would prevent cross-origin cookie attachment and block the attack. The victim's browser must permit form submissions to cross-origin endpoints, which is standard behavior in all modern browsers. Attack complexity is low (CVSS AC:L) because no race conditions, brute-forcing, or cryptographic weaknesses are involved-the attacker simply delivers a webpage and relies on automatic browser behavior. User interaction is required (CVSS UI:R): the victim must click a link or navigate to the attacker page while logged in, typically achieved through social engineering (phishing email, malicious advertisement, forum post with embedded iframe, open redirect on a trusted partner site). The attacker needs no credentials or prior access to the AVideo platform (CVSS PR:L reflects that the victim's authenticated session is the required privilege, not the attacker's). Exploitation is NOT limited by: network topology (attack works over public internet against internet-facing AVideo instances), time-of-day (works whenever victim is logged in), or specific AVideo version beyond the vulnerable codebase (all versions through 29.0 confirmed affected). The attack is fully automatable once the victim visits the page-no further interaction needed after initial click. What LIMITS exploitation: the victim must have an active AVideo session in the same browser that visits the attacker page; attacks fail if the victim uses separate browsers for AVideo administration versus general browsing, or if the AVideo session has expired. Organizations restricting AVideo admin access to dedicated VPN-connected networks with strict egress filtering reduce exposure, as the victim's browser cannot reach attacker-controlled internet domains during authenticated sessions. |
| Impact | Real-world risk is moderate despite the network attack vector. CVSS 5.7 reflects the core constraints: attack complexity is low (single HTTP POST, no timing or race conditions), but successful exploitation requires the victim to be both authenticated to AVideo AND convinced to visit an attacker-controlled page while logged in (UI:R). The low privilege requirement (PR:L) captures that the attacker themselves needs no AVideo credentials-they exploit the victim's existing session. High integrity impact (I:H) is appropriate since the vulnerability directly corrupts the victim's security posture by stripping their second authentication factor. The scope is unchanged (S:U) because the CSRF cannot pivot beyond the victim's AVideo account context. EPSS data not provided, but the attack surface is narrow: only AVideo deployments with the LoginControl plugin enabled are vulnerable, and the victim must be actively logged in during the attack window. The lack of CISA KEV listing and absence of public POC suggest no widespread exploitation campaigns to date. However, the detailed GitHub advisory provides a complete attack blueprint including working HTML payload, lowering the barrier for opportunistic attackers. The downstream risk is cumulative: successful CSRF converts a 2FA-protected account into a password-only target for subsequent credential stuffing, phishing, or password spray attacks. For organizations using AVideo to host sensitive internal video content or for SaaS providers offering AVideo-based platforms, this represents a realistic degradation of authentication assurance. The vulnerability's impact is amplified by AVideo's lack of audit logging for 2FA changes, preventing detection of silent disablement. Compensating controls (SameSite=Strict cookies, Content Security Policy restricting form-action) are effective but require manual configuration beyond default AVideo deployment. |
| Exploit ScenarioDerived | An attacker identifies an AVideo deployment at avideo.example.com with two-factor authentication enabled for administrative users. They craft a weaponized HTML page hosted at attacker-cdn.net containing a hidden form with action pointing to https://avideo.example.com/plugin/LoginControl/set.json.php and hidden inputs type=set2FA and value=false. The attacker distributes this page through spearphishing emails to known administrators with subject lines like 'Urgent: Video platform security update' or embeds it in forum posts appearing legitimate through SEO poisoning. When an administrator logged into AVideo clicks the link, their browser loads the attacker page and auto-submits the form. The victim's session cookie (SameSite=Lax by default) is attached to the cross-origin POST request. The vulnerable endpoint validates only that User::isLogged() returns true, then immediately calls LoginControl::setUser2FA() with the victim's user ID and false value, persisting the change to the database. The administrator sees either a brief redirect or JSON response and continues their day unaware their 2FA protection is now disabled. Hours or days later, the attacker launches a password spray attack against avideo.example.com/objects/login.json.php using credentials from a prior breach database. The administrator's account, now protected only by password, is compromised on the first successful password match, granting full access to video content management, user data, and platform configuration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 15, 2026
Cross-site request forgery in AVideo's LoginControl plugin allows remote attackers to disable two-factor authentication for authenticated victims through a single malicious HTTP request. The vulnerability exists in plugin/LoginControl/set.json.php which accepts POST requests to toggle 2FA without CSRF token validation, origin verification, or re-authentication. Attackers deliver a weaponized webpage containing a hidden form that auto-submits to the vulnerable endpoint; when a logged-in AVideo administrator visits this page, their 2FA protection is silently stripped, enabling subsequent credential-based account takeover. The flaw is confirmed through GitHub security advisory GHSA-3mv2-vmwh-rwfx with source code evidence showing the endpoint performs only session authentication (User::isLogged()) while omitting the forbidIfIsUntrustedRequest() protection used throughout the rest of the codebase. No public exploit code identified at time of analysis, though the attack is trivial to weaponize given the detailed advisory.
RemediationAI
No vendor-released patch identified at time of analysis. The GitHub advisory at https://github.com/WWBN/AVideo/security/advisories/GHSA-3mv2-vmwh-rwfx provides a detailed code-level fix that administrators with PHP modification capability can apply manually: insert forbidIfIsUntrustedRequest('LoginControl-set') immediately after the User::isLogged() check in plugin/LoginControl/set.json.php (line 11), which enforces origin header validation against the trusted AVideo domain and returns HTTP 403 for cross-origin requests. Additionally, implement step-up authentication by requiring the current 2FA code or password confirmation when the user attempts to disable (not enable) 2FA, preventing both CSRF and malicious browser extension attacks. For organizations unable to modify source code, apply these compensating controls with noted trade-offs: (1) Configure the AVideo session cookie with SameSite=Strict attribute in objects/phpsessionid.json.php line 53, which blocks all cross-origin cookie attachment including legitimate same-site subdomain requests-test thoroughly against video embed workflows. (2) Deploy a Web Application Firewall rule blocking POST requests to /plugin/LoginControl/set.json.php where the Origin or Referer header does not match the AVideo domain, though this may break mobile apps or legitimate API clients that omit these headers. (3) Implement network-level IP allowlisting for the /plugin/LoginControl/ path restricting access to internal management networks only, which eliminates the attack surface entirely but requires dedicated admin access infrastructure. Monitor AVideo's GitHub repository and security advisories for official patch release; subscribe to notifications at https://github.com/WWBN/AVideo/security/advisories for updates.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AVideo is a PHP-based video streaming platform (composer package wwbn/avideo). The vulnerability stems from CWE-306 (Missing Authentication for Critical Function) in the LoginControl plugin's JSON API endpoint. Modern web applications protect state-changing operations through CSRF defenses: anti-CSRF tokens embedded in forms, SameSite cookie attributes (Strict/Lax), or origin/referer header validation. AVideo implements a centralized CSRF guard function forbidIfIsUntrustedRequest() used across endpoints like videoUpdateUsage.json.php and videoStatus.json.php, which compares the HTTP Origin/Referer header against the application's trusted domain. The 2FA toggle endpoint bypasses this architecture entirely-it validates only that User::isLogged() returns true (session cookie present) before invoking LoginControl::setUser2FA() to persist the boolean change. Since browsers attach session cookies to cross-origin POST requests when SameSite is Lax (AVideo's default per phpsessionid.json.php:53) or absent, any attacker-controlled page can forge authenticated requests. The absence of step-up authentication (requiring current 2FA code or password when disabling 2FA) further violates security best practices for high-value account settings.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
1DescriptionNVD
Summary
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. File: plugin/LoginControl/set.json.php, lines 1-37. 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.
Affected Code
File: plugin/LoginControl/set.json.php, lines 1-37.
<?php
require_once '../../videos/configuration.php';
_session_write_close();
header('Content-Type: application/json');
$obj = new stdClass();
$obj->error = true;
$obj->msg = "";
if (!User::isLogged()) {
$obj->msg = "Not logged";
die(json_encode($obj));
}
if (empty($_POST['type'])) {
$obj->msg = "Type is empty";
die(json_encode($obj));
}
if (!isset($_POST['value'])) {
$obj->msg = "value is empty";
die(json_encode($obj));
}
$cu = AVideoPlugin::loadPluginIfEnabled('LoginControl');
if (empty($cu)) {
$obj->msg = "Plugin not enabled";
die(json_encode($obj));
}
$obj->error = false;
switch ($_POST['type']) {
case 'set2FA':
LoginControl::setUser2FA(User::getId(), $_POST['value']=="true" ? true : false); // <-- BUG: no CSRF gate, no re-auth
break;
}
die(json_encode($obj));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.
Exploit Chain
- Attacker hosts
https://attacker.example/avideo-2fa-off.htmlcontaining:
<form id="f" action="https://avideo.example/plugin/LoginControl/set.json.php" method="POST">
<input type="hidden" name="type" value="set2FA">
<input type="hidden" name="value" value="false">
</form>
<script>document.getElementById('f').submit();</script>State: page is live and indexable.
- 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 hitsset.json.phpwith the victim's session cookie attached (the cookie'sSameSiteattribute is set toLax/Noneby AVideo's defaults so the cross-origin POST succeeds for top-level navigations). set.json.php:9confirmsUser::isLogged()(true, victim's session is valid). Lines 13-19 seetype=set2FA,value=false. Line 30-32 callsLoginControl::setUser2FA(victim_user_id, false)and persists the change. State: victim's 2FA is now disabled inusers.externalOptions.LoginControl.is2FAEnabled.- 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. - 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. - 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.
Security Impact
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. 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. 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). 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.
Suggested Fix
Add 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.
--- a/plugin/LoginControl/set.json.php
+++ b/plugin/LoginControl/set.json.php
@@ -9,6 +9,8 @@
if (!User::isLogged()) {
$obj->msg = "Not logged";
die(json_encode($obj));
}
+forbidIfIsUntrustedRequest('LoginControl-set');
+
if (empty($_POST['type'])) {
$obj->msg = "Type is empty";
die(json_encode($obj));
@@ -28,7 +30,15 @@
$obj->error = false;
switch ($_POST['type']) {
case 'set2FA':
- LoginControl::setUser2FA(User::getId(), $_POST['value']=="true" ? true : false);
+ $newValue = ($_POST['value'] == 'true');
+ // Require the current 2FA code (or a password re-prompt) when DISABLING 2FA;
+ // turning it on is fine, turning it off needs a step-up.
+ if (!$newValue && !LoginControl::confirmStepUpForCurrentUser($_POST['confirm'] ?? '')) {
+ $obj->error = true;
+ $obj->msg = __('Re-authentication required to disable 2FA');
+ die(json_encode($obj));
+ }
+ LoginControl::setUser2FA(User::getId(), $newValue);
break;
}Defence-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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-33309
GHSA-3mv2-vmwh-rwfx
NVD
CVE.org
EPSS
Exploit-DB