Skip to content

Commit 0a77577

Browse files
committed
Update example field names
1 parent 002ccbd commit 0a77577

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/waf/detections/leaked-credentials/get-started.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ To check for leaked credentials in a way that is not covered by the default conf
9393
3. Under **Incoming traffic detections**, select **Leaked credentials** and then select **Add custom username and password location**.
9494
4. In **Username location** and **Password location** (optional), enter expressions for obtaining the username and the password from the HTTP request. Refer to the following example expressions:
9595

96-
| Request type | Username location / Password location |
97-
| ---------------- | --------------------------------------------------------------------------------------------------------------------- |
98-
| JSON body | `lookup_json_string(http.request.body.raw, "username")`<br/>`lookup_json_string(http.request.body.raw, "password")` |
99-
| URL-encoded form | `url_decode(http.request.body.form["username"][0])`<br/>`url_decode(http.request.body.form["password"][0])` |
100-
| Multipart form | `url_decode(http.request.body.multipart["username"][0])`<br/>`url_decode(http.request.body.multipart["password"][0])` |
96+
| Request type | Username location / Password location |
97+
| ---------------- | --------------------------------------------------------------------------------------------------------------- |
98+
| JSON body | `lookup_json_string(http.request.body.raw, "user")`<br/>`lookup_json_string(http.request.body.raw, "secret")` |
99+
| URL-encoded form | `url_decode(http.request.body.form["user"][0])`<br/>`url_decode(http.request.body.form["secret"][0])` |
100+
| Multipart form | `url_decode(http.request.body.multipart["user"][0])`<br/>`url_decode(http.request.body.multipart["secret"][0])` |
101101

102102
5. Select **Save**.
103103

0 commit comments

Comments
 (0)