🔍 CVE-2018-15758

9.6
CVSS Score
CRITICAL
2018-10-18
2026-06-17 01:43
✅ 완료

🇰🇷 한글 설명

Spring Security OAuth의 특정 버전에서 권한 상승 취약점이 발견되었습니다. 공격자가 승인 엔드포인트로 조작된 요청을 보내 이전에 저장된 권한 요청을 수정함으로써 권한을 탈취할 수 있습니다. 이 취약점은 커스텀 승인 엔드포인트를 사용하여 AuthorizationRequest를 컨트롤러 메서드 인자로 선언한 경우에만 발생합니다.

💡 쉬운 설명

해커가 가짜 요청을 보내 사용자의 권한을 몰래 변경하여 더 높은 권한을 얻을 수 있는 문제입니다. 보안 설정이 기본값이 아닌 사용자 정의 방식으로 만들어졌을 때 발생합니다.

🇺🇸 원문 (English)

Spring Security OAuth, versions 2.3 prior to 2.3.4, and 2.2 prior to 2.2.3, and 2.1 prior to 2.1.3, and 2.0 prior to 2.0.16, and older unsupported versions could be susceptible to a privilege escalation under certain conditions. A malicious user or attacker can craft a request to the approval endpoint that can modify the previously saved authorization request and lead to a privilege escalation on the subsequent approval. This scenario can happen if the application is configured to use a custom approval endpoint that declares AuthorizationRequest as a controller method argument. This vulnerability exposes applications that meet all of the following requirements: Act in the role of an Authorization Server (e.g. @EnableAuthorizationServer) and use a custom Approval Endpoint that declares AuthorizationRequest as a controller method argument. This vulnerability does not expose applications that: Act in the role of an Authorization Server and use the default Approval Endpoint, act in the role of a Resource Server only (e.g. @EnableResourceServer), act in the role of a Client only (e.g. @EnableOAuthClient).

📍 영향받는 시스템

Spring Security OAuth 2.3.4 미만, 2.2.3 미만, 2.1.3 미만, 2.0.16 미만 및 이전 지원 종료 버전

⚔️ 공격 벡터

커스텀 승인 엔드포인트에 조작된 요청을 전송하여 저장된 권한 요청 데이터를 변조함

🛡️ 대응 방법

Spring Security OAuth를 최신 보안 패치가 적용된 버전(2.3.4, 2.2.3, 2.1.3, 2.0.16 이상)으로 업데이트하십시오.

🔧 검증 코드

출력된 결과에서 spring-security-oauth의 버전이 취약한 버전 범위에 포함되는지 확인하십시오.

Shell / Script
mvn dependency:tree | grep 'spring-security-oauth'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring Security