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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2023-44487 — LTAT.04.022 宿題4のための教育環境。 | Kitploit
ツール/GitHubGitHub/hirokiii/cve-2023-44487
コンテナセキュリティ脆弱性分析構成監査ウェブセキュリティネットワークセキュリティ学習と教育ラボと実践
GitHubhirokiii/cve-2023-44487

CVE-2023-44487

LTAT.04.022 宿題4のための教育環境。

リポジトリを見る
493ヶ月前未レビュー

人気

すべて見る →

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

すべてのツールを探索

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

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

CVE-2023-44487 — HTTP/2 Rapid Reset テストラボ

LTAT.04.022 宿題4 のための教育用環境です。
4つのコンテナを使用して、脆弱な構成とパッチ適用済みの構成をスキャンして比較できます。


ポートマップ

コンテナポートソフトウェアステータス
nginx-vuln8441nginx 1.24脆弱
nginx-secure8442nginx latestパッチ適用済み
apache-vuln8443Apache 2.4.57脆弱
apache-secure8444Apache latestパッチ適用済み

1. セットアップ

root@kitploit:~
# Generate self-signed TLS certs (required by all containers)
bash gen-certs.sh

# Start all 4 containers
docker compose up -d

# Verify all are running
docker compose ps

2. 基本接続テスト

root@kitploit:~
# Check each container responds (ignore cert warning with -k)
curl -k --http2 -I https://localhost:8441   # nginx vulnerable
curl -k --http2 -I https://localhost:8442   # nginx secure
curl -k --http2 -I https://localhost:8443   # apache vulnerable
curl -k --http2 -I https://localhost:8444   # apache secure

期待される結果: 4つすべてから HTTP/2 200 が返ります。


3. HTTP/2 が有効であることの確認

root@kitploit:~
curl -k --http2 -v https://localhost:8441 2>&1 | grep -E "ALPN|HTTP/"

以下の表示を確認します:

root@kitploit:~
* ALPN: server accepted h2
< HTTP/2 200

4. CVE スキャナーの実行

root@kitploit:~
# Copy the scanner here first (or adjust the path)
cp ../scanner.py .

python3 scanner.py localhost 8441   # nginx vuln
python3 scanner.py localhost 8442   # nginx secure
python3 scanner.py localhost 8443   # apache vuln
python3 scanner.py localhost 8444   # apache secure

期待される結果:

対象HTTP/2

5. ストリーム制限の確認(主な違い)

nghttp を使用して、各サーバーが送信する SETTINGS フレームを検査します。
これにより、SETTINGS_MAX_CONCURRENT_STREAMS の値が直接確認できます。

root@kitploit:~
# Install nghttp2 client
sudo apt install nghttp2-client   # Ubuntu/Debian
brew install nghttp2              # macOS

