CVE-2022-41923

Grails Spring Security Core plugin is vulnerable to privilege escalation. The vulnerability allows an attacker access to one endpoint (i.e. the targeted endpoint) using the authorization requirements of a different endpoint (i.e. the donor endpoint). In some Grails framework applications, access to the targeted endpoint will be granted based on meeting the authorization requirements of the donor endpoint, which can result in a privilege escalation attack. This vulnerability has been patched in grails-spring-security-core versions 3.3.2, 4.0.5 and 5.1.1. Impacted Applications: Grails Spring Security Core plugin versions: 1.x 2.x >=3.0.0 <3.3.2 >=4.0.0 <4.0.5 >=5.0.0 <5.1.1 We strongly suggest that all Grails framework applications using the Grails Spring Security Core plugin be updated to a patched release of the plugin. Workarounds: Users should create a subclass extending one of the following classes from the `grails.plugin.springsecurity.web.access.intercept` package, depending on their security configuration: * `AnnotationFilterInvocationDefinition` * `InterceptUrlMapFilterInvocationDefinition` * `RequestmapFilterInvocationDefinition` In each case, the subclass should override the `calculateUri` method like so: ``` @Override protected String calculateUri(HttpServletRequest request) { UrlPathHelper.defaultInstance.getRequestUri(request) } ``` This should be considered a temporary measure, as the patched versions of grails-spring-security-core deprecates the `calculateUri` method. Once upgraded to a patched version of the plugin, this workaround is no longer needed. The workaround is especially important for version 2.x, as no patch is available version 2.x of the GSSC plugin.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:grails:spring_security_core:*:*:*:*:*:grails:*:*
cpe:2.3:a:grails:spring_security_core:*:*:*:*:*:grails:*:*
cpe:2.3:a:grails:spring_security_core:*:*:*:*:*:grails:*:*

History

10 Jul 2023, 16:39

Type Values Removed Values Added
CWE CWE-269 CWE-863

01 Dec 2022, 15:33

Type Values Removed Values Added
CWE CWE-269
CPE cpe:2.3:a:grails:spring_security_core:*:*:*:*:*:grails:*:*
First Time Grails spring Security Core
Grails
References (CONFIRM) https://github.com/grails/grails-spring-security-core/security/advisories/GHSA-frqg-vvxg-jqqh - (CONFIRM) https://github.com/grails/grails-spring-security-core/security/advisories/GHSA-frqg-vvxg-jqqh - Patch, Third Party Advisory
References (MISC) https://grails.org/blog/2022-11-22-ss-plugin-auth-cve.html - (MISC) https://grails.org/blog/2022-11-22-ss-plugin-auth-cve.html - Patch, Vendor Advisory
References (MISC) https://github.com/grails/GSSC-CVE-2022-41923 - (MISC) https://github.com/grails/GSSC-CVE-2022-41923 - Mitigation, Third Party Advisory
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8

23 Nov 2022, 19:15

Type Values Removed Values Added
New CVE

Information

Published : 2022-11-23 19:15

Updated : 2023-12-10 14:48


NVD link : CVE-2022-41923

Mitre link : CVE-2022-41923

CVE.ORG link : CVE-2022-41923


JSON object : View

Products Affected

grails

  • spring_security_core
CWE
CWE-863

Incorrect Authorization

CWE-269

Improper Privilege Management