🔍 CVE-2019-3778

6.5
CVSS Score
MEDIUM
2019-03-07
2026-06-17 02:35
✅ 완료

🇰🇷 한글 설명

Spring Security OAuth의 특정 버전에서 발생하는 오픈 리다이렉트 취약점으로, 공격자가 조작된 redirect_uri를 사용하여 권한 부여 코드를 탈취할 수 있습니다. 이 취약점은 DefaultRedirectResolver를 사용하는 권한 부여 서버(Authorization Server) 역할의 애플리케이션에 영향을 미칩니다.

💡 쉬운 설명

로그인 과정에서 사용자를 엉뚱한 사이트로 몰래 보내 인증 정보를 가로채는 공격입니다. 공격자가 만든 가짜 주소로 인증 코드가 전달되어 계정 권한을 뺏길 수 있습니다.

🇺🇸 원문 (English)

Spring Security OAuth, versions 2.3 prior to 2.3.5, and 2.2 prior to 2.2.4, and 2.1 prior to 2.1.4, and 2.0 prior to 2.0.17, and older unsupported versions could be susceptible to an open redirector attack that can leak an authorization code. A malicious user or attacker can craft a request to the authorization endpoint using the authorization code grant type, and specify a manipulated redirection URI via the "redirect_uri" parameter. This can cause the authorization server to redirect the resource owner user-agent to a URI under the control of the attacker with the leaked authorization code. This vulnerability exposes applications that meet all of the following requirements: Act in the role of an Authorization Server (e.g. @EnableAuthorizationServer) and uses the DefaultRedirectResolver in the AuthorizationEndpoint. This vulnerability does not expose applications that: Act in the role of an Authorization Server and uses a different RedirectResolver implementation other than DefaultRedirectResolver, 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.5 미만, 2.2.4 미만, 2.1.4 미만, 2.0.17 미만 및 이전 지원 종료 버전

⚔️ 공격 벡터

공격자가 조작된 redirect_uri 파라미터를 포함한 요청을 권한 부여 엔드포인트로 전송하여 인증 코드를 탈취함

🛡️ 대응 방법

Spring Security OAuth를 최신 보안 패치가 적용된 버전(2.3.5, 2.2.4, 2.1.4, 2.0.17 이상)으로 업데이트하십시오.

🔧 검증 코드

출력된 결과에서 spring-security-oauth의 버전을 확인하여 취약한 버전 범위에 해당하는지 체크합니다.

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

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring Security