Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister account on public storefront
-
DeliveryObtain valid customer sa-token session
-
ExploitReplay token against admin API endpoints
-
ExecutionBypass missing @PreAuthorize on back-office routes
-
ImpactRead config / list menus / upload files as admin
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the attacker to hold a valid storefront customer sa-token session, which is trivially obtained since mall4j permits open self-registration on the public storefront (hence PR:L, not PR:N). The core enabling condition is that the sa-token session layer never validates the sysType field distinguishing customer from back-office identity. Actual impact is LIMITED to admin endpoints that lack an @PreAuthorize permission annotation - endpoints that correctly enforce @PreAuthorize are NOT bypassable, so the realistic exposure varies by which admin routes the deployment left unprotected (documented examples: menu listings, file uploads, configuration endpoints). No user interaction and no non-default configuration are required. |
| Impact | This is a genuine but moderate-priority vertical privilege-escalation flaw, not a high-CVSS-but-low-real-risk issue nor a critical emergency. The vendor CVSS 4.0 base score is 5.3 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N), which aligns with the mechanism: network-reachable, low attack complexity, requires only a low-privilege (self-registerable storefront customer) account, no user interaction, and limited confidentiality/integrity impact confined to admin endpoints that lack @PreAuthorize checks. Exploitation status: publicly available exploit code exists (two VulnCheck-linked PoC scripts on GitHub), but there is NO CISA KEV listing and NO EPSS score provided, so there is no evidence of active or widespread exploitation - PoC availability and active exploitation are distinct signals. No SSVC decision data was supplied. The main caveat: real impact depends on how many admin endpoints in a given deployment are missing @PreAuthorize annotations; endpoints that DO enforce permission checks remain protected, which bounds the blast radius and justifies the 'Limited' (VC:L/VI:L) rather than 'High' impact rating. |
| Exploit ScenarioDerived | An attacker registers a normal customer account on mall4j's public storefront and captures the sa-token session token issued to them. Because the framework never checks the session's sysType, the attacker replays that customer token against back-office admin API paths, and any admin endpoint missing an @PreAuthorize check (menu listings, file upload, configuration reads) accepts it as a legitimate back-office user. Public PoC scripts (A05_sys_menu_missing_perm.py, A09_admin_read_endpoints_bfla.py) demonstrate the menu-permission bypass and admin read BFLA. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 29, 2026
Vertical privilege escalation in mall4j through 4.0 lets any self-registered storefront customer reach back-office administrative endpoints - including menu listings, file uploads, and configuration routes - by presenting the same sa-token session that was issued for the customer storefront. The flaw (CWE-287 improper authentication) is that the session validation layer never checks the sysType field that is supposed to separate customer from admin identity, so only endpoints already guarded by @PreAuthorize remain safe. Independently assessed at CVSS 5.3 with limited confidentiality and integrity impact, this is a genuine but moderate-priority privilege-escalation bug; publicly available exploit code exists, and there is no KEV-listed evidence of confirmed active exploitation.
RemediationAI
No vendor-released patch was identified in the available intelligence at time of analysis, so treat the following as compensating controls. The highest-fidelity fix is in code: make AuthFilter (and any equivalent sa-token validation path) compare the session's sysType against the realm of the requested route and reject storefront tokens on admin paths - this closes the entire bug class, but it requires rebuilding and redeploying the affected service and regression-testing legitimate admin logins. In parallel, audit every admin controller and add @PreAuthorize permission annotations to any route missing one; this takes effect immediately for the enumerated endpoints (menu listings, file uploads, configuration endpoints) but is fragile, because each newly added admin endpoint re-opens the hole unless the convention is enforced in code review. Network-level containment: place the admin API behind a VPN or IP allow-list, or block admin paths at the reverse proxy/WAF for untrusted sources - quick to apply, but it does not help deployments that require public admin access and will lock out legitimate remote operators if the allow-list is misconfigured. Disabling or invitation-gating storefront self-registration removes the easiest way for an attacker to obtain a customer token, at the cost of blocking ordinary customer signups. Because tokens minted before remediation remain usable, invalidate existing sa-token sessions after applying the fix. Reference advisory: https://www.vulncheck.com/advisories/mall4j-through-4.0-improper-authentication-accepts-storefront-tokens-on-admin-api.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
mall4j (yami-shop) is a Java/Spring Boot e-commerce platform that uses the sa-token framework for session management across two logical realms: the public storefront for customers and the back-office management console. Sa-token sessions carry a sysType value intended to distinguish those realms, but the platform's AuthFilter - the logic around lines 60-119 of yami-shop-security/yami-shop-security-common/src/main/java/com/yami/shop/security/common/filter/AuthFilter.java in the upstream repository - authenticates a request whenever a token resolves to a valid session and never compares the token's sysType to the realm of the endpoint being called. That is a textbook CWE-287 improper authentication failure: the identity is verified but the asserted type or context of that identity is not. Authorization therefore falls entirely to per-endpoint @PreAuthorize annotations; endpoints that carry the annotation block the attack, while admin routes that omit it are reachable with any customer token. The realistic exposure is bounded to whichever unprotected admin endpoints a given deployment exposes, as the independent assessment notes. The attack requires only a valid storefront customer session, which is trivially obtained because mall4j permits open self-registration on the public storefront (consistent with the PR:L rating rather than PR:N), and it requires no user interaction and no non-default configuration.
Know when Java 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:L/VA:N/SC:N/SI:N/SA:N
Network-reachable with low complexity; PR:L because a freely-registerable customer account is needed; C:L/I:L as impact is confined to unprotected admin endpoints; A:N and scope unchanged.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
mall4j through 4.0 fails to validate the sysType field in sa-token sessions, allowing storefront customers to authenticate as back-office users by reusing their session tokens. Attackers can register on the public storefront and use their customer session token to access admin endpoints lacking @PreAuthorize permission checks, including menu listings, file uploads, and configuration endpoints.
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.
Related Vulnerabilities in mall4j Missing Auth and Access Control Vulnerabilities
View all 7Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-88580
GHSA-7f4q-fvgh-44w4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB