Skip to content

Commit

Permalink
Java: fix InsecureAlgoProperty exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jami Cogswell authored and Jami Cogswell committed Nov 1, 2024
1 parent 3826ae1 commit 8fbd6bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class InsecureAlgoLiteral extends InsecureAlgorithm, ShortStringLiteral {
// Exclude results covered by `InsecureAlgoProperty`.
// This removes duplicates when a string literal is a default value for the property,
// such as "MD5" in the following: `props.getProperty("hashAlg2", "MD5")`.
not exists(InsecureAlgoProperty insecureAlgoProp | s = insecureAlgoProp.getStringValue())
not exists(InsecureAlgoProperty insecAlgoProp | this = insecAlgoProp.getAnArgument())
)
}

Expand Down

0 comments on commit 8fbd6bf

Please sign in to comment.