Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Validate ids POST param for scanexportjsonmulti

bcoles77774e687cb2
diff --git a/sfwebui.py b/sfwebui.py
index 11508cf4..90ba90b7 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -188,7 +188,12 @@ class SpiderFootWebUi:
scaninfo = dict()
for id in ids.split(','):
- scan_name = dbh.scanInstanceGet(id)[0]
+ scan = dbh.scanInstanceGet(id)
+
+ if scan is None:
+ continue
+
+ scan_name = scan[0]
if scan_name not in scaninfo:
scaninfo[scan_name] = []