File tree 35 files changed +16
-119
lines changed
SonarAnalyzer.VisualBasic
35 files changed +16
-119
lines changed Original file line number Diff line number Diff line change 3
3
"type" : " CODE_SMELL" ,
4
4
"code" : {
5
5
"impacts" : {
6
- "MAINTAINABILITY" : " LOW "
6
+ "MAINTAINABILITY" : " INFO "
7
7
},
8
8
"attribute" : " CLEAR"
9
9
},
Original file line number Diff line number Diff line change 3
3
"type" : " CODE_SMELL" ,
4
4
"code" : {
5
5
"impacts" : {
6
- "MAINTAINABILITY" : " LOW "
6
+ "MAINTAINABILITY" : " INFO "
7
7
},
8
8
"attribute" : " COMPLETE"
9
9
},
Original file line number Diff line number Diff line change
1
+ < p > This rule is deprecated, and will eventually be removed.</ p >
1
2
< h2 > Why is this an issue?</ h2 >
2
3
< p > < code > break;</ code > is an unstructured control flow statement which makes code harder to read.</ p >
3
4
< p > Ideally, every loop should have a single termination condition.</ p >
Original file line number Diff line number Diff line change 7
7
},
8
8
"attribute" : " CLEAR"
9
9
},
10
- "status" : " ready " ,
10
+ "status" : " deprecated " ,
11
11
"remediation" : {
12
12
"func" : " Constant\/ Issue" ,
13
13
"constantCost" : " 10min"
Original file line number Diff line number Diff line change 3
3
"type" : " VULNERABILITY" ,
4
4
"code" : {
5
5
"impacts" : {
6
- "SECURITY" : " HIGH "
6
+ "SECURITY" : " BLOCKER "
7
7
},
8
8
"attribute" : " TRUSTWORTHY"
9
9
},
Original file line number Diff line number Diff line change @@ -57,15 +57,10 @@ <h2>See</h2>
57
57
< li > OWASP - < a href ="https://owasp.org/Top10/A02_2021-Cryptographic_Failures/ "> Top 10 2021 Category A2 - Cryptographic Failures</ a > </ li >
58
58
< li > OWASP - < a href ="https://owasp.org/www-project-top-ten/2017/A3_2017-Sensitive_Data_Exposure "> Top 10 2017 Category A3 - Sensitive Data
59
59
Exposure</ a > </ li >
60
- < li > OWASP - < a href ="https://mas.owasp.org/checklists/MASVS-CRYPTO/ "> Mobile AppSec Verification Standard - Cryptography Requirements</ a > </ li >
61
- < li > OWASP - < a href ="https://owasp.org/www-project-mobile-top-10/2016-risks/m5-insufficient-cryptography "> Mobile Top 10 2016 Category M5 -
62
- Insufficient Cryptography</ a > </ li >
63
60
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/338 "> CWE-338 - Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)</ a >
64
61
</ li >
65
62
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/330 "> CWE-330 - Use of Insufficiently Random Values</ a > </ li >
66
63
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/326 "> CWE-326 - Inadequate Encryption Strength</ a > </ li >
67
64
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/1241 "> CWE-1241 - Use of Predictable Algorithm in Random Number Generator</ a > </ li >
68
- < li > Derived from FindSecBugs rule < a href ="https://h3xstream.github.io/find-sec-bugs/bugs.htm#PREDICTABLE_RANDOM "> Predictable Pseudo Random Number
69
- Generator</ a > </ li >
70
65
</ ul >
71
66
Original file line number Diff line number Diff line change 29
29
"OWASP" : [
30
30
" A3"
31
31
],
32
- "OWASP Mobile" : [
33
- " M5"
34
- ],
35
- "MASVS" : [
36
- " MSTG-CRYPTO-6"
37
- ],
38
32
"OWASP Top 10 2021" : [
39
33
" A2"
40
34
],
Original file line number Diff line number Diff line change 3
3
"type" : " VULNERABILITY" ,
4
4
"code" : {
5
5
"impacts" : {
6
- "SECURITY" : " HIGH "
6
+ "SECURITY" : " BLOCKER "
7
7
},
8
8
"attribute" : " COMPLETE"
9
9
},
Original file line number Diff line number Diff line change 30
30
" A3" ,
31
31
" A6"
32
32
],
33
- "OWASP Mobile" : [
34
- " M3"
35
- ],
36
- "MASVS" : [
37
- " MSTG-NETWORK-2"
38
- ],
39
33
"OWASP Top 10 2021" : [
40
34
" A2" ,
41
35
" A7"
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ <h3>How does this work?</h3>
116
116
< h4 > RSA (Rivest-Shamir-Adleman) and DSA (Digital Signature Algorithm)</ h4 >
117
117
< p > The security of these algorithms depends on the difficulty of attacks attempting to solve their underlying mathematical problem.</ p >
118
118
< p > In general, a minimum key size of < strong > 2048</ strong > bits is recommended for both. It provides 112 bits of security. A key length of
119
- < strong > 3072</ strong > or < strong > 4092 </ strong > should be preferred when possible.</ p >
119
+ < strong > 3072</ strong > or < strong > 4096 </ strong > should be preferred when possible.</ p >
120
120
< h4 > AES (Advanced Encryption Standard)</ h4 >
121
121
< p > AES supports three key sizes: 128 bits, 192 bits and 256 bits. The security of the AES algorithm is based on the computational complexity of trying
122
122
all possible keys.< br > A larger key size increases the number of possible keys and makes exhaustive search attacks computationally infeasible.
@@ -182,9 +182,6 @@ <h3>Standards</h3>
182
182
Exposure</ a > </ li >
183
183
< li > OWASP - < a href ="https://owasp.org/www-project-top-ten/2017/A6_2017-Security_Misconfiguration "> Top 10 2017 Category A6 - Security
184
184
Misconfiguration</ a > </ li >
185
- < li > OWASP - < a href ="https://mas.owasp.org/checklists/MASVS-CRYPTO/ "> Mobile AppSec Verification Standard - Cryptography Requirements</ a > </ li >
186
- < li > OWASP - < a href ="https://owasp.org/www-project-mobile-top-10/2016-risks/m5-insufficient-cryptography "> Mobile Top 10 2016 Category M5 -
187
- Insufficient Cryptography</ a > </ li >
188
185
< li > < a href ="https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar1.pdf "> NIST 800-131A</ a > - Recommendation for Transitioning the
189
186
Use of Cryptographic Algorithms and Key Lengths </ li >
190
187
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/326 "> CWE-326 - Inadequate Encryption Strength</ a > </ li >
Original file line number Diff line number Diff line change 28
28
" A3" ,
29
29
" A6"
30
30
],
31
- "OWASP Mobile" : [
32
- " M5"
33
- ],
34
- "MASVS" : [
35
- " MSTG-CRYPTO-3"
36
- ],
37
31
"OWASP Top 10 2021" : [
38
32
" A2"
39
33
],
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ <h2>Why is this an issue?</h2>
17
17
{
18
18
get
19
19
{
20
- return length * width ;
20
+ return length * length ;
21
21
}
22
22
}
23
23
}
Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ <h2>See</h2>
34
34
Exposure</ a > </ li >
35
35
< li > OWASP - < a href ="https://owasp.org/www-project-top-ten/2017/A6_2017-Security_Misconfiguration "> Top 10 2017 Category A6 - Security
36
36
Misconfiguration</ a > </ li >
37
- < li > OWASP - < a href ="https://mas.owasp.org/checklists/MASVS-CRYPTO/ "> Mobile AppSec Verification Standard - Cryptography Requirements</ a > </ li >
38
- < li > OWASP - < a href ="https://owasp.org/www-project-mobile-top-10/2016-risks/m5-insufficient-cryptography "> Mobile Top 10 2016 Category M5 -
39
- Insufficient Cryptography</ a > </ li >
40
37
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/1240 "> CWE-1240 - Use of a Risky Cryptographic Primitive</ a > </ li >
41
38
</ ul >
42
39
Original file line number Diff line number Diff line change 23
23
" A3" ,
24
24
" A6"
25
25
],
26
- "OWASP Mobile" : [
27
- " M5"
28
- ],
29
- "MASVS" : [
30
- " MSTG-CRYPTO-4"
31
- ],
32
26
"OWASP Top 10 2021" : [
33
27
" A2"
34
28
],
Original file line number Diff line number Diff line change @@ -59,10 +59,6 @@ <h3>Standards</h3>
59
59
Exposure</ a > </ li >
60
60
< li > OWASP - < a href ="https://owasp.org/www-project-top-ten/2017/A6_2017-Security_Misconfiguration "> Top 10 2017 Category A6 - Security
61
61
Misconfiguration</ a > </ li >
62
- < li > OWASP - < a href ="https://owasp.org/www-project-mobile-top-10/2016-risks/m3-insecure-communication "> Mobile Top 10 2016 Category M3 - Insecure
63
- Communication</ a > </ li >
64
- < li > OWASP - < a href ="https://mas.owasp.org/checklists/MASVS-NETWORK/ "> Mobile AppSec Verification Standard - Network Communication Requirements</ a >
65
- </ li >
66
62
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/295 "> CWE-295 - Improper Certificate Validation</ a > </ li >
67
63
< li > STIG Viewer - < a href ="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222550 "> Application Security and
68
64
Development: V-222550</ a > - The application must validate certificates by constructing a certification path to an accepted trust anchor. </ li >
Original file line number Diff line number Diff line change 29
29
" A6" ,
30
30
" A3"
31
31
],
32
- "OWASP Mobile" : [
33
- " M3"
34
- ],
35
- "MASVS" : [
36
- " MSTG-NETWORK-3"
37
- ],
38
32
"OWASP Top 10 2021" : [
39
33
" A2" ,
40
34
" A5" ,
Original file line number Diff line number Diff line change @@ -96,10 +96,6 @@ <h3>Standards</h3>
96
96
< li > OWASP - < a href ="https://owasp.org/www-project-top-ten/2017/A3_2017-Sensitive_Data_Exposure "> Top 10 2017 Category A3 - Sensitive Data
97
97
Exposure</ a > </ li >
98
98
< li > OWASP - < a href ="https://owasp.org/Top10/A02_2021-Cryptographic_Failures/ "> Top 10 2021 Category A2 - Cryptographic Failures</ a > </ li >
99
- < li > OWASP - < a href ="https://mas.owasp.org/checklists/MASVS-NETWORK/ "> Mobile AppSec Verification Standard - Network Communication Requirements</ a >
100
- </ li >
101
- < li > OWASP - < a href ="https://owasp.org/www-project-mobile-top-10/2016-risks/m3-insecure-communication "> Mobile Top 10 2016 Category M3 - Insecure
102
- Communication</ a > </ li >
103
99
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/200 "> CWE-200 - Exposure of Sensitive Information to an Unauthorized Actor</ a > </ li >
104
100
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/319 "> CWE-319 - Cleartext Transmission of Sensitive Information</ a > </ li >
105
101
< li > STIG Viewer - < a href ="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222397 "> Application Security and
Original file line number Diff line number Diff line change 23
23
"OWASP" : [
24
24
" A3"
25
25
],
26
- "OWASP Mobile" : [
27
- " M3"
28
- ],
29
- "MASVS" : [
30
- " MSTG-NETWORK-1"
31
- ],
32
26
"OWASP Top 10 2021" : [
33
27
" A2"
34
28
],
Original file line number Diff line number Diff line change 29
29
" A6" ,
30
30
" A3"
31
31
],
32
- "OWASP Mobile" : [
33
- " M5"
34
- ],
35
- "MASVS" : [
36
- " MSTG-CRYPTO-3"
37
- ],
38
32
"OWASP Top 10 2021" : [
39
33
" A2"
40
34
],
Original file line number Diff line number Diff line change 29
29
" A3" ,
30
30
" A6"
31
31
],
32
- "OWASP Mobile" : [
33
- " M5"
34
- ],
35
- "MASVS" : [
36
- " MSTG-CRYPTO-3"
37
- ],
38
32
"OWASP Top 10 2021" : [
39
33
" A2"
40
34
],
Original file line number Diff line number Diff line change 9
9
"tags" : [
10
10
" symbolic-execution"
11
11
],
12
- "defaultSeverity" : " Major " ,
12
+ "defaultSeverity" : " Critical " ,
13
13
"ruleSpecification" : " RSPEC-7131" ,
14
14
"sqKey" : " S7131" ,
15
15
"scope" : " All" ,
Original file line number Diff line number Diff line change 9
9
"tags" : [
10
10
" symbolic-execution"
11
11
],
12
- "defaultSeverity" : " Major " ,
12
+ "defaultSeverity" : " Critical " ,
13
13
"ruleSpecification" : " RSPEC-7133" ,
14
14
"sqKey" : " S7133" ,
15
15
"scope" : " All" ,
Original file line number Diff line number Diff line change 3
3
"type" : " CODE_SMELL" ,
4
4
"code" : {
5
5
"impacts" : {
6
- "MAINTAINABILITY" : " LOW "
6
+ "MAINTAINABILITY" : " INFO "
7
7
},
8
8
"attribute" : " CLEAR"
9
9
},
Original file line number Diff line number Diff line change 3
3
"type" : " CODE_SMELL" ,
4
4
"code" : {
5
5
"impacts" : {
6
- "MAINTAINABILITY" : " LOW "
6
+ "MAINTAINABILITY" : " INFO "
7
7
},
8
8
"attribute" : " COMPLETE"
9
9
},
Original file line number Diff line number Diff line change 30
30
" A3" ,
31
31
" A6"
32
32
],
33
- "OWASP Mobile" : [
34
- " M3"
35
- ],
36
- "MASVS" : [
37
- " MSTG-NETWORK-2"
38
- ],
39
33
"OWASP Top 10 2021" : [
40
34
" A2" ,
41
35
" A7"
Original file line number Diff line number Diff line change @@ -54,9 +54,6 @@ <h2>See</h2>
54
54
Exposure</ a > </ li >
55
55
< li > OWASP - < a href ="https://owasp.org/www-project-top-ten/2017/A6_2017-Security_Misconfiguration "> Top 10 2017 Category A6 - Security
56
56
Misconfiguration</ a > </ li >
57
- < li > OWASP - < a href ="https://mas.owasp.org/checklists/MASVS-CRYPTO/ "> Mobile AppSec Verification Standard - Cryptography Requirements</ a > </ li >
58
- < li > OWASP - < a href ="https://owasp.org/www-project-mobile-top-10/2016-risks/m5-insufficient-cryptography "> Mobile Top 10 2016 Category M5 -
59
- Insufficient Cryptography</ a > </ li >
60
57
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/1240 "> CWE-1240 - Use of a Risky Cryptographic Primitive</ a > </ li >
61
58
</ ul >
62
59
Original file line number Diff line number Diff line change 23
23
" A3" ,
24
24
" A6"
25
25
],
26
- "OWASP Mobile" : [
27
- " M5"
28
- ],
29
- "MASVS" : [
30
- " MSTG-CRYPTO-4"
31
- ],
32
26
"OWASP Top 10 2021" : [
33
27
" A2"
34
28
],
Original file line number Diff line number Diff line change @@ -57,10 +57,6 @@ <h3>Standards</h3>
57
57
Exposure</ a > </ li >
58
58
< li > OWASP - < a href ="https://owasp.org/www-project-top-ten/2017/A6_2017-Security_Misconfiguration "> Top 10 2017 Category A6 - Security
59
59
Misconfiguration</ a > </ li >
60
- < li > OWASP - < a href ="https://owasp.org/www-project-mobile-top-10/2016-risks/m3-insecure-communication "> Mobile Top 10 2016 Category M3 - Insecure
61
- Communication</ a > </ li >
62
- < li > OWASP - < a href ="https://mas.owasp.org/checklists/MASVS-NETWORK/ "> Mobile AppSec Verification Standard - Network Communication Requirements</ a >
63
- </ li >
64
60
< li > CWE - < a href ="https://cwe.mitre.org/data/definitions/295 "> CWE-295 - Improper Certificate Validation</ a > </ li >
65
61
< li > STIG Viewer - < a href ="https://stigviewer.com/stig/application_security_and_development/2023-06-08/finding/V-222550 "> Application Security and
66
62
Development: V-222550</ a > - The application must validate certificates by constructing a certification path to an accepted trust anchor. </ li >
Original file line number Diff line number Diff line change 29
29
" A6" ,
30
30
" A3"
31
31
],
32
- "OWASP Mobile" : [
33
- " M3"
34
- ],
35
- "MASVS" : [
36
- " MSTG-NETWORK-3"
37
- ],
38
32
"OWASP Top 10 2021" : [
39
33
" A2" ,
40
34
" A5" ,
Original file line number Diff line number Diff line change 29
29
" A6" ,
30
30
" A3"
31
31
],
32
- "OWASP Mobile" : [
33
- " M5"
34
- ],
35
- "MASVS" : [
36
- " MSTG-CRYPTO-3"
37
- ],
38
32
"OWASP Top 10 2021" : [
39
33
" A2"
40
34
],
Original file line number Diff line number Diff line change 29
29
" A3" ,
30
30
" A6"
31
31
],
32
- "OWASP Mobile" : [
33
- " M5"
34
- ],
35
- "MASVS" : [
36
- " MSTG-CRYPTO-3"
37
- ],
38
32
"OWASP Top 10 2021" : [
39
33
" A2"
40
34
],
Original file line number Diff line number Diff line change 9
9
"tags" : [
10
10
" symbolic-execution"
11
11
],
12
- "defaultSeverity" : " Major " ,
12
+ "defaultSeverity" : " Critical " ,
13
13
"ruleSpecification" : " RSPEC-7131" ,
14
14
"sqKey" : " S7131" ,
15
15
"scope" : " All" ,
Original file line number Diff line number Diff line change 9
9
"tags" : [
10
10
" symbolic-execution"
11
11
],
12
- "defaultSeverity" : " Major " ,
12
+ "defaultSeverity" : " Critical " ,
13
13
"ruleSpecification" : " RSPEC-7133" ,
14
14
"sqKey" : " S7133" ,
15
15
"scope" : " All" ,
Original file line number Diff line number Diff line change 3
3
"languages" : [
4
4
" CSH"
5
5
],
6
- "latest-update" : " 2025-01-28T15:19:07.499237500Z " ,
6
+ "latest-update" : " 2025-02-26T15:40:04.929306Z " ,
7
7
"options" : {
8
8
"no-language-in-filenames" : true
9
9
}
Original file line number Diff line number Diff line change 3
3
"languages" : [
4
4
" VBNET"
5
5
],
6
- "latest-update" : " 2025-01-28T15:22:46.290683900Z " ,
6
+ "latest-update" : " 2025-02-26T15:39:24.192698400Z " ,
7
7
"options" : {
8
8
"no-language-in-filenames" : true
9
9
}
You can’t perform that action at this time.
0 commit comments