aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2024-07-29 12:16:14 +0200
committersonartech <sonartech@sonarsource.com>2024-07-30 20:02:34 +0000
commit63f312132bbc55b3124b409f48d70fe2d3bff51a (patch)
tree6f6b895f5b20b5ac1c6c7beb89c2ac395467ac4e /plugins
parent98894e1b6e6f68873318a7421d3b1edfc5735c7c (diff)
downloadsonarqube-63f312132bbc55b3124b409f48d70fe2d3bff51a.tar.gz
sonarqube-63f312132bbc55b3124b409f48d70fe2d3bff51a.zip
SONAR-22542 Add more vulnerabilities and hotspots for STIG tests
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java4
-rw-r--r--plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java4
2 files changed, 4 insertions, 4 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 39265fcbdcd..8426cd5ae85 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
@@ -316,9 +316,9 @@ public class XooRulesDefinition implements RulesDefinition {
if (version != null && version.isGreaterThanOrEqual(Version.create(10, 7))) {
hotspot
- .addStig(StigVersion.ASD_V5R3, "V-222643", "V-222564", "V-222655");
+ .addStig(StigVersion.ASD_V5R3, "V-222599", "V-222615", "V-222653");
oneVulnerabilityIssuePerProject
- .addStig(StigVersion.ASD_V5R3, "V-222480", "V-222473", "V-222524");
+ .addStig(StigVersion.ASD_V5R3, "V-222596", "V-222608", "V-222653");
}
NewRule hotspotWithContexts = repo.createRule(HotspotWithContextsSensor.RULE_KEY)
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 9ca1e62e02c..b714fd60cf0 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
@@ -73,7 +73,7 @@ public class XooRulesDefinitionTest {
"owaspTop10-2021:a3", "owaspTop10-2021:a2", "owaspAsvs-4.0:2.8.7", "owaspAsvs-4.0:3.1.1",
"owaspAsvs-4.0:4.2.2", "pciDss-3.2:4.2", "pciDss-3.2:4.2b", "pciDss-3.2:6.5.1",
"pciDss-3.2:6.5a.1b", "pciDss-4.0:4.1", "pciDss-4.0:4.2c", "pciDss-4.0:6.5.1", "pciDss-4.0:6.5a.1",
- "stig-ASD_V5R3:V-222564", "stig-ASD_V5R3:V-222643", "stig-ASD_V5R3:V-222655");
+ "stig-ASD_V5R3:V-222599", "stig-ASD_V5R3:V-222615", "stig-ASD_V5R3:V-222653");
}
@Test
@@ -101,7 +101,7 @@ public class XooRulesDefinitionTest {
"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",
- "stig-ASD_V5R3:V-222473", "stig-ASD_V5R3:V-222480", "stig-ASD_V5R3:V-222524");
+ "stig-ASD_V5R3:V-222596", "stig-ASD_V5R3:V-222608", "stig-ASD_V5R3:V-222653");
}
@Test