Skip to content

Commit f9d8f13

Browse files
authored
SONARKT-645 Update rules metadata
1 parent 9af64d9 commit f9d8f13

File tree

22 files changed

+36
-39
lines changed

22 files changed

+36
-39
lines changed

sonar-kotlin-plugin/sonarpedia.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"languages": [
44
"KOTLIN"
55
],
6-
"latest-update": "2025-04-03T13:07:10.743415Z",
6+
"latest-update": "2025-05-23T10:23:16.597800Z",
77
"options": {
88
"no-language-in-filenames": true,
99
"preserve-filenames": true

sonar-kotlin-plugin/src/main/resources/org/sonar/l10n/kotlin/rules/kotlin/S104.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"constantCost": "1h"
1414
},
1515
"tags": [
16+
"architecture",
1617
"brain-overload"
1718
],
1819
"defaultSeverity": "Major",

sonar-kotlin-plugin/src/main/resources/org/sonar/l10n/kotlin/rules/kotlin/S1313.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ <h2>Exceptions</h2>
4141
<li> Loopback addresses 127.0.0.0/8 in CIDR notation (from 127.0.0.0 to 127.255.255.255) </li>
4242
<li> Broadcast address 255.255.255.255 </li>
4343
<li> Non-routable address 0.0.0.0 </li>
44-
<li> Strings of the form <code>2.5.&lt;number&gt;.&lt;number&gt;</code> as they <a href="http://www.oid-info.com/introduction.htm">often match
45-
Object Identifiers</a> (OID) </li>
44+
<li> Strings of the form <code>2.5.&lt;number&gt;.&lt;number&gt;</code> as they <a href="https://en.wikipedia.org/wiki/Object_identifier">often
45+
match Object Identifiers</a> (OID) </li>
4646
<li> Addresses in the ranges 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, reserved for documentation purposes by <a
4747
href="https://datatracker.ietf.org/doc/html/rfc5737">RFC 5737</a> </li>
4848
<li> Addresses in the range 2001:db8::/32, reserved for documentation purposes by <a href="https://datatracker.ietf.org/doc/html/rfc3849">RFC

sonar-kotlin-plugin/src/main/resources/org/sonar/l10n/kotlin/rules/kotlin/S138.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"constantCost": "20min"
1414
},
1515
"tags": [
16+
"architecture",
1617
"brain-overload"
1718
],
1819
"defaultSeverity": "Major",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h3>Standards</h3>
7171
Insufficient Cryptography</a> </li>
7272
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/759">CWE-759 - Use of a One-Way Hash without a Salt</a> </li>
7373
<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>
74-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222542">Application Security and
74+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222542">Application Security and
7575
Development: V-222542</a> - The application must only store cryptographic representations of passwords. </li>
7676
</ul>
7777

sonar-kotlin-plugin/src/main/resources/org/sonar/l10n/kotlin/rules/kotlin/S3776.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"linearFactor": "1min"
1616
},
1717
"tags": [
18+
"architecture",
1819
"brain-overload"
1920
],
2021
"defaultSeverity": "Critical",

sonar-kotlin-plugin/src/main/resources/org/sonar/l10n/kotlin/rules/kotlin/S4830.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ <h3>Standards</h3>
111111
<li> OWASP - <a href="https://mas.owasp.org/checklists/MASVS-NETWORK/">Mobile AppSec Verification Standard - Network Communication Requirements</a>
112112
</li>
113113
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/295">CWE-295 - Improper Certificate Validation</a> </li>
114-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222550">Application Security and
114+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222550">Application Security and
115115
Development: V-222550</a> - The application must validate certificates by constructing a certification path to an accepted trust anchor. </li>
116116
<li> CERT - <a
117117
href="https://wiki.sei.cmu.edu/confluence/display/java/MSC61-J.+Do+not+use+insecure+or+weak+cryptographic+algorithms">https://wiki.sei.cmu.edu/confluence/display/java/MSC61-J.+Do+not+use+insecure+or+weak+cryptographic+algorithms</a> </li>

