CVE-2022-41923
Grails Spring Security Core plugin vulnerable to privilege escalation
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
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.
El complemento Grails Spring Security Core es vulnerable a la escalada de privilegios. La vulnerabilidad permite que un atacante acceda a un endpoint (es decir, el endpoint objetivo) utilizando los requisitos de autorización de un endpoint diferente (es decir, el endpoint donante). En algunas aplicaciones del framework Grails, el acceso al endpoint de destino se otorgará en función del cumplimiento de los requisitos de autorización del endpoint donante, lo que puede resultar en un ataque de escalada de privilegios. Esta vulnerabilidad se ha solucionado en las versiones 3.3.2, 4.0.5 y 5.1.1 de Grails-spring-security-core. Aplicaciones afectadas: Versiones del complemento Grails Spring Security Core: 1.x 2.x >=3.0.0 <3.3.2 >=4.0.0 <4.0.5 >=5.0.0 <5.1.1 Nosotros Sugerimos encarecidamente que todas las aplicaciones del marco de Grails que utilicen el complemento Grails Spring Security Core se actualicen a una versión parcheada del complemento. Workarounds: los usuarios deben crear una subclase que extienda una de las siguientes clases del paquete `grails.plugin.springsecurity.web.access.intercept`, dependiendo de su configuración de seguridad:
* `AnnotationFilterInvocationDefinition`
* `InterceptUrlMapFilterInvocationDefinition`
* `RequestmapFilterInvocationDefinition`
En este caso, la subclase debe anular el método `calculateUri` de la siguiente manera:
``` @Override protected String calcularUri(HttpServletRequest request) { UrlPathHelper.defaultInstance.getRequestUri(request) } ```
Esto debe considerarse una medida temporal, ya que el parche las versiones de grails-spring-security-core desaprueban el método `calculateUri`. Una vez actualizado a una versión parcheada del complemento, este workaround ya no es necesario. El workaround es especialmente importante para la versión 2.x, ya que no hay ningún parche disponible para la versión 2.x del complemento GSSC.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-09-30 CVE Reserved
- 2022-11-23 CVE Published
- 2024-07-14 EPSS Updated
- 2024-08-03 CVE Updated
- 2024-08-03 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-269: Improper Privilege Management
- CWE-863: Incorrect Authorization
CAPEC
References (3)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://github.com/grails/GSSC-CVE-2022-41923 | 2024-08-03 |
URL | Date | SRC |
---|---|---|
https://github.com/grails/grails-spring-security-core/security/advisories/GHSA-frqg-vvxg-jqqh | 2023-07-10 | |
https://grails.org/blog/2022-11-22-ss-plugin-auth-cve.html | 2023-07-10 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Grails Search vendor "Grails" | Spring Security Core Search vendor "Grails" for product "Spring Security Core" | >= 1.0 < 3.3.2 Search vendor "Grails" for product "Spring Security Core" and version " >= 1.0 < 3.3.2" | grails |
Affected
| ||||||
Grails Search vendor "Grails" | Spring Security Core Search vendor "Grails" for product "Spring Security Core" | >= 4.0.0 < 4.0.5 Search vendor "Grails" for product "Spring Security Core" and version " >= 4.0.0 < 4.0.5" | grails |
Affected
| ||||||
Grails Search vendor "Grails" | Spring Security Core Search vendor "Grails" for product "Spring Security Core" | >= 5.0.0 < 5.1.1 Search vendor "Grails" for product "Spring Security Core" and version " >= 5.0.0 < 5.1.1" | grails |
Affected
|