Skip to content

Commit 3842ec9

Browse files
SONARJAVA-5021 Update Rules Metadata (#4801)
1 parent 5292d8b commit 3842ec9

52 files changed

Lines changed: 203 additions & 23 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2053.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,7 @@ <h3>Standards</h3>
7070
Exposure</a> </li>
7171
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/759">CWE-759 - Use of a One-Way Hash without a Salt</a> </li>
7272
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/760">CWE-760 - Use of a One-Way Hash with a Predictable Salt</a> </li>
73+
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222542">Application Security and
74+
Development: V-222542</a> - The application must only store cryptographic representations of passwords. </li>
7375
</ul>
7476

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2053.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
],
3636
"PCI DSS 4.0": [
3737
"6.2.4"
38+
],
39+
"STIG ASD 2023-06-08": [
40+
"V-222542"
3841
]
3942
},
4043
"quickfix": "unknown"

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2092.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ <h2>See</h2>
3838
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/311">CWE-311 - Missing Encryption of Sensitive Data</a> </li>
3939
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/315">CWE-315 - Cleartext Storage of Sensitive Information in a Cookie</a> </li>
4040
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/614">CWE-614 - Sensitive Cookie in HTTPS Session Without 'Secure' Attribute</a> </li>
41+
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222576">Application Security and
42+
Development: V-222576</a> - The application must set the secure flag on session cookies. </li>
4143
</ul>
4244

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2092.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
"6.1.1",
4646
"6.1.2",
4747
"6.1.3"
48+
],
49+
"STIG ASD 2023-06-08": [
50+
"V-222576"
4851
]
4952
},
5053
"quickfix": "unknown"

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2184.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ <h3>Compliant solution</h3>
5555
}
5656
</pre>
5757
<h2>Resources</h2>
58+
<h3>Standards</h3>
5859
<ul>
5960
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/190">CWE-190 - Integer Overflow or Wraparound</a> </li>
6061
<li> <a href="https://wiki.sei.cmu.edu/confluence/x/AjdGBQ">CERT, NUM50-J.</a> - Convert integers to floating point for floating-point operations
6162
</li>
6263
<li> <a href="https://wiki.sei.cmu.edu/confluence/x/I9cxBQ">CERT, INT18-C.</a> - Evaluate integer expressions in a larger size before comparing or
6364
assigning to that size </li>
65+
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222612">Application Security and
66+
Development: V-222612</a> - The application must not be vulnerable to overflow attacks. </li>
6467
</ul>
6568

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2184.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
],
3232
"ASVS 4.0": [
3333
"5.4.3"
34+
],
35+
"STIG ASD 2023-06-08": [
36+
"V-222612"
3437
]
3538
},
3639
"quickfix": "unknown"

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2226.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ <h2>Resources</h2>
134134
<h3>Articles &amp; blog posts</h3>
135135
<ul>
136136
<li> <a href="https://www.devinline.com/2013/08/how-to-make-thread-safe-servlet.html">Nikhil Ranjan: How to make thread safe servlet ?</a> </li>
137-
<li> <a href="https://objectcomputing.com/resources/publications/sett/april-2000-tips-for-creating-thread-safe-code-avoiding-race-conditions">Object
138-
Computing: Tips for creating thread-safe code</a> </li>
137+
</ul>
138+
<h3>Standards</h3>
139+
<ul>
140+
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222567">Application Security and
141+
Development: V-222567</a> - The application must not be vulnerable to race conditions. </li>
139142
</ul>
140143

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2226.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
"securityStandards": {
2525
"CERT": [
2626
"MSC11-J."
27+
],
28+
"STIG ASD 2023-06-08": [
29+
"V-222567"
2730
]
2831
},
2932
"quickfix": "unknown"

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2254.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ <h3>Standards</h3>
4949
<li> OWASP - <a href="https://owasp.org/www-project-top-ten/2017/A2_2017-Broken_Authentication">Top 10 2017 Category A2 - Broken Authentication</a>
5050
</li>
5151
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/807">CWE-807 - Reliance on Untrusted Inputs in a Security Decision</a> </li>
52+
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222582">Application Security and
53+
Development: V-222582</a> - The application must not re-use or recycle session IDs. </li>
5254
</ul>
5355

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2254.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
],
2929
"OWASP Top 10 2021": [
3030
"A4"
31+
],
32+
"STIG ASD 2023-06-08": [
33+
"V-222582"
3134
]
3235
},
3336
"quickfix": "unknown"

0 commit comments

Comments
 (0)