🔍 CVE-2022-41923

9.1
CVSS Score
CRITICAL
2022-11-23
2026-06-17 05:04
✅ 완료

🇰🇷 한글 설명

Grails Spring Security Core 플러그인에서 권한 상승 취약점이 발견되었습니다. 공격자가 특정 엔드포인트의 권한 요구사항을 다른 엔드포인트의 요구사항으로 우회하여 대상 엔드포인트에 접근할 수 있습니다. 이로 인해 비인가된 권한 획득 및 시스템 침해로 이어질 수 있습니다.

💡 쉬운 설명

보안 검사관이 문을 확인할 때, 옆에 있는 다른 문을 확인한 것으로 착각하게 만들어 금지된 구역에 들어가는 보안 결함입니다. 이를 통해 공격자는 원래 들어갈 수 없는 중요한 데이터나 기능에 접근할 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Grails Spring Security Core plugin 1.x, 2.x, 3.0.0~3.3.1, 4.0.0~4.0.4, 5.0.0~5.1.0

⚔️ 공격 벡터

권한 검사 로직의 URI 계산 오류를 악용하여 다른 엔드포인트의 권한을 사용하여 대상 엔드포인트에 접근

🛡️ 대응 방법

grails-spring-security-core 플러그인을 버전 3.3.2, 4.0.5 또는 5.1.1 이상으로 업데이트하십시오.

🔧 검증 코드

명령어 결과에 취약한 버전 범위가 나타나면 해당 프로젝트는 보안 업데이트가 필요한 상태입니다.

Shell / Script
grep -r "grails-spring-security-core" build.gradle pom.xml | grep -E '3\.[0-3]\.[0-1]|4\.[0-0]\.[0-4]|5\.[0-1]\.[0-0]'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

💻 영향받는 소프트웨어

Spring Framework