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-102364 Overview
CVE-2026-102364 is an improper authentication vulnerability [CWE-287] affecting mall4j through version 4.0, an open-source Java-based e-commerce platform. The flaw resides in the AuthFilter component, which fails to validate the sysType field within sa-token sessions. As a result, tokens issued to storefront customers are accepted by back-office administrative endpoints. An attacker who registers as a customer on the public storefront can reuse that session token to reach admin API routes that lack @PreAuthorize permission checks, including menu listings, file uploads, and configuration endpoints.
Critical Impact
Storefront customers can authenticate against admin APIs, exposing menu enumeration, file upload, and configuration endpoints to low-privileged attackers.
Affected Products
- mall4j through 4.0
- gz-yami mall4j e-commerce platform
- Deployments using the yami-shop-security-commonAuthFilter
Discovery Timeline
- 2026-09-29 - CVE-2026-102364 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-102364
Vulnerability Analysis
mall4j uses sa-token for session management across two distinct user populations: storefront shoppers and back-office administrators. Both populations receive session tokens issued through the same authentication framework. The sysType claim is intended to distinguish which surface a token belongs to. The AuthFilter at yami-shop-security-common AuthFilter verifies token validity but does not enforce that the sysType matches the requested endpoint category. Admin controllers that omit @PreAuthorize role checks therefore treat any authenticated session as authorized.
Root Cause
The root cause is a missing authorization check between authentication and endpoint dispatch. Token authenticity is confirmed, but the token's intended audience is not enforced. This is a classic broken access control condition where authentication is conflated with authorization.
Attack Vector
An attacker registers a normal customer account through the public storefront registration flow. They capture the returned sa-token session identifier. The attacker then issues HTTP requests directly to admin API paths, presenting the customer token in the standard authentication header. Endpoints that rely solely on filter-level authentication return administrative data or accept administrative actions such as file uploads and configuration changes. Proof-of-concept scripts targeting the sys/menu route and multiple admin read endpoints are published in the CVE Request PoC repository and the Admin Endpoints PoC.
See the VulnCheck advisory for additional technical context.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-102364
Indicators of Compromise
- Requests to /sys/*, /admin/*, or file upload endpoints originating from session tokens issued through the storefront login or registration flow.
- Unexpected sysType value mismatches between the requesting token and the target controller in application logs.
- Newly registered storefront accounts making rapid enumeration requests against back-office API paths.
Detection Strategies
- Instrument the AuthFilter to log the sysType field alongside the resolved endpoint category and alert on mismatches.
- Compare authentication events issued by the storefront login endpoint with subsequent access to administrative URIs sharing the same token identifier.
- Deploy web application firewall rules that block storefront-issued tokens from reaching admin URI patterns.
Monitoring Recommendations
- Baseline normal admin API traffic sources and alert on requests from IP ranges historically limited to storefront usage.
- Monitor file upload endpoints for uploads initiated by accounts that never accessed the admin login page.
- Track access to sensitive routes such as sys/menu and configuration endpoints for volume anomalies.
How to Mitigate CVE-2026-102364
Immediate Actions Required
- Restrict admin API paths to trusted networks via reverse proxy or firewall until a code fix is deployed.
- Add @PreAuthorize role checks to all admin controllers that currently rely on filter-level authentication.
- Modify the AuthFilter to reject requests where the token sysType does not match the endpoint's expected surface.
Patch Information
No vendor patch is referenced in the available advisory data. Operators should track the mall4j GitHub repository for security releases and review the VulnCheck advisory for updates.
Workarounds
- Segment the admin console onto a separate hostname or VLAN and enforce network-level access control lists.
- Require multi-factor authentication and IP allow-listing on the administrative interface.
- Audit all admin controllers and add explicit role-based authorization annotations to endpoints missing them.
# Example nginx block restricting admin routes to an internal CIDR
location /sys/ {
allow 10.0.0.0/8;
deny all;
proxy_pass http://mall4j_backend;
}
location /admin/ {
allow 10.0.0.0/8;
deny all;
proxy_pass http://mall4j_backend;
}
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

