|
2 | 2 | {
|
3 | 3 | "enabled":1,
|
4 | 4 | "version_min":300000,
|
5 |
| - "title":"multipart Content-Disposition should allow filename* field (1/6)", |
| 5 | + "title":"multipart Content-Disposition should allow filename* field (1/7)", |
6 | 6 | "client":{
|
7 | 7 | "ip":"200.249.12.31",
|
8 | 8 | "port":123
|
|
50 | 50 | {
|
51 | 51 | "enabled":1,
|
52 | 52 | "version_min":300000,
|
53 |
| - "title":"multipart Content-Disposition should allow filename* field (2/6)", |
| 53 | + "title":"multipart Content-Disposition should allow filename* field (2/7)", |
54 | 54 | "client":{
|
55 | 55 | "ip":"200.249.12.31",
|
56 | 56 | "port":123
|
|
98 | 98 | {
|
99 | 99 | "enabled":1,
|
100 | 100 | "version_min":300000,
|
101 |
| - "title":"multipart Content-Disposition should allow filename* field (3/6)", |
| 101 | + "title":"multipart Content-Disposition should allow filename* field (3/7)", |
102 | 102 | "client":{
|
103 | 103 | "ip":"200.249.12.31",
|
104 | 104 | "port":123
|
|
146 | 146 | {
|
147 | 147 | "enabled":1,
|
148 | 148 | "version_min":300000,
|
149 |
| - "title":"multipart Content-Disposition should allow filename* field (4/6)", |
| 149 | + "title":"multipart Content-Disposition should allow filename* field (4/7)", |
150 | 150 | "client":{
|
151 | 151 | "ip":"200.249.12.31",
|
152 | 152 | "port":123
|
|
194 | 194 | {
|
195 | 195 | "enabled":1,
|
196 | 196 | "version_min":300000,
|
197 |
| - "title":"multipart Content-Disposition should allow filename* field (5/6)", |
| 197 | + "title":"multipart Content-Disposition should allow filename* field (5/7)", |
198 | 198 | "client":{
|
199 | 199 | "ip":"200.249.12.31",
|
200 | 200 | "port":123
|
|
242 | 242 | {
|
243 | 243 | "enabled":1,
|
244 | 244 | "version_min":300000,
|
245 |
| - "title":"multipart Content-Disposition should allow filename* field (6/6)", |
| 245 | + "title":"multipart Content-Disposition should allow filename* field (6/7)", |
246 | 246 | "client":{
|
247 | 247 | "ip":"200.249.12.31",
|
248 | 248 | "port":123
|
|
286 | 286 | "SecRuleEngine On",
|
287 | 287 | "SecRule MULTIPART_FILENAME \"@contains 0\" \"id:1,phase:2,pass,t:trim\""
|
288 | 288 | ]
|
| 289 | + }, |
| 290 | + { |
| 291 | + "enabled":1, |
| 292 | + "version_min":300000, |
| 293 | + "title":"multipart Content-Disposition should allow filename* field (7/7)", |
| 294 | + "client":{ |
| 295 | + "ip":"200.249.12.31", |
| 296 | + "port":123 |
| 297 | + }, |
| 298 | + "server":{ |
| 299 | + "ip":"200.249.12.31", |
| 300 | + "port":80 |
| 301 | + }, |
| 302 | + "request":{ |
| 303 | + "headers":{ |
| 304 | + "Host":"localhost", |
| 305 | + "User-Agent":"curl/7.38.0", |
| 306 | + "Accept":"*/*", |
| 307 | + "Content-Length":"330", |
| 308 | + "Content-Type":"multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2", |
| 309 | + "Expect":"100-continue" |
| 310 | + }, |
| 311 | + "uri":"/", |
| 312 | + "method":"POST", |
| 313 | + "body":[ |
| 314 | + "----------------------------756b6d74fa1a8ee2", |
| 315 | + "Content-Disposition: form-data; name=\"name\"", |
| 316 | + "", |
| 317 | + "test", |
| 318 | + "----------------------------756b6d74fa1a8ee2", |
| 319 | + "Content-Disposition: form-data; name=\"filedata\"; filename=\"03CB1664.txt\"; filename*=utf-8''%61%62.txt", |
| 320 | + "Content-Type: text/plain", |
| 321 | + "", |
| 322 | + "This is a very small test file..", |
| 323 | + "----------------------------756b6d74fa1a8ee2--" |
| 324 | + ] |
| 325 | + }, |
| 326 | + "response":{ |
| 327 | + "headers":"", |
| 328 | + "body":"" |
| 329 | + }, |
| 330 | + "expected":{ |
| 331 | + "http_code":200 |
| 332 | + }, |
| 333 | + "rules":[ |
| 334 | + "SecRuleEngine On", |
| 335 | + "SecRule REQBODY_ERROR \"!@eq 0\" \"id:1,phase:2,deny,status:403\"" |
| 336 | + ] |
289 | 337 | }
|
290 | 338 | ]
|
291 | 339 |
|
0 commit comments