removing redundant boolean check

patch-1
Mzack9999 2021-03-25 00:28:50 +01:00
parent dee7983a4b
commit 351167e91f
7 changed files with 9 additions and 9 deletions

View File

@ -38,8 +38,8 @@ requests:
matchers: matchers:
- type: dsl - type: dsl
dsl: dsl:
- 'contains(body_2, "<script>alert(0);</script>") == true' - 'contains(body_2, "<script>alert(0);</script>")'
- type: dsl - type: dsl
dsl: dsl:
- "contains(tolower(all_headers_2), 'text/html') == true" - "contains(tolower(all_headers_2), 'text/html')"

View File

@ -33,4 +33,4 @@ requests:
matchers: matchers:
- type: dsl - type: dsl
dsl: dsl:
- 'contains(body, "test-poc") == true && status_code == 200' # Using CVE-2020-17519 to confirm this. - 'contains(body, "test-poc") && status_code == 200' # Using CVE-2020-17519 to confirm this.

View File

@ -17,7 +17,7 @@ requests:
matchers: matchers:
- type: dsl - type: dsl
dsl: dsl:
- 'regex("^version: ", body) && contains(body, "jobs:") == true' - 'regex("^version: ", body) && contains(body, "jobs:")'
- type: status - type: status
status: status:

View File

@ -17,9 +17,9 @@ requests:
- type: dsl - type: dsl
name: composer.lock name: composer.lock
dsl: dsl:
- "contains(body, 'packages') == true && contains(tolower(all_headers), 'application/octet-stream') == true && status_code == 200" - "contains(body, 'packages') && contains(tolower(all_headers), 'application/octet-stream') && status_code == 200"
- type: dsl - type: dsl
name: composer.json name: composer.json
dsl: dsl:
- "contains(body, 'require') == true && contains(tolower(all_headers), 'application/json') == true && status_code == 200" - "contains(body, 'require') && contains(tolower(all_headers), 'application/json') && status_code == 200"

View File

@ -22,7 +22,7 @@ requests:
matchers: matchers:
- type: dsl - type: dsl
dsl: dsl:
- 'regex("^version: ", body) && contains(body, "services:") == true' - 'regex("^version: ", body) && contains(body, "services:")'
- type: status - type: status
status: status:

View File

@ -24,4 +24,4 @@ requests:
- type: dsl - type: dsl
name: multi-req name: multi-req
dsl: dsl:
- 'contains(body_2, "testing-payload") == true' - 'contains(body_2, "testing-payload")'

View File

@ -41,4 +41,4 @@ requests:
matchers: matchers:
- type: dsl - type: dsl
dsl: dsl:
- "contains(body, 'Poc_Test') == true && status_code == 200" - "contains(body, 'Poc_Test') && status_code == 200"