English
◀◁ 뒤로
취약점ID 14263
위험도 40
포트 22
프로토콜 TCP
분류 LSC
상세설명 원격 호스트에 Apache Log4j2 <=2.14.1 버전이 설치되어 있다.
Apache Log4j2 <=2.14.1 버전의 구성, 로그 메시지 및 매개변수에 사용되는 JNDI 기능은 공격자가 제어하는 LDAP 및 기타 JNDI 관련 엔드포인트로부터 보호하지 않습니다. 로그 메시지 또는 로그 메시지 매개변수를 제어할 수 있는 공격자는 메시지 조회 대체가 활성화된 경우 LDAP 서버에서 로드된 임의의 코드를 실행할 수 있습니다.

log4j 2.15.0부터 이 동작은 기본적으로 비활성화되어 있습니다. 이전 릴리스(>2.10)에서는 시스템 속성 "log4j2.formatMsgNoLookups"를 "true"로 설정하거나 클래스 경로에서 JndiLookup 클래스를 제거하여 이 동작을 완화할 수 있습니다(예: zip -q -d log4j-core-*.jar org /apache/logging/log4j/core/lookup/JndiLookup.class).

Java 8u121(https://www.oracle.com/java/technologies/javase/8u121-relnotes.html 참조)은 "com.sun.jndi.rmi.object.trustURLCodebase" 및 "com.sun.jndi.rmi.object.trustURLCodebase"를 기본값으로 설정하고, sun.jndi.cosnaming.object.trustURLCodebase"를 "false"로 변경하여 원격 코드 실행을 방지합니다.

* 알림: 이 점검항목은 점검하기 위한 호스트로 로그인 할 수 있는 관리자 권한을 가진 계정을 필요로 한다. 이러한 조건이 안되면 점검을 수행할 수 없으며 모든 취약한 호스트들에 대해서 거짓 음성반응(False Negative)을 보일 수 있다.

* 참고 사이트:
http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html
http://www.openwall.com/lists/oss-security/2021/12/10/1
http://www.openwall.com/lists/oss-security/2021/12/10/2
http://www.openwall.com/lists/oss-security/2021/12/10/3
http://www.openwall.com/lists/oss-security/2021/12/13/1
http://www.openwall.com/lists/oss-security/2021/12/13/2
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFM/
https://logging.apache.org/log4j/2.x/security.html
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
https://security.netapp.com/advisory/ntap-20211210-0007/
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
해결책 log4j 웹 사이트인 https://logging.apache.org/log4j/ 에서 구할 수 있는 log4j 의 가장 최신 버전(2.15.0 혹은 이후)으로 업그레이드 하여야 한다.
관련 URL CVE-2021-44228 (CVE)
관련 URL (SecurityFocus)
관련 URL (ISS)