|
9 | 9 | SecRequestBodyAccess On
|
10 | 10 | SecResponseBodyAccess On
|
11 | 11 | SecResponseBodyMimeType null
|
12 |
| - SecAction "phase:1,pass" |
13 |
| - SecAction "phase:1,deny" |
| 12 | + SecAction "phase:1,pass,id:500033" |
| 13 | + SecAction "phase:1,deny,id:500034" |
14 | 14 | ),
|
15 | 15 | match_log => {
|
16 | 16 | error => [ qr/ModSecurity: Warning. Unconditional match in SecAction/, 1 ],
|
|
30 | 30 | SecRequestBodyAccess On
|
31 | 31 | SecResponseBodyAccess On
|
32 | 32 | SecResponseBodyMimeType null
|
33 |
| - SecAction "phase:2,pass" |
34 |
| - SecAction "phase:2,deny" |
| 33 | + SecAction "phase:2,pass,id:500035" |
| 34 | + SecAction "phase:2,deny,id:500036" |
35 | 35 | ),
|
36 | 36 | match_log => {
|
37 | 37 | error => [ qr/ModSecurity: Warning. Unconditional match in SecAction/, 1 ],
|
|
53 | 53 | SecResponseBodyMimeType null
|
54 | 54 | SecDebugLog "$ENV{DEBUG_LOG}"
|
55 | 55 | SecDebugLogLevel 4
|
56 |
| - SecAction "phase:3,pass" |
57 |
| - SecAction "phase:3,deny" |
| 56 | + SecAction "phase:3,pass,id:500037" |
| 57 | + SecAction "phase:3,deny,id:500038" |
58 | 58 | ),
|
59 | 59 | match_log => {
|
60 | 60 | error => [ qr/ModSecurity: Warning. Unconditional match in SecAction/, 1 ],
|
|
76 | 76 | SecResponseBodyMimeType null
|
77 | 77 | SecDebugLog "$ENV{DEBUG_LOG}"
|
78 | 78 | SecDebugLogLevel 4
|
79 |
| - SecAction "phase:4,pass" |
80 |
| - SecAction "phase:4,deny" |
| 79 | + SecAction "phase:4,pass,id:500039" |
| 80 | + SecAction "phase:4,deny,id:500040" |
81 | 81 | ),
|
82 | 82 | match_log => {
|
83 | 83 | error => [ qr/ModSecurity: Warning. Unconditional match in SecAction/, 1 ],
|
|
99 | 99 | SecRequestBodyAccess On
|
100 | 100 | SecResponseBodyAccess On
|
101 | 101 | SecResponseBodyMimeType null
|
102 |
| - SecAction "phase:1,allow" |
103 |
| - SecAction "phase:1,deny" |
| 102 | + SecAction "phase:1,allow,id:500041" |
| 103 | + SecAction "phase:1,deny,id:500042" |
104 | 104 | ),
|
105 | 105 | match_log => {
|
106 | 106 | error => [ qr/ModSecurity: Access allowed \(phase 1\). Unconditional match in SecAction/, 1 ],
|
|
120 | 120 | SecRequestBodyAccess On
|
121 | 121 | SecResponseBodyAccess On
|
122 | 122 | SecResponseBodyMimeType null
|
123 |
| - SecAction "phase:2,allow" |
124 |
| - SecAction "phase:2,deny" |
| 123 | + SecAction "phase:2,allow,id:500043" |
| 124 | + SecAction "phase:2,deny,id:500044" |
125 | 125 | ),
|
126 | 126 | match_log => {
|
127 | 127 | error => [ qr/ModSecurity: Access allowed \(phase 2\). Unconditional match in SecAction/, 1 ],
|
|
143 | 143 | SecResponseBodyMimeType null
|
144 | 144 | SecDebugLog "$ENV{DEBUG_LOG}"
|
145 | 145 | SecDebugLogLevel 4
|
146 |
| - SecAction "phase:3,allow" |
147 |
| - SecAction "phase:3,deny" |
| 146 | + SecAction "phase:3,allow,id:500045" |
| 147 | + SecAction "phase:3,deny,id:500046" |
148 | 148 | ),
|
149 | 149 | match_log => {
|
150 | 150 | error => [ qr/ModSecurity: Access allowed \(phase 3\). Unconditional match in SecAction/, 1 ],
|
|
166 | 166 | SecResponseBodyMimeType null
|
167 | 167 | SecDebugLog "$ENV{DEBUG_LOG}"
|
168 | 168 | SecDebugLogLevel 4
|
169 |
| - SecAction "phase:4,allow" |
170 |
| - SecAction "phase:4,deny" |
| 169 | + SecAction "phase:4,allow,id:500047" |
| 170 | + SecAction "phase:4,deny,id:500048" |
171 | 171 | ),
|
172 | 172 | match_log => {
|
173 | 173 | error => [ qr/ModSecurity: Access allowed \(phase 4\). Unconditional match in SecAction/, 1 ],
|
|
189 | 189 | SecRequestBodyAccess On
|
190 | 190 | SecResponseBodyAccess On
|
191 | 191 | SecResponseBodyMimeType null
|
192 |
| - SecAction "phase:1,deny" |
| 192 | + SecAction "phase:1,deny,id:500049" |
193 | 193 | ),
|
194 | 194 | match_log => {
|
195 | 195 | error => [ qr/Access denied with code 403 \(phase 1\). Unconditional match in SecAction./, 1 ],
|
|
209 | 209 | SecRequestBodyAccess On
|
210 | 210 | SecResponseBodyAccess On
|
211 | 211 | SecResponseBodyMimeType null
|
212 |
| - SecAction "phase:2,deny" |
| 212 | + SecAction "phase:2,deny,id:500050" |
213 | 213 | ),
|
214 | 214 | match_log => {
|
215 | 215 | error => [ qr/Access denied with code 403 \(phase 2\). Unconditional match in SecAction./, 1 ],
|
|
231 | 231 | SecResponseBodyMimeType null
|
232 | 232 | SecDebugLog "$ENV{DEBUG_LOG}"
|
233 | 233 | SecDebugLogLevel 4
|
234 |
| - SecAction "phase:3,deny" |
| 234 | + SecAction "phase:3,deny,id:500051" |
235 | 235 | ),
|
236 | 236 | match_log => {
|
237 | 237 | error => [ qr/Access denied with code 403 \(phase 3\). Unconditional match in SecAction./, 1 ],
|
|
253 | 253 | SecResponseBodyMimeType null
|
254 | 254 | SecDebugLog "$ENV{DEBUG_LOG}"
|
255 | 255 | SecDebugLogLevel 4
|
256 |
| - SecAction "phase:4,deny" |
| 256 | + SecAction "phase:4,deny,id:500052" |
257 | 257 | ),
|
258 | 258 | match_log => {
|
259 | 259 | error => [ qr/Access denied with code 403 \(phase 4\). Unconditional match in SecAction./, 1 ],
|
|
275 | 275 | SecRequestBodyAccess On
|
276 | 276 | SecResponseBodyAccess On
|
277 | 277 | SecResponseBodyMimeType null
|
278 |
| - SecAction "phase:1,drop" |
| 278 | + SecAction "phase:1,drop,id:500053" |
279 | 279 | ),
|
280 | 280 | match_log => {
|
281 | 281 | error => [ qr/Access denied with connection close \(phase 1\). Unconditional match in SecAction./, 1 ],
|
|
295 | 295 | SecRequestBodyAccess On
|
296 | 296 | SecResponseBodyAccess On
|
297 | 297 | SecResponseBodyMimeType null
|
298 |
| - SecAction "phase:2,drop" |
| 298 | + SecAction "phase:2,drop,id:500054" |
299 | 299 | ),
|
300 | 300 | match_log => {
|
301 | 301 | error => [ qr/Access denied with connection close \(phase 2\). Unconditional match in SecAction./, 1 ],
|
|
317 | 317 | SecResponseBodyMimeType null
|
318 | 318 | SecDebugLog "$ENV{DEBUG_LOG}"
|
319 | 319 | SecDebugLogLevel 4
|
320 |
| - SecAction "phase:3,drop" |
| 320 | + SecAction "phase:3,drop,id:500055" |
321 | 321 | ),
|
322 | 322 | match_log => {
|
323 | 323 | error => [ qr/Access denied with connection close \(phase 3\). Unconditional match in SecAction./, 1 ],
|
|
339 | 339 | SecResponseBodyMimeType null
|
340 | 340 | SecDebugLog "$ENV{DEBUG_LOG}"
|
341 | 341 | SecDebugLogLevel 4
|
342 |
| - SecAction "phase:4,drop" |
| 342 | + SecAction "phase:4,drop,id:500056" |
343 | 343 | ),
|
344 | 344 | match_log => {
|
345 | 345 | error => [ qr/Access denied with connection close \(phase 4\). Unconditional match in SecAction./, 1 ],
|
|
361 | 361 | SecRequestBodyAccess On
|
362 | 362 | SecResponseBodyAccess On
|
363 | 363 | SecResponseBodyMimeType null
|
364 |
| - SecRule REQUEST_URI "\@streq /test2.txt" "phase:1,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'" |
| 364 | + SecRule REQUEST_URI "\@streq /test2.txt" "phase:1,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',id:500001" |
365 | 365 | ),
|
366 | 366 | match_log => {
|
367 | 367 | error => [ qr/ModSecurity: Access denied with redirection to .* using status 302 \(phase 1\)/, 1 ],
|
|
382 | 382 | SecRequestBodyAccess On
|
383 | 383 | SecResponseBodyAccess On
|
384 | 384 | SecResponseBodyMimeType null
|
385 |
| - SecRule REQUEST_URI "\@streq /test2.txt" "phase:2,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'" |
| 385 | + SecRule REQUEST_URI "\@streq /test2.txt" "phase:2,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',id:500002" |
386 | 386 | ),
|
387 | 387 | match_log => {
|
388 | 388 | error => [ qr/ModSecurity: Access denied with redirection to .* using status 302 \(phase 2\)/, 1 ],
|
|
405 | 405 | SecResponseBodyMimeType null
|
406 | 406 | SecDebugLog "$ENV{DEBUG_LOG}"
|
407 | 407 | SecDebugLogLevel 4
|
408 |
| - SecRule REQUEST_URI "\@streq /test2.txt" "phase:3,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'" |
| 408 | + SecRule REQUEST_URI "\@streq /test2.txt" "phase:3,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',id:500003" |
409 | 409 | ),
|
410 | 410 | match_log => {
|
411 | 411 | error => [ qr/ModSecurity: Access denied with redirection to .* using status 302 \(phase 3\)/, 1 ],
|
|
428 | 428 | SecResponseBodyMimeType null
|
429 | 429 | SecDebugLog "$ENV{DEBUG_LOG}"
|
430 | 430 | SecDebugLogLevel 4
|
431 |
| - SecRule REQUEST_URI "\@streq /test2.txt" "phase:4,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'" |
| 431 | + SecRule REQUEST_URI "\@streq /test2.txt" "phase:4,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',id:500004" |
432 | 432 | ),
|
433 | 433 | match_log => {
|
434 | 434 | error => [ qr/ModSecurity: Access denied with redirection to .* using status 302 \(phase 4\)/, 1 ],
|
|
451 | 451 | SecRequestBodyAccess On
|
452 | 452 | SecResponseBodyAccess On
|
453 | 453 | SecResponseBodyMimeType null
|
454 |
| - SecRule REQUEST_URI "\@streq /test2.txt" "phase:1,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'" |
| 454 | + SecRule REQUEST_URI "\@streq /test2.txt" "phase:1,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',id:500005" |
455 | 455 | ),
|
456 | 456 | match_log => {
|
457 | 457 | error => [ qr/ModSecurity: Access denied using proxy to \(phase 1\)/, 1 ],
|
|
472 | 472 | SecRequestBodyAccess On
|
473 | 473 | SecResponseBodyAccess On
|
474 | 474 | SecResponseBodyMimeType null
|
475 |
| - SecRule REQUEST_URI "\@streq /test2.txt" "phase:2,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'" |
| 475 | + SecRule REQUEST_URI "\@streq /test2.txt" "phase:2,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',id:500006" |
476 | 476 | ),
|
477 | 477 | match_log => {
|
478 | 478 | error => [ qr/ModSecurity: Access denied using proxy to \(phase 2\)/, 1 ],
|
|
495 | 495 | SecResponseBodyMimeType null
|
496 | 496 | SecDebugLog "$ENV{DEBUG_LOG}"
|
497 | 497 | SecDebugLogLevel 4
|
498 |
| - SecRule REQUEST_URI "\@streq /test2.txt" "phase:3,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'" |
| 498 | + SecRule REQUEST_URI "\@streq /test2.txt" "phase:3,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',id:500007" |
499 | 499 | ),
|
500 | 500 | match_log => {
|
501 | 501 | error => [ qr/ModSecurity: Access denied with code 500 \(phase 3\) \(Configuration Error: Proxy action requested but it does not work in output phases\)./, 1 ],
|
|
517 | 517 | SecResponseBodyMimeType null
|
518 | 518 | SecDebugLog "$ENV{DEBUG_LOG}"
|
519 | 519 | SecDebugLogLevel 4
|
520 |
| - SecRule REQUEST_URI "\@streq /test2.txt" "phase:4,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'" |
| 520 | + SecRule REQUEST_URI "\@streq /test2.txt" "phase:4,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',id:500008" |
521 | 521 | ),
|
522 | 522 | match_log => {
|
523 | 523 | error => [ qr/ModSecurity: Access denied with code 500 \(phase 4\) \(Configuration Error: Proxy action requested but it does not work in output phases\)./, 1 ],
|
|
0 commit comments