diff --git a/files/gvm_library.py b/files/gvm_library.py index bb8739ba11d83e3e1a6c38bfa3c24da8c331ed70..40a1669a53b1c36df0a5b749756e9fb067888633 100644 --- a/files/gvm_library.py +++ b/files/gvm_library.py @@ -464,9 +464,17 @@ class Task: glob_threat = 'None' for o, s, t, p in zip(o_ids, severities, treats, ports): logging.debug(f"Detected oid: {o}, severity: {s}, threat: {t} and port: {p}") - if (o not in accepted_issues) and (o in known_issues): - logging.debug(f"Oid {o}, not accepted but known") - continue + + if s >= 4: + if o in accepted_issues: + logging.debug(f"Oid {o} ACCEPTED") + else: + if o in known_issues: + logging.debug(f"Oid {o} DROPPED (not accepted but known)") + continue + else: + logging.debug(f"Oid {o} NEW (not accepted and not known)") + if p in report: if s > report[p]['severity']: report[p] = {'severity': s, 'threat': t}