You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/controller/checks.py
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1134,15 +1134,18 @@ def _(page):
1134
1134
ifconf.beep:
1135
1135
beep()
1136
1136
1137
-
formatchinre.finditer(FI_ERROR_REGEX, pageor""):
1138
-
ifrandStr1.lower() inmatch.group(0).lower():
1139
-
infoMsg="heuristic (FI) test shows that %sparameter '%s' might be vulnerable to file inclusion (FI) attacks"% ("%s "%paramTypeifparamType!=parameterelse"", parameter)
1140
-
logger.info(infoMsg)
1137
+
try:
1138
+
formatchinre.finditer(FI_ERROR_REGEX, pageor""):
1139
+
ifrandStr1.lower() inmatch.group(0).lower():
1140
+
infoMsg="heuristic (FI) test shows that %sparameter '%s' might be vulnerable to file inclusion (FI) attacks"% ("%s "%paramTypeifparamType!=parameterelse"", parameter)
1141
+
logger.info(infoMsg)
1141
1142
1142
-
ifconf.beep:
1143
-
beep()
1143
+
ifconf.beep:
1144
+
beep()
1144
1145
1145
-
break
1146
+
break
1147
+
except (SystemError, RuntimeError) asex:
1148
+
logger.debug("Skipping FI heuristic due to regex failure: %s", getSafeExString(ex))
0 commit comments