diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2024-07-29 12:38:16 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-07-30 20:02:34 +0000 |
commit | 470e008f0f16fb7e8f7f8c38a6eda85a92719f9a (patch) | |
tree | 06f92879b10d466e3b31fe683d7513c6be2e3de1 /plugins/sonar-xoo-plugin/src | |
parent | 63f312132bbc55b3124b409f48d70fe2d3bff51a (diff) | |
download | sonarqube-470e008f0f16fb7e8f7f8c38a6eda85a92719f9a.tar.gz sonarqube-470e008f0f16fb7e8f7f8c38a6eda85a92719f9a.zip |
SONAR-22543 Add more vulnerabilities and hotspots for CASA tests
Diffstat (limited to 'plugins/sonar-xoo-plugin/src')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java | 2 | ||||
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java index 8426cd5ae85..6468f7ef0d9 100644 --- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java +++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java @@ -290,7 +290,7 @@ public class XooRulesDefinition implements RulesDefinition { oneVulnerabilityIssuePerProject .addOwaspTop10(Y2017, OwaspTop10.A9, OwaspTop10.A10) .addOwaspTop10(Y2021, OwaspTop10.A6, OwaspTop10.A9) - .addCwe(250, 564, 546, 943); + .addCwe(89, 250, 311, 546, 564, 943); } if (version != null && version.isGreaterThanOrEqual(Version.create(9, 5))) { diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java index b714fd60cf0..f1effd3b78c 100644 --- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java +++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java @@ -97,7 +97,7 @@ public class XooRulesDefinitionTest { assertThat(rule.name()).isNotEmpty(); assertThat(rule.securityStandards()) .isNotEmpty() - .containsExactlyInAnyOrder("cwe:250", "cwe:546", "cwe:564", "cwe:943", "owaspTop10-2021:a6", "owaspTop10-2021:a9", + .containsExactlyInAnyOrder("cwe:89", "cwe:250", "cwe:311", "cwe:546", "cwe:564", "cwe:943", "owaspTop10-2021:a6", "owaspTop10-2021:a9", "owaspTop10:a10", "owaspTop10:a9", "owaspAsvs-4.0:11.1.2", "owaspAsvs-4.0:14.5.1", "owaspAsvs-4.0:14.5.4", "pciDss-3.2:10.1a.2c", "pciDss-3.2:10.2", "pciDss-4.0:10.1", "pciDss-4.0:10.1a.2b", |