Skip to main content

mall4j CVE-2026-102364

| EUVDEUVD-2026-88580 MEDIUM
Improper Authentication (CWE-287)
2026-09-29 disclosure@vulncheck.com GHSA-7f4q-fvgh-44w4
5.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Register account on public storefront
  2. Delivery
    Obtain valid customer sa-token session
  3. Exploit
    Replay token against admin API endpoints
  4. Execution
    Bypass missing @PreAuthorize on back-office routes
  5. Impact
    Read 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mall4j 0 ≤4.0

Affected Packages

euvd mall4j no fix

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

Vendor (vulncheck) PRIMARY 5.3 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
popular open-source Java/Spring B2B2C e-commerce platform, widely used in China
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy