Skip to main content
Vulnerability Database/CVE-2026-111669

CVE-2026-111669: ZR.Admin.NET SQL Injection Vulnerability

CVE-2026-111669 is a SQL injection flaw in ZR.Admin.NET through version 3.8.2 that lets authenticated attackers manipulate ORDER BY clauses to extract database contents. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111669 Overview

CVE-2026-111669 is a SQL injection vulnerability affecting ZR.Admin.NET versions through 3.8.2. The flaw resides in the shared ToPage paging helper, which concatenates the PagerInfo.Sort query parameter directly into the ORDER BY clause without sanitization. Authenticated attackers holding the system:user:list permission can submit crafted GET /system/user/list requests to inject subquery or CASE expressions. Blind SQL injection techniques enable extraction of database contents, including stored credentials. The weakness is classified under CWE-89.

Critical Impact

Authenticated attackers can exfiltrate database contents, including hashed credentials, through blind SQL injection in the ORDER BY clause.

Affected Products

  • ZR.Admin.NET through version 3.8.2
  • ZR.Admin.WebApi (SysUserController)
  • ZR.Repository (BaseRepository ToPage helper)

Discovery Timeline

  • 2026-10-16 - CVE-2026-111669 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-111669

Vulnerability Analysis

The vulnerability resides in the ToPage paging helper within ZR.Repository/BaseRepository.cs. The helper constructs a dynamic ORDER BY clause by interpolating the user-controlled parm.Sort value directly into the SQL string. Any authenticated user with the system:user:list permission can reach the sink through endpoints such as GET /system/user/list.

Because the response does not return raw query results aligned with the injected payload, attackers rely on blind techniques. Payloads using CASE WHEN expressions or nested subqueries introduce conditional behavior into the ORDER BY clause. Row ordering changes based on predicate truth, allowing byte-by-byte extraction of sensitive columns such as password hashes from the sys_user table.

Root Cause

The root cause is improper neutralization of special elements in a SQL command [CWE-89]. The ToPage helper trusts the PagerInfo.Sort string and passes it to SqlSugar's OrderByIF method without filtering. ORDER BY clauses cannot be parameterized through standard prepared statements, so the application must apply strict allowlisting of column names. The pre-patch code performs no such validation.

Attack Vector

Exploitation requires network access to the ZR.Admin.NET web interface and a valid session with the system:user:list permission. The attacker supplies a crafted PagerInfo.Sort value in the query string. The injected expression executes against the backend database with the privileges of the application's database user, exposing any data the account can read.

text
             page.PageSize = parm.PageSize;
             page.PageIndex = parm.PageNum;
 
-            page.Result = source.OrderByIF(parm.Sort.IsNotEmpty(), $"{parm.Sort} {(parm.SortType.Contains("desc") ? "desc" : "asc")}")
+            page.Result = source.OrderByIF(parm.Sort.IsNotEmpty(), $"{parm.Sort.ToSqlFilter()} {(parm.SortType.Contains("desc") ? "desc" : "asc")}")
                 .ToPageList(parm.PageNum, parm.PageSize, ref total);
             page.TotalNum = total;
             return page;

Source: GitHub Commit d32c211. The patch applies ToSqlFilter() to the Sort parameter to strip SQL metacharacters before building the ORDER BY expression.

Detection Methods for CVE-2026-111669

Indicators of Compromise

  • HTTP requests to /system/user/list or similar paged endpoints containing SQL keywords such as CASE, WHEN, SELECT, or SLEEP in the PagerInfo.Sort parameter.
  • Repeated authenticated requests from a single session with incremental changes to the Sort parameter, consistent with blind SQL extraction.
  • Database logs showing anomalous ORDER BY clauses referencing subqueries against tables such as sys_user.

Detection Strategies

  • Deploy a web application firewall rule inspecting the Sort query parameter for SQL syntax tokens on all ZR.Admin.NET endpoints.
  • Enable database query auditing to flag ORDER BY expressions containing subqueries or conditional logic.
  • Correlate authentication logs with high-volume list endpoint requests to identify abuse of accounts holding the system:user:list permission.

Monitoring Recommendations

  • Alert on 4xx/5xx response spikes from paged endpoints, which often accompany blind SQL injection probing.
  • Track query latency outliers on the backend database that correlate with timing-based payloads.
  • Review account activity for users with administrative list permissions and investigate unusual access patterns.

How to Mitigate CVE-2026-111669

Immediate Actions Required

  • Upgrade ZR.Admin.NET to a version containing commit d32c211aeedab3e07bb4f02f54bb251fff37361c or later.
  • Revoke the system:user:list permission from accounts that do not require it until the patch is deployed.
  • Rotate any credentials that may have been exposed through the affected database.

Patch Information

The maintainer addressed the issue in commit d32c211 by applying the ToSqlFilter() sanitization helper to the Sort parameter inside BaseRepository.ToPage. Review the VulnCheck Advisory on SQL Injection and HackMD SQL Injection Analysis for additional context. Track releases on the Gitee ZrAdminNetCore Tags page.

Workarounds

  • Deploy a WAF rule that rejects requests where the Sort parameter contains characters outside [A-Za-z0-9_] or exceeds a short length limit.
  • Enforce an allowlist of permitted sort column names at a reverse proxy if source modification is not feasible.
  • Restrict the database account used by ZR.Admin.NET to the minimum tables and columns required for runtime operation.
bash
# Example ModSecurity rule to block SQL metacharacters in the Sort parameter
SecRule ARGS:PagerInfo.Sort "@rx [^A-Za-z0-9_]" \
    "id:1026111669,phase:2,deny,status:403,\
    msg:'CVE-2026-111669 ZR.Admin.NET Sort SQLi attempt'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.