-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdefault.conf
More file actions
41 lines (29 loc) · 786 Bytes
/
Copy pathdefault.conf
File metadata and controls
41 lines (29 loc) · 786 Bytes
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
js_import cve from cve202144228/cve.js;
js_set $isJNDI cve.inspect;
js_set $bodyScanned cve.postBodyInspect;
server {
listen 8090;
if ( $isJNDI = "1" ) { return 404 "Not Found!\n"; }
location / {
return 200 "OK\n";
}
location /test/ {
set $upstream "http://127.0.0.1:8099"; #Change that on your Instance!!
mirror /_scannBodyJNDI;
client_body_in_single_buffer on; # Minimize memory copy operations on request body
client_body_buffer_size 128k; # Largest body to keep in memory (before writing to file)
client_max_body_size 128k;
proxy_pass $bodyScanned;
}
location /_scannBodyJNDI {
internal;
return 204;
}
}
# Error-Response Server Configuration
server {
listen 8999;
location / {
return 404 "Not Found!\n";
}
}