Remove incorrect has_lookup=False for JndiLookup.class

The exception handler set has_lookup=False, while it should remain True
This commit is contained in:
Yun Zheng Hu
2021-12-17 19:42:20 +01:00
parent 16283db339
commit 915ac5c179

View File

@@ -331,7 +331,7 @@ def main():
try:
has_lookup = zfile.open(lookup_path)
except KeyError:
has_lookup = False
pass
check_vulnerable(zf, parents + [zpath], stats, has_lookup)
except IOError as e:
log.debug(f"{p}: {e}")