Fix for --param-filter=POST not matching JSON/XML bodies

This commit is contained in:
Miroslav Štampar 2026-11-12 16:25:57 +01:00
parent ca2e847ef6
commit 4b8c39e424
2 changed files with 2 additions and 2 deletions

View file

@ -636,7 +636,7 @@ def start():
skip |= (place == PLACE.REFERER and (kb.testOnlyCustom or conf.level < 3))
# --param-filter
skip |= (len(conf.paramFilter) > 0 and place.upper() not in conf.paramFilter)
skip |= (len(conf.paramFilter) > 0 and place.upper() not in conf.paramFilter and place.upper().replace("(CUSTOM) ", "") not in conf.paramFilter) # Note: e.g. POST for JSON/XML (i.e. '(custom) POST') too
# Test Host header only if
# --level >= 5