# Inspect SETTINGS frame
for port in 8441 8442 8443 8444; LIKELY PAdo
  streams=$(nghttp -nvy https://localhost:$port 2>&1 | grep "MAX_CONCURRENT" | tail -1 | awk -F: '{print $2}' | tr -d ']')
  echo "port $port → MAX_CONCURRENT_STREAMS: $streams"
done

# (Results)
port 8441 → MAX_CONCURRENT_STREAMS: 128
port 8442 → MAX_CONCURRENT_STREAMS: 32
port 8443 → MAX_CONCURRENT_STREAMS: 1000
port 8444 → MAX_CONCURRENT_STREAMS: 32

脆弱なサーバー: ストリーム制限が高い(128以上)
セキュアなサーバー: 32に制限


6. Rapid Reset プレッシャーのシミュレーション(安全、ローカルのみ)

1つの接続で50リクエストを高速に送信します。実際の攻撃ではなく、 サーバーの RST 処理動作をログで確認するためのものです。

root@kitploit:~
# h2load is part of nghttp2-client
h2load -n 1000 -c 1 -m 50 https://localhost:8441   # vuln
h2load -n 1000 -c 1 -m 50 https://localhost:8442   # secure

予想されるログ出力例:

root@kitploit:~
$ h2load -n 1000 -c 1 -m 1000 https://localhost:8441
starting benchmark...
spawning thread #0: 1 total client(s). 1000 total requests
TLS Protocol: TLSv1.3
Cipher: TLS_AES_256_GCM_SHA384
Server Temp Key: X25519 253 bits
Application protocol: h2
progress: 10% done
progress: 20% done
progress: 30% done
progress: 40% done
progress: 50% done
progress: 60% done
progress: 70% done
progress: 80% done
progress: 90% done
progress: 100% done

finished in 22.51ms, 44428.65 req/s, 5.38MB/s
requests: 1000 total, 1000 started, 1000 done, 1000 succeeded, 0 failed, 0 errored, 0 timeout
status codes: 1000 2xx, 0 3xx, 0 4xx, 0 5xx
traffic: 124.07KB (127049) total, 83.01KB (85000) headers (space savings 38.85%), 23.44KB (24000) data
                     min         max         mean         sd        +/- sd
time for request:      260us      2.98ms      2.25ms       384us    87.70%
time for connect:     2.51ms      2.51ms      2.51ms         0us   100.00%
time to 1st byte:     3.24ms      3.24ms      3.24ms         0us   100.00%
req/s           :   45059.11    45059.11    45059.11        0.00   100.00%

$ h2load -n 1000 -c 1 -m 1000 https://localhost:8442
starting benchmark...
spawning thread #0: 1 total client(s). 1000 total requests
TLS Protocol: TLSv1.3
Cipher: TLS_AES_256_GCM_SHA384
Server Temp Key: X25519 253 bits
Application protocol: h2
progress: 10% done

finished in 5.38ms, 18583.91 req/s, 2.33MB/s
requests: 1000 total, 1000 started, 167 done, 100 succeeded, 900 failed, 900 errored, 0 timeout
status codes: 100 2xx, 0 3xx, 0 4xx, 0 5xx
traffic: 12.83KB (13134) total, 8.30KB (8500) headers (space savings 38.85%), 2.25KB (2300) data
                     min         max         mean         sd        +/- sd
time for request:       83us      1.04ms       533us       256us    63.00%
time for connect:     2.96ms      2.96ms      2.96ms         0us   100.00%
time to 1st byte:     3.55ms      3.55ms      3.55ms         0us   100.00%
req/s           :   19316.22    19316.22    19316.22        0.00   100.00%

セキュアなコンテナは、ストリーム制限に達すると接続のリセットまたは拒否を示します。脆弱なコンテナは、 50件すべてを問題なく受け入れます。


7. サーバーヘッダーの比較

root@kitploit:~
# Vulnerable servers expose version info
curl -k -I https://localhost:8441 2>/dev/null | grep -i server
curl -k -I https://localhost:8443 2>/dev/null | grep -i server

# Secure servers hide or minimize version info
curl -k -I https://localhost:8442 2>/dev/null | grep -i server
curl -k -I https://localhost:8444 2>/dev/null | grep -i server

8. 後片付け

root@kitploit:~
docker compose down

構成ファイルの変更内容(概要)

nginx

Apache

設定脆弱 (2.4.57)セキュア (2.4.58+)
H2MaxSessionStreams100032
ServerTokensFullProd

参考資料

  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-44487
  • Cloudflare レポート: https://blog.cloudflare.com/technical-breakdown-http2-rapid-reset-ddos-attack/
  • Google レポート: https://cloud.google.com/blog/products/identity-security/how-it-works-the-novel-http2-rapid-reset-ddos-attack
  • CISA 勧告: https://www.cisa.gov/news-events/alerts/2023/10/10/http2-rapid-reset-vulnerability-cve-2023-44487
ツールをダウンロード
判定
8441YESLIKELY VULNERABLE
8442YESLIKELY PATCHED
8443YESLIKELY VULNERABLE
8444YESUNKWOWN
設定脆弱 (1.24)セキュア (1.25.3+)
http2_max_concurrent_streams128(デフォルト)32
keepalive_requests10000100
keepalive_timeout300s65s
RST_STREAM レートガードなしパッチに組み込み
リセットガードパッチ
未適用
適用済み