Skip to content

Commit 0a3311a

Browse files
committed
add COOKIES/COOKIES_NAMES/FILES_TOTAL_SIZE zones
1 parent 5549de1 commit 0a3311a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

crowdsec-docs/docs/appsec/rules_syntax.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,17 @@ The target allows to specify which part of the requests needs to be inspected. Y
6767
- `ARGS_NAMES`: Name of the query string parameters
6868
- `BODY_ARGS`: Body args
6969
- `BODY_ARGS_NAMES`: Name of the body args
70+
- `COOKIES`: Cookies sent in the request
71+
- `COOKIES_NAMES`: Names of the cookies sent in the request
7072
- `HEADERS`: HTTP headers sent in the request
7173
- `HEADERS_NAMES`: Name of the HTTP headers sent in the request
7274
- `METHOD`: HTTP method of the request
7375
- `PROTOCOL`: HTTP protocol used in the query (HTTP/1.0, HTTP/1.1, ...)
7476
- `URI`: The URI of the request
7577
- `URI_FULL`: The full URL of the request including the query string
7678
- `RAW_BODY`: The entire body of the request
77-
- `FILENAMES`: The name of the files sent in the request
79+
- `FILENAMES` The name of the files sent in the request
80+
- `FILES_TOTAL_SIZE`: Total size of the uploaded files in the request,
7881
- _(optional)_ `variables` containing one or more variable names to restrict the matching operation to (only relevant for `ARGS`, `BODY_ARGS` and `HEADERS`)
7982

8083
```yaml
@@ -94,11 +97,12 @@ The target allows to specify which part of the requests needs to be inspected. Y
9497
:::info
9598

9699
The default config `crowdsecurity/base-config` enables specific decoders when the following content-types are set:
97-
- **application/x-www-form-urlencoded**
98-
- **multipart/form-data**
99-
- **application/xml**
100-
- **application/json** : when used, all the variable names are prefixed with `json.`
101-
- **text/xml**
100+
101+
- **application/x-www-form-urlencoded**
102+
- **multipart/form-data**
103+
- **application/xml**
104+
- **application/json** : when used, all the variable names are prefixed with `json.`
105+
- **text/xml**
102106

103107
:::
104108

@@ -157,7 +161,6 @@ Match provides the pattern to match the target against, including optional trans
157161
value: BLAH
158162
```
159163

160-
161164
### Seclang Support
162165

163166
In order to support your existing/legacy rules set, CrowdSec's AppSec Component is also able to load rules in the **seclang** format (**ModSecurity** rules).
@@ -177,7 +180,6 @@ The default paths for the data directory per OS:
177180
- Freebsd: `/var/db/crowdsec/data`
178181
- Windows: `C:\programdata\crowdsec\data`
179182

180-
181183
> Example
182184

183185
```yaml

0 commit comments

Comments
 (0)