Skip to content

Commit 2d8fabd

Browse files
committed
fix(iast): cookie vulnerability cardinality issues
1 parent c7b7192 commit 2d8fabd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ddtrace/appsec/_iast/_overhead_control_engine.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ def has_quota(cls) -> bool:
6767

6868
@classmethod
6969
def is_not_reported(cls, filename: Text, lineno: int) -> bool:
70-
vulnerability_id = (filename, lineno)
71-
if vulnerability_id in cls._reported_vulnerabilities:
72-
return False
70+
if asm_config._iast_deduplication_enabled:
71+
vulnerability_id = (filename, lineno)
72+
if vulnerability_id in cls._reported_vulnerabilities:
73+
return False
7374

74-
cls._reported_vulnerabilities.add(vulnerability_id)
75+
cls._reported_vulnerabilities.add(vulnerability_id)
7576
return True
7677

7778

docs/spelling_wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,3 +318,4 @@ xfail
318318
yaaredis
319319
csrftoken
320320
session
321+
sessionid

0 commit comments

Comments
 (0)