CVE-2026-145051 — CWE-287
WWBN AVideo before 29.9.0 contains an authentication bypass vulnerability in the LoginWordPress plugin that allows unauthenticated attackers to log in as any account by matching usernames on the configured WordPress site. Attackers holding a WordPress account with the victim's username can POST credentials to login.json.php to take over AVideo accounts, including administrators.
WWBN AVideo before 29.9.0 contains an authentication bypass vulnerability in the LoginWordPress plugin that allows unauthenticated attackers to log in as any account by matching usernames on the configured WordPress site. Attackers holding a WordPress account with the victim's username can POST credentials to login.json.php to take over AVideo accounts, including administrators.
🎯 What is this vulnerability?
This vulnerability is a Critical Authentication Bypass (CWE-287) in the LoginWordPress plugin of WWBN AVideo versions prior to 29.9.0.
The core technical flaw lies in the logic used by the plugin to validate login credentials against the configured WordPress backend. The plugin fails to properly verify the integrity of the authentication handshake. Specifically, it allows an unauthenticated attacker to submit a username and password to the login.json.php endpoint. The vulnerable logic appears to check if a user with that username exists in the WordPress database and potentially validates the password against the WordPress user table, but it fails to enforce strict session binding or unique token verification that would prevent an attacker from "impersonating" a legitimate WordPress user to gain access to the corresponding AVideo account.
Crucially, the vulnerability description states that an attacker holding a WordPress account with the victim's username can take over the AVideo account. This implies a User Enumeration and Credential Reuse/Mapping Flaw. If the AVideo plugin maps AVideo users to WordPress users via username, and the authentication check is flawed (e.g., it only checks if the WP user exists and is active, or if the password hash matches without proper nonce/session validation for the AVideo context), an attacker who knows the username (or has a WP account with that username) can bypass the intended AVideo authentication controls.
The CVSS vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H confirms this is a network-exploitable, low-complexity, unauthenticated attack that leads to full compromise of Confidentiality, Integrity, and Availability.
⚡ Attack Chain
1. Discovery & Reconnaissance
- Fingerprinting: The attacker identifies that the target is running WWBN AVideo. This can be done by checking for common AVideo assets (e.g.,
/avideo/,/admin/, specific JS files) or by scanning for thelogin.json.phpendpoint. - Version Check: The attacker determines the version is below 29.9.0. This might be visible in the page footer,
robots.txt, or by checking theX-Generatoror specific plugin version strings in the HTTP response headers or HTML source. - User Enumeration: The attacker identifies valid usernames. Since the vulnerability allows login by "matching usernames on the configured WordPress site," the attacker can enumerate valid WordPress usernames. This can be done via: * WordPress REST API:
GET /wp-json/wp/v2/users (if unauthenticated access is allowed).
* WordPress XML-RPC: system.listMethods or wp.getUsersBlogs (if enabled).
* Common username guessing (admin, administrator, root, etc.).
* If the attacker already has a low-privilege WordPress account, they can list other users if they have the list_users capability (rare for low-priv, but possible in misconfigured setups). More likely, they use the fact that the AVideo login endpoint might reveal if a username exists via error messages or timing differences.2. Exploitation
The attacker crafts a POST request to the vulnerablelogin.json.php endpoint. The exact parameter names are not explicitly stated in the CVE description, so the following is an illustrative example based on standard AVideo/WordPress plugin conventions.Hypothesized Payload Structure:
The plugin likely accepts username and password (or user and pass) as JSON or form-encoded data.
PoC (Illustrative):
# Step 1: Identify a valid username (e.g., 'admin')
# Step 2: Send login request to AVideo's login endpoint
# Note: The exact parameter names and content-type may vary.
# This is a generic representation of the attack vector.
curl -X POST "http://target.com/avideo/login.json.php" \
-H "Content-Type: application/json" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
-d '{
"username": "admin",
"password": "attacker_known_wp_password_or_guessed"
}'Mechanism:
1. The request hits login.json.php.
2. The plugin extracts the username and password.
3. The plugin queries the WordPress database for a user with the given username.
4. Vulnerable Logic: Instead of strictly validating the password against the AVideo user's credentials or using a secure, stateful session token, the plugin may:
* Check if the WP user exists.
* Verify the password against the WP user's hash (if the attacker knows the WP password).
OR, more critically, if the plugin has a flaw where it trusts the username match alone in certain contexts, or if it allows login with any valid WP password for that username, the attacker can use their own WP credentials (if they have an account with the same username, which is impossible in standard WP, but the CVE says "Attackers holding a WordPress account with the victim's username" - this phrasing is slightly ambiguous. It likely means the attacker has a WP account, and if they can guess or know the victim's WP username, and the AVideo plugin maps AVideo users to WP users by username, and the authentication check is flawed, they can log in. Alternatively, it might mean the plugin allows login if the WP user exists and the password is any valid password for any* user, which is a severe flaw. Given the CVSS, it's likely a direct credential validation bypass or a mapping flaw where the AVideo session is established based on the WP user ID without proper secondary verification).
Correction based on standard WP behavior: You cannot have two WP accounts with the same username. Therefore, "holding a WordPress account with the victim's username" is impossible unless the attacker is the victim. This suggests the CVE description might be slightly imprecise, or it implies that the attacker can impersonate the victim's WP account by exploiting a flaw in how the plugin validates the WP session or credentials. A more plausible technical interpretation is that the plugin allows login to AVideo if the provided WP credentials are valid for any WP user, and then it maps that WP user to an AVideo user. If the attacker has a valid WP account (e.g., subscriber), and the plugin has a flaw where it doesn't properly check if the WP user is authorized to log in to AVideo, or if it allows login with any valid WP credential and then grants AVideo access based on a flawed mapping, the attacker can gain access. However, the most direct interpretation of "authentication bypass" with PR:N is that the attacker does not* need valid WP credentials, but can bypass the check entirely by manipulating the request. Let's assume the flaw is that the plugin fails to properly validate the password or session, allowing an unauthenticated attacker to set the session as a valid user.
Re-evaluating the CVE text: "allows unauthenticated attackers to log in as any account by matching usernames... Attackers holding a WordPress account with the victim's username can POST credentials..." This is contradictory. If you are unauthenticated, you don't hold an account. The likely scenario is: The plugin has a flaw where it checks if the username exists in WP. If it does, it might proceed to check the password. If the password check is bypassed or flawed, the attacker can log in. The "holding a WordPress account" part might be a red herring or a misstatement, implying that the attacker needs to know the username. Let's assume the core flaw is that the password validation is bypassed or the session is not properly bound.
Refined PoC (Assuming Password Bypass or Flawed Validation):
# If the vulnerability allows login with just the username (password bypass)
curl -X POST "http://target.com/avideo/login.json.php" \
-H "Content-Type: application/json" \
-d '{
"username": "admin",
"password": ""
}'Or, if it requires a valid WP password but the mapping is flawed:
# Attacker has a WP account 'attacker' with password 'pass123'
# Attacker tries to log in to AVideo as 'admin' using 'attacker's' credentials? Unlikely.
# More likely: The plugin allows login if the WP user exists, and the password field is ignored or weakly validated.Given the CVSS PR:N (No Privileges Required), the most accurate technical interpretation is that the authentication check is completely bypassed or trivially bypassed (e.g., empty password, null byte, or specific parameter manipulation) for any existing username.
3. Post-exploitation
PHPSESSID or a custom AVideo token). The attacker captures this cookie.admin username), they gain full control over the AVideo platform.🌍 Real World Impact
🛡️ Remediation & Mitigation
1. Upgrade
# Example for a manual update (replace with actual update procedure)
cd /var/www/html/avideo
git pull origin master
# Or download the latest version from the official source and replace files2. Workarounds
LoginWordPress plugin in the AVideo admin panel. This will break WordPress-based login, but you can switch to native AVideo authentication or another SSO method.login.json.php: Use a WAF or web server configuration to block unauthenticated access to login.json.php or require a valid session token before allowing login attempts.SecRule REQUEST_URI "@rx ^/avideo/login\.json\.php$" \
"id:100001,phase:1,deny,status:403,msg:'Blocked access to vulnerable login endpoint',log"Nginx Configuration:*
location ~* /avideo/login\.json\.php {
# Require a valid session cookie or IP whitelist
if ($cookie_PHPSESSID = "") {
return 403;
}
}3. Detection
/avideo/login.json.php with unusual patterns:POST /avideo/login.json.php HTTP/1.1
Content-Type: application/json
{"username":"admin","password":""}plugins/ or themes/ folders.⚠️ Urgency
LoginWordPress plugin and restrict access to login.json.php.[🤖 CVE Professor AI Security Engine]
FOFA Query