Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft request with malicious videos_id parameter
-
DeliveryInject SQL payload into query string
-
ExploitBypass partial prepared statement protection
-
ExecutionExecute arbitrary SQL commands
-
ImpactExtract or modify sensitive database records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Authenticated user account required. Attacker must control the videos_id parameter in a request to the getLike() method in objects/like.php of the affected application to inject arbitrary SQL commands. |
| Impact | Real-world exploitation risk is significant despite requiring authentication. Any registered user can trigger like/dislike functionality, making the attack surface broad rather than limited to privileged accounts. The proof-of-concept demonstrates trivial UNION-based extraction of user credentials, indicating low attack complexity once authenticated. Without CVSS vector data, precise privilege requirements cannot be confirmed from scoring metrics, but the description indicates standard user authentication suffices. No EPSS score is available for quantitative exploitation probability assessment, and no CISA KEV listing confirms active exploitation. However, publicly available exploit code exists in the form of the documented proof-of-concept, lowering the barrier for opportunistic attackers. The technical impact is severe-full database read access with potential for modification depending on database user privileges. Priority should be high for any deployment with user registration enabled, as the combination of low exploitation barrier (authenticated users are common) and high impact (credential theft, data exfiltration) creates substantial risk despite the authentication prerequisite. |
| Exploit ScenarioDerived | An authenticated attacker registers a standard user account on an AVideo platform instance. The attacker crafts a like request with a malicious videos_id payload such as '1 UNION SELECT user,password,3,4,5,6,7,8 FROM users-- -' and submits it to the like endpoint. The vulnerable getLike() method constructs the SQL query with the injected payload, executing a UNION attack that returns user credentials instead of like status. The attacker retrieves administrator password hashes, emails, and potentially session tokens, enabling account takeover and further system compromise. Publicly available exploit code exists demonstrating this attack vector. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 26, 2026
SQL injection in WWBN AVideo objects/like.php allows authenticated users to read and potentially modify the entire database by injecting malicious payloads into the videos_id parameter during like/dislike actions. The vulnerability affects pkg:composer/wwbn_avideo and arises from mixing parameterized queries with direct string concatenation. A proof-of-concept UNION-based injection exists demonstrating credential extraction. Upstream fix available (PR/commit); released patched version not independently confirmed.
RemediationAI
Apply the upstream fix available at commit 0215d3c4f1ee748b8880254967b51784b8ac4080 from the WWBN AVideo repository (https://github.com/WWBN/AVideo/commit/0215d3c4f1ee748b8880254967b51784b8ac4080). The patch replaces string concatenation with proper parameterized binding for the videos_id value. Consult the GitHub security advisory at https://github.com/WWBN/AVideo/security/advisories/GHSA-fj74-qxj7-r3vc for vendor guidance on applying the fix. Until patching is completed, consider implementing input validation at the application layer to restrict videos_id to integer values only, though this is an interim measure and not a substitute for the proper fix. Database user privilege restriction can limit impact by preventing data modification, but read access exploitation remains viable.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the getLike() method of objects/like.php within the WWBN AVideo platform (pkg:composer/wwbn_avideo). The code implements hybrid SQL construction where users_id uses prepared statement placeholders but videos_id is directly concatenated without sanitization or type-casting. This violates CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) principles. While the codebase correctly uses parameterized queries elsewhere in the same file, this specific method creates an inconsistent security boundary. The sqlDAL::readSql wrapper accepts a prepared statement format but only binds the users_id parameter, leaving videos_id vulnerable to injection. This represents a classic second-order SQL injection vector where user-controllable data from video identification flows unsanitized into database queries.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (https://github.com/WWBN/AVideo) · only source for this CVE.
CVSS VectorVendor: https://github.com/WWBN/AVideo
Lifecycle Timeline
2DescriptionCVE.org
Summary
In objects/like.php, the getLike() method constructs a SQL query using a prepared statement placeholder (?) for users_id but directly concatenates $this->videos_id into the query string without parameterization. An attacker who can control the videos_id value (via a crafted request) can inject arbitrary SQL, bypassing the partial prepared-statement protection.
Details
File: objects/like.php
Vulnerable code:
$sql = "SELECT * FROM likes WHERE users_id = ? AND videos_id = ".$this->videos_id." LIMIT 1;";
$res = sqlDAL::readSql($sql, "i", [$this->users_id]);The query mixes a parameterized placeholder for users_id with raw string concatenation for videos_id. The $this->videos_id value originates from user-supplied request input (typically a POST/GET parameter identifying the video being liked/disliked) and is not cast to integer or validated before being embedded in the SQL string.
All other queries in the same file correctly use ? placeholders for both columns:
// Correct pattern used elsewhere:
$sql = "SELECT count(*) as total FROM likes WHERE videos_id = ? AND like = 1";The inconsistency means any attacker who can submit a like/dislike action with a crafted videos_id can inject SQL. Since like/dislike actions are typically available to any authenticated user, the attack surface is broad.
PoC
An attacker sends a like request with an injected videos_id:
POST /objects/likeAjax.json.php
videos_id=1 UNION SELECT user,password,3,4,5,6,7,8 FROM users-- -This causes the backend to execute:
SELECT * FROM likes WHERE users_id = 1 AND videos_id = 1 UNION SELECT user,password,3,4,5,6,7,8 FROM users-- - LIMIT 1;Result: full database read - user credentials, emails, private content, and any other data accessible to the MySQL user.
Impact
- Severity: High
- Authentication required: Yes (must be logged in to like a video), but all registered users qualify
- Impact: Full database read via UNION-based injection; potential for data modification or deletion depending on DB user privileges
- Fix: Replace the concatenation with a second
?placeholder and pass$this->videos_idas a bound integer parameter
Executive ViewAI
WWBN AVideo, a self-hosted video platform, contains a SQL injection vulnerability in its like/dislike functionality that allows authenticated users to read and modify the entire database, including extracting credentials. Organizations using WWBN AVideo require immediate patching to prevent unauthorized data access and manipulation by internal or compromised user accounts.
Apply vendor patch. If immediate patching is not feasible: implement Web Application Firewall rules to block SQL injection patterns in the videos_id parameter; restrict database user permissions to least-privilege principles; enable database query logging and alerting for anomalous SQL activity; consider disabling the like/dislike feature temporarily until patched.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)CVE.org
Related Vulnerabilities in Video Platform SQL Injection Vulnerabilities
View all 2In 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
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB