Skip to content

Commit beedc2a

Browse files
fix CWE mapping inserted with last commit (#158)
1 parent 92bd00d commit beedc2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/main/java/org/owasp/benchmarkutils/score/parsers/SonarQubeReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,10 @@ public static int cweLookup(String squidNumber) {
511511
return CweNumber
512512
.DONTCARE; // "String#replace" should be preferred to "String#replaceAll"
513513
case "S5542":
514+
case "S5547":
514515
return CweNumber
515516
.WEAK_CRYPTO_ALGO; // Benchmark Vuln: Encryption algorithms should be used
516517
// with secure mode and padding scheme
517-
case "S5547":
518518
case "S4790":
519519
// Using weak hashing algorithms is security-sensitive
520520
return CweNumber.WEAK_HASH_ALGO;

0 commit comments

Comments
 (0)