
CVE-2024-10914 is a critical command injection vulnerability affecting several legacy D-Link Network Attached Storage (NAS) devices.
Ce script est un exploit de preuve de concept (PoC) pour CVE-2024-10914, une vulnérabilité d'exécution de code à distance sur certains appareils D-Link. Le script identifie et exploite les appareils vulnérables pour exécuter des commandes arbitraires.
Note : Ce script ne doit être utilisé qu'à des fins éducatives ou dans des environnements autorisés. L'exploitation non autorisée de cette vulnérabilité peut être illégale et contraire à l'éthique.
Finding Targets
To find potential targets, use Fofa (similar to Shodan.io):
Fofa Dork: app="D_Link-DNS-ShareCenter" && server=="lighttpd/1.4.25-devel-fb150ff"
requests (pour les requêtes HTTP)alive-progress (pour les barres de progression)prompt_toolkit (pour le shell interactif)argparse (pour la gestion des arguments en ligne de commande)Pour installer les bibliothèques requises, utilisez :
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
Ce script tente d'exploiter une vulnérabilité sur les appareils D-Link, ciblant spécifiquement les éléments suivants :
Ce script est uniquement à des fins éducatives. N'utilisez pas ce script sur des systèmes ou réseaux pour lesquels vous n'avez pas d'autorisation explicite de test.
Les auteurs ne sont pas responsables de toute utilisation abusive de cet outil.
Pour plus de détails, veuillez vous référer au dépôt GitHub officiel : https://github.com/ThemeHackers/CVE-2024-10914
Si vous trouvez des problèmes ou souhaitez contribuer, n'hésitez pas à ouvrir une issue ou à soumettre une pull request sur le dépôt GitHub.
Ce projet est sous licence MIT - voir le fichier LICENSE pour les détails.
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.