🇰🇷 한글 설명
Apache Log4j Core 2.0-beta9부터 2.25.2 버전의 Socket Appender에서 TLS 호스트 이름 검증을 수행하지 않는 취약점이 발견되었습니다. 이로 인해 설정에서 호스트 이름 검증을 활성화하더라도 중간자 공격(MITM)을 통해 로그 트래픽이 가로채지거나 리디렉션될 수 있습니다.
💡 쉬운 설명
로그를 전송할 때 상대방이 진짜 서버인지 확인하는 절차가 제대로 작동하지 않는 문제입니다. 해커가 중간에서 가짜 서버를 통해 로그 내용을 훔쳐보거나 내용을 바꿀 위험이 있습니다.
🇺🇸 원문 (English)
The Socket Appender in Apache Log4j Core versions 2.0-beta9 through 2.25.2 does not perform TLS hostname verification of the peer certificate, even when the verifyHostName https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName configuration attribute or the log4j2.sslVerifyHostName https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName system property is set to true.
This issue may allow a man-in-the-middle attacker to intercept or redirect log traffic under the following conditions:
* The attacker is able to intercept or redirect network traffic between the client and the log receiver.
* The attacker can present a server certificate issued by a certification authority trusted by the Socket Appender’s configured trust store (or by the default Java trust store if no custom trust store is configured).
Users are advised to upgrade to Apache Log4j Core version 2.25.3, which addresses this issue.
As an alternative mitigation, the Socket Appender may be configured to use a private or restricted trust root to limit the set of trusted certificates.
📍 영향받는 시스템
Apache Log4j Core versions 2.0-beta9 through 2.25.2
⚔️ 공격 벡터
네트워크 트래픽을 가로챌 수 있는 위치에서 신뢰할 수 있는 인증서를 사용하여 중간자 공격(MITM) 수행
🛡️ 대응 방법
Apache Log4j Core 버전을 2.25.3 이상으로 업그레이드하거나, 제한된 신뢰 루트를 사용하도록 Socket Appender 설정 변경
🔧 검증 코드
출력된 jar 파일의 버전 번호가 2.25.2 이하인지 확인합니다.
find / -name "log4j-core*.jar" 2>/dev/null