Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pkg/fuzz/parts.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ func (rule *Rule) execWithInput(input *ExecuteRuleInput, httpReq *retryablehttp.
if _, err := strconv.Atoi(parameter); err == nil || (parameter == "" && parameterValue != "") {
actualParameter = parameterValue
}
// If the parameter is frequent, skip it if the option is enabled
if rule.options.FuzzParamsFrequency != nil {
// If the parameter is frequent, skip it if the option is enabled.
// Skip frequency check when parameter is empty (mode: multiple sends
// all values at once without a specific parameter name).
if rule.options.FuzzParamsFrequency != nil && actualParameter != "" {
if rule.options.FuzzParamsFrequency.IsParameterFrequent(
actualParameter,
httpReq.String(),
Expand Down
Loading