You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the run for each variables are used, the requests are getting repeated even though run for each placement may not be reached.
Consider the following situation:
You want to check for xss vulnerabilities. You have 10 payloads in run for each. But before sending those payloads you need to make sure that the injection point reflects on the page to decrease the amount of useless requests.
Example:
metadata:
language: v1-beta
name: "Test"
description: "Tests"
author: "sh"
run for each:
calculation = "314116790-1", "314116788+1"
define:
answer="314116789"
given insertion point then
# check whether the injection point reflects on the page
send payload: #[1]
replacing: {answer}
# if reflects - send payloads
if {answer} in {latest.response} then
send payload: #[2]
replacing: {calculation}
if {answer} in {latest.response} then
report issue:
severity: medium
confidence: tentative
detail: "v"
end if
end if
With this configuration for every #[2] request the #[1] one will be sent as well(even if the first condition won't be reached at all), but the #[1] request needs to be sent only once because the response won't change.
I think it can be solved by adding another special word that will annotate the start of repeating for run for each . For example:
if {answer} in {latest.response} then
repeat calculation:
send payload: #[2]
replacing: {calculation}
The text was updated successfully, but these errors were encountered:
When the
run for each
variables are used, the requests are getting repeated even thoughrun for each
placement may not be reached.Consider the following situation:
You want to check for xss vulnerabilities. You have 10 payloads in
run for each
. But before sending those payloads you need to make sure that the injection point reflects on the page to decrease the amount of useless requests.Example:
With this configuration for every
#[2]
request the#[1]
one will be sent as well(even if the first condition won't be reached at all), but the#[1]
request needs to be sent only once because the response won't change.I think it can be solved by adding another special word that will annotate the start of repeating for
run for each
. For example:The text was updated successfully, but these errors were encountered: