// For flags

CVE-2022-41923

Grails Spring Security Core plugin vulnerable to privilege escalation

Severity Score

9.8
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

1
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
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 &gt;=3.0.0 &lt;3.3.2 &gt;=4.0.0 &lt;4.0.5 &gt;=5.0.0 &lt;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.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
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
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