🇰🇷 한글 설명
Spring Security의 SubjectDnX509PrincipalExtractor가 잘못된 X.509 인증서 CN 값을 처리하는 과정에서 취약점이 발견되었습니다. 공격자가 악성 인증서를 생성하여 다른 사용자로 위장할 수 있으며, 이는 인증 우회로 이어질 수 있습니다.
💡 쉬운 설명
시스템이 인증서에서 사용자 이름을 읽을 때 잘못된 값을 인식하는 문제가 있습니다. 해커가 조작된 인증서를 사용하여 다른 사람인 것처럼 속일 수 있습니다.
🇺🇸 원문 (English)
SubjectDnX509PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user.
Affected versions:
Spring Security 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10.
📍 영향받는 시스템
Spring Security 5.7.0-5.7.24, 5.8.0-5.8.26, 6.3.0-6.3.17, 6.4.0-6.4.17, 6.5.0-6.5.10
⚔️ 공격 벡터
악성 X.509 인증서를 생성하여 인증서 기반 인증 시스템에 제출
🛡️ 대응 방법
Spring Security를 최신 안정 버전으로 즉시 업그레이드하십시오.
🔧 검증 코드
출력된 버전을 영향받는 버전 목록과 비교하여 패치 필요 여부를 확인합니다.
mvn dependency:tree -Dincludes=org.springframework.security:spring-security-core 2>/dev/null | grep -E 'spring-security-core'