Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9d3974

Browse files
committed
Minor fix (templatePayload had duplicate string patterns for where==NEGATIVE)
1 parent ac2d40e commit c9d3974

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def checkSqlInjection(place, parameter, value):
335335
origValue = "%d.%d" % (randomInt(6), randomInt(1))
336336
else:
337337
origValue = "-%s" % randomInt()
338-
templatePayload = agent.payload(place, parameter, newValue=origValue, where=where)
338+
templatePayload = agent.payload(place, parameter, value="", newValue=origValue, where=where)
339339
elif where == PAYLOAD.WHERE.REPLACE:
340340
origValue = ""
341341

0 commit comments

Comments
 (0)