|
2 | 2 | { |
3 | 3 | "enabled":1, |
4 | 4 | "version_min":300000, |
5 | | - "title":"Testing Variables :: ARGS_GET (1/3)", |
| 5 | + "title":"Testing Variables :: ARGS_GET (1/5)", |
6 | 6 | "client":{ |
7 | 7 | "ip":"200.249.12.31", |
8 | 8 | "port":123 |
|
41 | 41 | { |
42 | 42 | "enabled":1, |
43 | 43 | "version_min":300000, |
44 | | - "title":"Testing Variables :: ARGS_GET (2/3)", |
| 44 | + "title":"Testing Variables :: ARGS_GET (2/5)", |
45 | 45 | "client":{ |
46 | 46 | "ip":"200.249.12.31", |
47 | 47 | "port":123 |
|
80 | 80 | { |
81 | 81 | "enabled":1, |
82 | 82 | "version_min":300000, |
83 | | - "title":"Testing Variables :: ARGS_GET (3/3)", |
| 83 | + "title":"Testing Variables :: ARGS_GET (3/5)", |
84 | 84 | "client":{ |
85 | 85 | "ip":"200.249.12.31", |
86 | 86 | "port":123 |
|
115 | 115 | "SecRuleEngine On", |
116 | 116 | "SecRule ARGS_GET \"@contains test \" \"id:1,pass,t:trim\"" |
117 | 117 | ] |
| 118 | + }, |
| 119 | + { |
| 120 | + "enabled":1, |
| 121 | + "version_min":300000, |
| 122 | + "title":"Testing Variables :: ARGS_GET (4/5)", |
| 123 | + "client":{ |
| 124 | + "ip":"200.249.12.31", |
| 125 | + "port":123 |
| 126 | + }, |
| 127 | + "server":{ |
| 128 | + "ip":"200.249.12.31", |
| 129 | + "port":80 |
| 130 | + }, |
| 131 | + "request":{ |
| 132 | + "headers":{ |
| 133 | + "Host":"localhost", |
| 134 | + "User-Agent":"curl/7.38.0", |
| 135 | + "Accept":"*/*" |
| 136 | + }, |
| 137 | + "uri":"/?key=value&secondkey=&key3=val3", |
| 138 | + "method":"GET" |
| 139 | + }, |
| 140 | + "response":{ |
| 141 | + "headers":{ |
| 142 | + "Date":"Mon, 13 Jul 2015 20:02:41 GMT", |
| 143 | + "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", |
| 144 | + "Content-Type":"text/html" |
| 145 | + }, |
| 146 | + "body":[ |
| 147 | + "no need." |
| 148 | + ] |
| 149 | + }, |
| 150 | + "expected":{ |
| 151 | + "debug_log":"Target value: \"0\"" |
| 152 | + }, |
| 153 | + "rules":[ |
| 154 | + "SecRuleEngine On", |
| 155 | + "SecRule ARGS_GET:secondkey \"0\" \"id:1,phase:2,pass,t:none,t:length\"" |
| 156 | + ] |
| 157 | + }, |
| 158 | + { |
| 159 | + "enabled":1, |
| 160 | + "version_min":300000, |
| 161 | + "title":"Testing Variables :: ARGS_GET (5/5)", |
| 162 | + "client":{ |
| 163 | + "ip":"200.249.12.31", |
| 164 | + "port":123 |
| 165 | + }, |
| 166 | + "server":{ |
| 167 | + "ip":"200.249.12.31", |
| 168 | + "port":80 |
| 169 | + }, |
| 170 | + "request":{ |
| 171 | + "headers":{ |
| 172 | + "Host":"localhost", |
| 173 | + "User-Agent":"curl/7.38.0", |
| 174 | + "Accept":"*/*" |
| 175 | + }, |
| 176 | + "uri":"/?key=value&secondkey=othervalue&", |
| 177 | + "method":"GET" |
| 178 | + }, |
| 179 | + "response":{ |
| 180 | + "headers":{ |
| 181 | + "Date":"Mon, 13 Jul 2015 20:02:41 GMT", |
| 182 | + "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", |
| 183 | + "Content-Type":"text/html" |
| 184 | + }, |
| 185 | + "body":[ |
| 186 | + "no need." |
| 187 | + ] |
| 188 | + }, |
| 189 | + "expected":{ |
| 190 | + "debug_log":"Target value: \"othervalue\"" |
| 191 | + }, |
| 192 | + "rules":[ |
| 193 | + "SecRuleEngine On", |
| 194 | + "SecRule ARGS_GET \"@rx ^othervalue$ \" \"id:1,pass,t:none\"" |
| 195 | + ] |
118 | 196 | } |
119 | 197 | ] |
120 | 198 |
|
0 commit comments