Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege authenticated session in any tenant
-
DeliveryEnumerate or guess target tenant identifier
-
ExploitCraft GET /api/system/sys/dept/page with forged X-Tenant-Id header
-
ExecutiongetTenantId passes attacker value to MyBatis-Plus Tenant Plugin
-
PersistPlugin scopes SQL query to target tenant
-
ImpactRetrieve cross-tenant department records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Exploitation requires possession of a valid low-privilege authenticated session in any tenant within the ZS-Admin deployment - the attacker does not need credentials for, or membership in, the target tenant. The specific vulnerable condition is that the application's getTenantId function reads the tenant scope from the client-controlled X-Tenant-Id HTTP request header on the /api/system/sys/dept/page endpoint, rather than from server-side session state. The attacker must also know or enumerate a valid tenant identifier for the target tenant; no mechanism to enumerate tenant IDs is described in available data, which may represent a practical barrier. Exploitation is strictly limited to read-only retrieval of department listing data (VC:L); no data modification, privilege escalation, or availability impact is possible through this vector. The vulnerability is only meaningful in multi-tenant deployments - single-tenant installations are not affected in practice. |
| Impact | The CVSS 4.0 base score of 2.1 accurately reflects the narrow blast radius: the attack is network-reachable (AV:N), low complexity (AC:L), requires no special attack prerequisites (AT:N), but demands a valid low-privilege authenticated session (PR:L), and yields only limited confidentiality exposure (VC:L) with zero integrity or availability impact. The E:P supplemental metric confirms publicly available exploit code, which elevates practical risk above the raw score suggests in active multi-tenant deployments. No CISA KEV listing exists and EPSS data was not provided, indicating no confirmed widespread exploitation. The real-world risk is context-dependent: in single-tenant deployments the vulnerability is irrelevant, but in multi-tenant SaaS or shared-infrastructure scenarios it directly undermines the core tenancy isolation boundary, which may carry compliance implications (e.g., data segregation requirements). The low CVSS score is technically defensible but may understate organizational risk where cross-tenant data exposure triggers regulatory obligations. |
| Exploit ScenarioDerived | An attacker with any valid low-privilege account in tenant A sends a GET request to /api/system/sys/dept/page, replacing their legitimate tenant ID in the X-Tenant-Id header with the known or guessed identifier of tenant B. The getTenantId function passes this value unchecked to the MyBatis-Plus Tenant Plugin, which scopes the resulting SQL query to tenant B's data and returns its department listing to the attacker. A public proof-of-concept demonstrating this exact technique is available in GitHub issue #5 of the zs-admin-java repository. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 21, 2026
Authorization bypass in ZS-Admin's multi-tenant API layer allows authenticated remote attackers to read department listing data belonging to other tenants by supplying an arbitrary value in the X-Tenant-Id HTTP header against the /api/system/sys/dept/page endpoint. The root cause is the getTenantId function of the MyBatis-Plus Tenant Plugin trusting a client-controlled header rather than deriving tenant scope from the authenticated session server-side. A public proof-of-concept is available via GitHub issue #5; no vendor patch or acknowledgment has been issued and the project has not responded to the disclosure.
RemediationAI
No vendor-released patch has been identified at time of analysis; the project had not responded to the disclosure as of the report date. Monitor https://github.com/zsadmin2025/zs-admin-java/issues/5 and https://vuldb.com/vuln/380829 for patch availability. As an immediate compensating control, the getTenantId function should be patched locally to derive the tenant identifier exclusively from the server-side authenticated session context rather than from any client-supplied header - this eliminates the root cause entirely. As a secondary network-layer control, a WAF rule that strips or rejects X-Tenant-Id header values that do not match the value bound to the authenticated session token can reduce exploitation risk without requiring code changes, though it introduces dependency on session-to-header correlation logic at the WAF layer. Additionally, restricting the /api/system/sys/dept/page endpoint to internal networks or IP allowlists reduces exposure to external attackers but does not protect against insider threat or compromised low-privilege accounts.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ZS-Admin is a Java-based administrative platform integrating MyBatis-Plus, a widely used ORM enhancement for the MyBatis SQL mapper framework. MyBatis-Plus includes a Tenant Plugin designed to enforce multi-tenant data isolation by automatically injecting tenant-scoped WHERE clauses into SQL queries. The vulnerable getTenantId function sources the tenant identifier directly from the client-supplied X-Tenant-Id HTTP request header, passing it to the plugin without validating that the authenticated user's session is authorized for that tenant. CWE-639 (Authorization Bypass Through User-Controlled Key) precisely describes this class: the application uses an attacker-controllable key as the sole authorization boundary for a security-sensitive operation. The CPE cpe:2.3:a:zsadmin2025:zs-admin:*:*:*:*:*:*:*:* covers all versions up to commit b52e14536d59fda11e56e2536a1c32e82a38cead.
Know when Zs Admin 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:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Network-reachable endpoint requires a valid low-privilege session; impact is limited to reading cross-tenant department listings with no integrity, availability, or scope-change effect.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was identified in zsadmin2025 ZS-Admin up to b52e14536d59fda11e56e2536a1c32e82a38cead. This affects the function getTenantId of the file /api/system/sys/dept/page of the component MyBatis-Plus Tenant Plugin. Such manipulation of the argument X-Tenant-Id leads to authorization bypass. The attack may be performed from remote. The exploit is publicly available and might be used. This product utilizes a rolling release system for continuous delivery, and as such, version information for affected or updated releases is not disclosed. The project was informed of the problem early through an issue report but has not responded yet.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Unrestricted file upload in ZS-Admin (zsadmin2025/zs-admin-java) exposes the /api/system/file/upload API endpoint to mal
SQL injection in ZS-Admin (zsadmin2025) exposes authenticated remote attackers to database manipulation via the orderFie
EUVD-2026-46283
GHSA-xgfr-74fv-qv4q
NVD
CVE.org
EPSS
VulDB
Exploit-DB