Skip to content

Commit 61b9d84

Browse files
committed
change cookie vulns hash calculation
1 parent 866fc61 commit 61b9d84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dd-java-agent/agent-iast/src/main/java/com/datadog/iast/model/VulnerabilityType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ public interface VulnerabilityType {
2626
VulnerabilityType WEAK_CIPHER = type(VulnerabilityTypes.WEAK_CIPHER).build();
2727
VulnerabilityType WEAK_HASH = type(VulnerabilityTypes.WEAK_HASH).build();
2828
VulnerabilityType INSECURE_COOKIE =
29-
type(VulnerabilityTypes.INSECURE_COOKIE).hash(VulnerabilityType::evidenceHash).build();
29+
type(VulnerabilityTypes.INSECURE_COOKIE).hash(VulnerabilityType::fileAndLineHash).build();
3030
VulnerabilityType NO_HTTPONLY_COOKIE =
31-
type(VulnerabilityTypes.NO_HTTPONLY_COOKIE).hash(VulnerabilityType::evidenceHash).build();
31+
type(VulnerabilityTypes.NO_HTTPONLY_COOKIE).hash(VulnerabilityType::fileAndLineHash).build();
3232
VulnerabilityType HSTS_HEADER_MISSING =
3333
type(VulnerabilityTypes.HSTS_HEADER_MISSING).hash(VulnerabilityType::serviceHash).build();
3434
VulnerabilityType XCONTENTTYPE_HEADER_MISSING =
3535
type(VulnerabilityTypes.XCONTENTTYPE_HEADER_MISSING)
3636
.hash(VulnerabilityType::serviceHash)
3737
.build();
3838
VulnerabilityType NO_SAMESITE_COOKIE =
39-
type(VulnerabilityTypes.NO_SAMESITE_COOKIE).hash(VulnerabilityType::evidenceHash).build();
39+
type(VulnerabilityTypes.NO_SAMESITE_COOKIE).hash(VulnerabilityType::fileAndLineHash).build();
4040

4141
VulnerabilityType SQL_INJECTION =
4242
type(VulnerabilityTypes.SQL_INJECTION).mark(SQL_INJECTION_MARK).build();

0 commit comments

Comments
 (0)