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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
cve-2021-42013 — cve-2021-42013.py は、Apache 2.4.50 における Path Traversal または Remote Code Execution の脆弱性を発見するのに役立つ Python スクリプトです。 | Kitploit
ツール/GitHubGitHub/walnutsecurity/cve-2021-42013
偵察脆弱性スキャナーエクスプロイトウェブアプリケーション悪用ペネトレーションテストラボと実践
GitHubwalnutsecurity/cve-2021-42013

cve-2021-42013

cve-2021-42013.py は、Apache 2.4.50 における Path Traversal または Remote Code Execution の脆弱性を発見するのに役立つ Python スクリプトです。

リポジトリを見る
27133年前Kitploit レビュー済み

人気

すべて見る →

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

すべてのツールを探索

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

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

Apache 2.4.50 - パストラバーサルまたはリモートコード実行

CVE-2021-42013.py は、Apache 2.4.50 におけるパストラバーサルまたはリモートコード実行の脆弱性を見つけるための Python スクリプトです。CVE-2021-42013 の実践的な学習のために、脆弱な Docker インスタンスが提供されています。

CGI-BIN が有効な場合、リモートコード実行は可能ですが、パストラバーサルは不可能です。そのため、パストラバーサルの脆弱性を確認するために、httpd.conf の Alias セクションに "icons" ディレクトリが追加されています。

httpd.conf の脆弱な設定

root@kitploit:~
1. Enable CGI-BIN
2. Add "icons" directory in Alias section
3. <Directory>Require all granted</Directory>

CVE-2021-42013 のラボ

Docker のビルド

root@kitploit:~
$ docker build -t cve-2021-42013 .

Docker の実行

root@kitploit:~
$ docker run -it cve-2021-42013

cve-2021-42013.py の使い方

パストラバーサルとリモートコード実行の確認

root@kitploit:~
$ python3 cve-2021-42013.py -u http://172.17.0.2

パストラバーサル PoC

root@kitploit:~
$ python3 cve-2021-42013.py -u http://172.17.0.2 -pt

リモートコード実行 PoC

root@kitploit:~
$ python3 cve-2021-42013.py -u http://172.17.0.2 -rce

一括スキャン用に、IP アドレスを含むテキストファイルを指定します:

root@kitploit:~
$ python3 cve-2021-42013.py -l list.txt
root@kitploit:~
$ python3 cve-2021-42013.py -l list.txt -pt
root@kitploit:~
$ python3 cve-2021-42013.py -l list.txt -rce

詳細はこちらをご覧ください。

参考リンク

  • https://nvd.nist.gov/vuln/detail/CVE-2021-42013
  • https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42013
  • https://www.cve.org/CVERecord?id=CVE-2021-42013
  • https://httpd.apache.org/security/vulnerabilities_24.html
  • https://walnutsecurity.com/path-traversal-remote-code-execution-in-apache/
ツールをダウンロード