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

Skip to content

Commit c9cac95

Browse files
committed
adding one more case for false positive check (Generic tests without any DBMS knowledge)
1 parent 6014648 commit c9cac95

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,8 @@ def checkFalsePositives(injection):
533533
retVal = injection
534534

535535
if len(injection.data) == 1 and any(map(lambda x: x in injection.data, [PAYLOAD.TECHNIQUE.BOOLEAN, PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED]))\
536-
or len(injection.data) == 2 and all(map(lambda x: x in injection.data, [PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED])):
536+
or len(injection.data) == 2 and all(map(lambda x: x in injection.data, [PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED]))\
537+
or len(injection.data) == 1 and 'Generic' in injection.data.values()[0].title and not Backend.getDbms():
537538
pushValue(kb.injection)
538539

539540
infoMsg = "checking if the injection point on %s " % injection.place

0 commit comments

Comments
 (0)