Skip to content

Commit d445b96

Browse files
authored
Updated rules metadata (#1798)
1 parent ca9525f commit d445b96

Some content is hidden

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

54 files changed

+213
-23
lines changed

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S1192.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ <h3>Exceptions</h3>
99
<li> strings with only letters, numbers and underscores </li>
1010
</ul>
1111
<h2>How to fix it</h2>
12-
<p>Instead, use constants to replace the duplicated string literals. Constants can be referenced from many places, but only need to be updated in a
13-
single place.</p>
12+
<p>Use constants to replace the duplicated string literals. Constants can be referenced from many places, but only need to be updated in a single
13+
place.</p>
1414
<h3>Code examples</h3>
1515
<h4>Noncompliant code example</h4>
1616
<p>With the default threshold of 3:</p>

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S2053.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,7 @@ <h3>Standards</h3>
108108
Exposure</a> </li>
109109
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/759">CWE-759 - Use of a One-Way Hash without a Salt</a> </li>
110110
<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>
111+
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222542">Application Security and
112+
Development: V-222542</a> - The application must only store cryptographic representations of passwords. </li>
111113
</ul>
112114

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/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"

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S2092.html

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

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S2092.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
"6.1.1",
4545
"6.1.2",
4646
"6.1.3"
47+
],
48+
"STIG ASD 2023-06-08": [
49+
"V-222576"
4750
]
4851
}
4952
}

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S2612.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,7 @@ <h2>See</h2>
4646
href="https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission">OWASP File Permission</a> </li>
4747
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/732">CWE-732 - Incorrect Permission Assignment for Critical Resource</a> </li>
4848
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/266">CWE-266 - Incorrect Privilege Assignment</a> </li>
49+
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222430">Application Security and
50+
Development: V-222430</a> - The application must execute without excessive account permissions. </li>
4951
</ul>
5052

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S2612.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
],
4040
"ASVS 4.0": [
4141
"4.3.3"
42+
],
43+
"STIG ASD 2023-06-08": [
44+
"V-222430"
4245
]
4346
}
4447
}

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S2755.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,7 @@ <h3>Standards</h3>
125125
Entities (XXE)</a> </li>
126126
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/611">CWE-611 - Information Exposure Through XML External Entity Reference</a> </li>
127127
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/827">CWE-827 - Improper Control of Document Type Definition</a> </li>
128+
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222608">Application Security and
129+
Development: V-222608</a> - The application must not be vulnerable to XML-oriented attacks. </li>
128130
</ul>
129131

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S2755.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
],
3939
"ASVS 4.0": [
4040
"5.5.2"
41+
],
42+
"STIG ASD 2023-06-08": [
43+
"V-222608"
4144
]
4245
},
4346
"quickfix": "unknown"

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S3330.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@ <h2>See</h2>
4545
(XSS)</a> </li>
4646
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/1004">CWE-1004 - Sensitive Cookie Without 'HttpOnly' Flag</a> </li>
4747
<li> Derived from FindSecBugs rule <a href="https://find-sec-bugs.github.io/bugs.htm#HTTPONLY_COOKIE">HTTPONLY_COOKIE</a> </li>
48+
<li> STIG Viewer - <a href="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222575">Application Security and
49+
Development: V-222575</a> - The application must set the HTTPOnly flag on session cookies. </li>
4850
</ul>
4951

0 commit comments

Comments
 (0)