CVE-2023-44794
Java vulnerability analysis and mitigation

Overview

An issue in Dromara SaToken version 1.36.0 and before was discovered that allows remote attackers to escalate privileges through a crafted payload to the URL. The vulnerability affects systems using SaToken with SpringBoot version 2.3.1.RELEASE or later, or Spring version 5.3.0 or later (NVD, GitHub Issue).

Technical details

The vulnerability stems from differential handling of URIs between SaToken and Spring frameworks. The authentication bypass occurs due to SaToken and Spring Boot/Spring using different pattern-matching techniques. The root cause lies in SaRequestForServlet.getRequestPath() function using HttpServletRequest.getServletPath() to obtain standardized servlet paths, while Spring's path handling differs in versions after 2.3.1.RELEASE. The vulnerability has been assigned a CVSS v3.1 Base Score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability allows remote attackers to bypass authentication mechanisms and escalate privileges, potentially gaining unauthorized access to protected resources. This could lead to complete system compromise due to the critical nature of the authentication bypass (NVD).

Mitigation and workarounds

Users should upgrade to SaToken version 1.37.0 or later to address this vulnerability. Alternatively, a temporary workaround is available by setting the Spring Boot configuration value: spring.mvc.pathmatch.matching-strategy = antpathmatcher (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management