
このツールは、HTTP/2 Rapid Reset Attack としても知られる CVE-2023-44487 の Proof of Concept(PoC)です。この脆弱性により、攻撃者は HTTP/2 接続上で RST_STREAM フレームを急速に送信してターゲットサーバーを圧倒し、Denial of Service(DoS)攻撃を実行できます。
次のコマンドを使用して、必要な Python ライブラリをインストールします:
pip install -r requirements.txt
または、個別にインストールすることもできます:
pip install httpx==0.24.0
pip install h2==4.1.0
pip install tqdm==4.66.1
pip install xlsxwriter==3.1.6
リポジトリをクローン
git clone https://github.com/yourusername/CVE-2023-44487-HTTP-2-Rapid-Reset-Exploit-PoC.git
cd CVE-2023-44487-HTTP-2-Rapid-Reset-Exploit-PoC
仮想環境のセットアップ(任意ですが推奨)
python3 -m venv venv
source venv/bin/activate
依存関係のインストール
pip install -r requirements.txt
--url: テストする URL(例: https://example.com または http://example.com)--bulk: テストする URL のリストを含むファイル--port: ポートを指定(デフォルトは HTTPS で 443、HTTP で 80)--output: 結果を保存する出力ファイル(.csv、.txt、または .xlsx)単一のURLをテスト
python3 main.py --url https://example.com
ファイルから複数のURLをテスト
python3 main.py --bulk urls.txt
カスタムポートを指定
python3 main.py --url http://example.com --port 8080
結果をファイルに保存
python3 main.py --bulk urls.txt --output results.xlsx
[
{
"Timestamp": "2024-12-03 10:00:00",
"URL": "https://example.com",
"HTTP/2 Support": "Yes",
"Vulnerable": "VULNERABLE",
"Details": "RST_STREAM sent successfully"
},
{
"Timestamp": "2024-12-03 10:00:05",
"URL": "http://testsite.com",
"HTTP/2 Support": "No",
"Vulnerable": "SAFE",
"Details": "Downgraded to HTTP/1.1"
}
]
RST_STREAM フレームに対して CVE-2023-44487 に脆弱である可能性を示す応答を返したことを意味します。さらなる手動による検証を推奨します。httpx==0.24.0
h2==4.1.0
tqdm==4.66.1
xlsxwriter==3.1.6
urls.txt という名前のファイルに以下が含まれているとします:
https://example.com
http://testsite.com
https://vulnerable-site.com
コマンド:
python3 main.py --bulk urls.txt --output results.csv
results.csv のサンプル:
Timestamp,URL,HTTP/2 Support,Vulnerable,Details
2024-12-03 10:15:00,https://example.com,Yes,VULNERABLE,RST_STREAM sent successfully
2024-12-03 10:15:05,http://testsite.com,No,SAFE,Downgraded to HTTP/1.1
2024-12-03 10:15:10,https://vulnerable-site.com,Yes,VULNERABLE,RST_STREAM sent successfully
注記: https://vulnerable-site.com を、テスト許可を得た実際のサイトに置き換えてください。
さらに支援や変更が必要な場合は、お知らせください!
| Timestamp | URL | HTTP/2 Support | Vulnerable | Details |
|---|
| 2024-12-03 10:00:00 | https://example.com | Yes | VULNERABLE | RST_STREAM sent successfully |
| 2024-12-03 10:00:05 | http://testsite.com | No | SAFE | Downgraded to HTTP/1.1 |