forked frommicrosoft/ModSecurity
- Notifications
You must be signed in to change notification settings - Fork0
Commita15f881
Felipe Zimmerle
Honor the SecRuleEngine while filtering connections
The SecRuleEngine has the capability to Enable, Disable or even to place theModSecurity in DetectionOnly mode. The SecReadStateLimit and SecWriteStateLimitwere not honoring such state, due the fact that our configuration belongs torequests not to connections, the only struct that exists while those filtersare placed. By adding a global variable "conn_limits_filter_state" we are nowable to identify the current state of the ModSecurity, once the configurationis loaded this variable is set and used by the connections filters.1 parent0037a07 commita15f881
3 files changed
+53
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2144 | 2144 | | |
2145 | 2145 | | |
2146 | 2146 | | |
| 2147 | + | |
2147 | 2148 | | |
2148 | 2149 | | |
2149 | | - | |
2150 | | - | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
2154 | 2160 | | |
2155 | 2161 | | |
2156 | 2162 | | |
2157 | | - | |
2158 | | - | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
2159 | 2171 | | |
2160 | 2172 | | |
2161 | 2173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
1419 | 1421 | | |
1420 | 1422 | | |
1421 | 1423 | | |
1422 | | - | |
1423 | 1424 | | |
1424 | 1425 | | |
1425 | 1426 | | |
1426 | 1427 | | |
1427 | 1428 | | |
1428 | 1429 | | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
1432 | | - | |
1433 | | - | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
1434 | 1436 | | |
1435 | | - | |
1436 | 1437 | | |
1437 | 1438 | | |
1438 | 1439 | | |
1439 | | - | |
1440 | | - | |
1441 | | - | |
1442 | | - | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1443 | 1446 | | |
1444 | 1447 | | |
1445 | 1448 | | |
| |||
1448 | 1451 | | |
1449 | 1452 | | |
1450 | 1453 | | |
1451 | | - | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
1452 | 1457 | | |
1453 | 1458 | | |
1454 | 1459 | | |
| |||
1458 | 1463 | | |
1459 | 1464 | | |
1460 | 1465 | | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
1466 | 1472 | | |
1467 | 1473 | | |
1468 | 1474 | | |
1469 | 1475 | | |
1470 | | - | |
1471 | | - | |
1472 | | - | |
1473 | | - | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1474 | 1482 | | |
1475 | 1483 | | |
1476 | 1484 | | |
| |||
1479 | 1487 | | |
1480 | 1488 | | |
1481 | 1489 | | |
1482 | | - | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1483 | 1493 | | |
1484 | 1494 | | |
1485 | 1495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
0 commit comments
Comments
(0)