
CVE-2024-10914 は、複数のレガシーD-Linkネットワークアタッチドストレージ(NAS)デバイスに影響を及ぼす重大なコマンドインジェクションの脆弱性です。
このスクリプトは、特定の D-Link デバイスにおけるリモートコード実行の脆弱性である CVE-2024-10914 の概念実証(PoC)エクスプロイトです。このスクリプトは、脆弱なデバイスを特定して悪用し、任意のコマンドを実行します。
注記: このスクリプトは教育目的または許可された環境でのみ使用してください。この脆弱性を不正に悪用することは違法であり、倫理に反する可能性があります。
ターゲットの検索
潜在的なターゲットを見つけるには、Fofa(Shodan.io に類似)を使用します:
Fofa Dork: app="D_Link-DNS-ShareCenter" && server=="lighttpd/1.4.25-devel-fb150ff"
requests(HTTP リクエスト用)alive-progress(プログレスバー用)prompt_toolkit(対話型シェル用)argparse(コマンドライン引数の処理用)必要なライブラリをインストールするには、次を使用します:
pip3 install -r requirements.txt
usage: exploit.py [-h] [-u URL] [-f FILE] [-t THREADS] [-p PORT]
A PoC exploit for CVE-2024-10914 - D-Link Remote Code Execution (RCE)
optional arguments:
-h, --help Show this help message and exit
-u URL, --url URL Single target IP to test (e.g., 192.168.1.1)
-f FILE, --file FILE File containing list of target IPs to scan
-t THREADS, --threads THREADS
Number of threads to use for scanning (default: 5)
-p PORT, --port PORT Port to target (default: 80)
python3 exploit.py -u 192.168.1.100 -p 80
python3 exploit.py -f targets.txt -p 80 -t 10
このスクリプトは D-Link デバイスの脆弱性を悪用しようと試みます。具体的には以下を対象とします:
このスクリプトは教育目的のみで提供されています。明示的な許可を得ていないシステムやネットワークに対してこのスクリプトを使用しないでください。
著者はこのツールの誤用について一切の責任を負いません。
詳細については、公式 GitHub リポジトリを参照してください: https://github.com/ThemeHackers/CVE-2024-10914
問題を見つけた場合や貢献したい場合は、GitHub リポジトリで issue を開くか、プルリクエストを送信してください。
このプロジェクトは MIT ライセンスの下でライセンスされています - 詳細は LICENSE ファイルを参照してください
MIT License
Copyright (c) 2024 ds_zct
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.