Minor patch (some middleware doesn't like switching from GET to POST)

This commit is contained in:
Miroslav Stampar
2022-06-13 04:41:52 +02:00
parent 4a355b99be
commit 07ae377987
2 changed files with 2 additions and 3 deletions

View File

@@ -1367,11 +1367,10 @@ def checkWaf():
retVal = False
payload = "%d %s" % (randomInt(), IPS_WAF_CHECK_PAYLOAD)
place = PLACE.GET
if PLACE.URI in conf.parameters:
place = PLACE.POST
value = "%s=%s" % (randomStr(), agent.addPayloadDelimiters(payload))
else:
place = PLACE.GET
value = "" if not conf.parameters.get(PLACE.GET) else conf.parameters[PLACE.GET] + DEFAULT_GET_POST_DELIMITER
value += "%s=%s" % (randomStr(), agent.addPayloadDelimiters(payload))