sonar-kotlin-plugin/src/main/resources/org/sonar/l10n/kotlin/rules/kotlin/S5324.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p>Files created on the external storage are globally readable and writable. Therefore, a malicious application having the permissions
44
<code>WRITE_EXTERNAL_STORAGE</code> or <code>READ_EXTERNAL_STORAGE</code> could try to read sensitive information from the files that other
55
applications have stored on the external storage.</p>
6-
<p>External storage can also be removed by the user (e.g when based on SD card) making the files unavailable to the application.</p>
6+
<p>External storage can also be removed by the user (e.g. when based on SD card) making the files unavailable to the application.</p>
77
<h2>Ask Yourself Whether</h2>
88
<p>Your application uses external storage to:</p>
99
<ul>
@@ -22,7 +22,7 @@ <h2>Recommended Secure Coding Practices</h2>
2222
<li> As some external storage can be removed, make sure to never store files on it that are critical for the usability of your application. </li>
2323
</ul>
2424
<h2>Sensitive Code Example</h2>
25-
<pre>
25+
<pre data-diff-id="1" data-diff-type="noncompliant">
2626
import android.content.Context
2727

2828
class AccessExternalFiles {
@@ -33,7 +33,7 @@ <h2>Sensitive Code Example</h2>
3333
}
3434
</pre>
3535
<h2>Compliant Solution</h2>
36-
<pre>
36+
<pre data-diff-id="1" data-diff-type="compliant">
3737
import android.content.Context
3838
import android.os.Environment
3939

sonar-kotlin-plugin/src/main/resources/org/sonar/l10n/kotlin/rules/kotlin/S5332.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h2>Sensitive Code Example</h2>
7777
</pre>
7878
<h2>Compliant Solution</h2>
7979
<p>Use instead these clients from <a href="https://commons.apache.org/proper/commons-net/">Apache commons net</a> and <a
80-
href="http://www.jcraft.com/jsch/">JSch/ssh</a> library:</p>
80+
href="https://github.com/mwiede/jsch">JSch</a> library:</p>
8181
<pre>
8282
JSch jsch = JSch();
8383

@@ -145,27 +145,27 @@ <h3>Standards</h3>
145145
Communication</a> </li>
146146
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/200">CWE-200 - Exposure of Sensitive Information to an Unauthorized Actor</a> </li>
147147
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/319">CWE-319 - Cleartext Transmission of Sensitive Information</a> </li>
148-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222397">Application Security and
148+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222397">Application Security and
149149
Development: V-222397</a> - The application must implement cryptographic mechanisms to protect the integrity of remote access sessions. </li>
150-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222534">Application Security and
150+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222534">Application Security and
151151
Development: V-222534</a> - Service-Oriented Applications handling non-releasable data must authenticate endpoint devices via mutual SSL/TLS. </li>
152-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222562">Application Security and
152+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222562">Application Security and
153153
Development: V-222562</a> - Applications used for non-local maintenance must implement cryptographic mechanisms to protect the integrity of
154154
maintenance and diagnostic communications. </li>
155-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222563">Application Security and
155+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222563">Application Security and
156156
Development: V-222563</a> - Applications used for non-local maintenance must implement cryptographic mechanisms to protect the confidentiality of
157157
maintenance and diagnostic communications. </li>
158-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222577">Application Security and
158+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222577">Application Security and
159159
Development: V-222577</a> - The application must not expose session IDs. </li>
160-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222596">Application Security and
160+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222596">Application Security and
161161
Development: V-222596</a> - The application must protect the confidentiality and integrity of transmitted information. </li>
162-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222597">Application Security and
162+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222597">Application Security and
163163
Development: V-222597</a> - The application must implement cryptographic mechanisms to prevent unauthorized disclosure of information and/or detect
164164
changes to information during transmission. </li>
165-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222598">Application Security and
165+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222598">Application Security and
166166
Development: V-222598</a> - The application must maintain the confidentiality and integrity of information during preparation for transmission.
167167
</li>
168-
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222599">Application Security and
168+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222599">Application Security and
169169
Development: V-222599</a> - The application must maintain the confidentiality and integrity of information during reception. </li>
170170
</ul>
171171

sonar-kotlin-plugin/src/main/resources/org/sonar/l10n/kotlin/rules/kotlin/S5344.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h3>Standards</h3>
7070
Insufficient Cryptography</a> </li>
7171
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/256">CWE-256 - Plaintext Storage of a Password</a> </li>
7272
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/916">CWE-916 - Use of Password Hash With Insufficient Computational Effort</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
73+
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222542">Application Security and
7474
Development: V-222542</a> - The application must only store cryptographic representations of passwords. </li>
7575
</ul>
7676

0 commit comments

Comments
 (0)