-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SONARJAVA-3444 Deprecate 10 security-hotspot rules that overlap with …
…security-injection rules (#3040) The following rules are deprecated and will eventually be removed because their overlap with security-injection rules: S4508 RSPEC-4508 Deserializing objects from an untrusted source is security-sensitive S4510 RSPEC-4510 Deserializing with XMLDecoder is security-sensitive S4530 RSPEC-4530 Using Struts 1 ActionForm is security-sensitive S4531 RSPEC-4531 Using setters in Struts 2 ActionSupport is security-sensitive S4818 RSPEC-4818 Using Sockets is security-sensitive S4823 RSPEC-4823 Using command line arguments is security-sensitive S4829 RSPEC-4829 Reading the Standard Input is security-sensitive S5300 RSPEC-5300 Sending emails is security-sensitive S5304 RSPEC-5304 Using environment variables is security-sensitive S5326 RSPEC-5326 Validating SSL/TLS connections is security-sensitive
- Loading branch information
1 parent
348b1c6
commit 37715f4
Showing
21 changed files
with
51 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 3 additions & 12 deletions
15
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S4508_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
{ | ||
"title": "Deserializing objects from an untrusted source is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"remediation": { | ||
"func": "Constant\/Issue", | ||
"constantCost": "15min" | ||
}, | ||
"tags": [ | ||
"cwe", | ||
"owasp-a8" | ||
|
||
], | ||
"defaultSeverity": "Critical", | ||
"ruleSpecification": "RSPEC-4508", | ||
"sqKey": "S4508", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
502 | ||
], | ||
"OWASP": [ | ||
"A8" | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 3 additions & 14 deletions
17
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S4510_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
{ | ||
"title": "Deserializing with XMLDecoder is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"remediation": { | ||
"func": "Constant\/Issue", | ||
"constantCost": "15min" | ||
}, | ||
"tags": [ | ||
"cwe", | ||
"owasp-a1", | ||
"owasp-a8" | ||
|
||
], | ||
"defaultSeverity": "Critical", | ||
"ruleSpecification": "RSPEC-4510", | ||
"sqKey": "S4510", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
502 | ||
], | ||
"OWASP": [ | ||
"A1", | ||
"A8" | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 3 additions & 10 deletions
13
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S4530_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
{ | ||
"title": "Using Struts 1 ActionForm is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"remediation": { | ||
"func": "Constant\/Issue", | ||
"constantCost": "15min" | ||
}, | ||
"tags": [ | ||
"cwe", | ||
"owasp-a1", | ||
"struts" | ||
|
||
], | ||
"defaultSeverity": "Major", | ||
"ruleSpecification": "RSPEC-4530", | ||
"sqKey": "S4530", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"OWASP": [ | ||
"A1" | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 3 additions & 9 deletions
12
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S4531_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
{ | ||
"title": "Using setters in Struts 2 ActionSupport is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"remediation": { | ||
"func": "Constant\/Issue", | ||
"constantCost": "15min" | ||
}, | ||
"tags": [ | ||
"owasp-a1", | ||
"struts" | ||
|
||
], | ||
"defaultSeverity": "Major", | ||
"ruleSpecification": "RSPEC-4531", | ||
"sqKey": "S4531", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"OWASP": [ | ||
"A1" | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 3 additions & 16 deletions
19
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S4818_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,12 @@ | ||
{ | ||
"title": "Using Sockets is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"tags": [ | ||
"cwe", | ||
"sans-top25-risky", | ||
"sans-top25-porous", | ||
"owasp-a3" | ||
|
||
], | ||
"defaultSeverity": "Critical", | ||
"ruleSpecification": "RSPEC-4818", | ||
"sqKey": "S4818", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
20, | ||
200, | ||
400 | ||
], | ||
"OWASP": [ | ||
"A3" | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 3 additions & 14 deletions
17
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S4823_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
{ | ||
"title": "Using command line arguments is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"tags": [ | ||
"cwe", | ||
"owasp-a1", | ||
"sans-top25-insecure" | ||
|
||
], | ||
"defaultSeverity": "Critical", | ||
"ruleSpecification": "RSPEC-4823", | ||
"sqKey": "S4823", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
88, | ||
214 | ||
], | ||
"OWASP": [ | ||
"A1" | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 3 additions & 8 deletions
11
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S4829_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
{ | ||
"title": "Reading the Standard Input is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"tags": [ | ||
"cwe" | ||
|
||
], | ||
"defaultSeverity": "Critical", | ||
"ruleSpecification": "RSPEC-4829", | ||
"sqKey": "S4829", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
20 | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 3 additions & 14 deletions
17
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5300_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
{ | ||
"title": "Sending emails is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"tags": [ | ||
"cwe", | ||
"owasp-a1", | ||
"sans-top25-insecure" | ||
|
||
], | ||
"defaultSeverity": "Critical", | ||
"ruleSpecification": "RSPEC-5300", | ||
"sqKey": "S5300", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
93, | ||
80 | ||
], | ||
"OWASP": [ | ||
"A1" | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 3 additions & 9 deletions
12
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5304_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
{ | ||
"title": "Using environment variables is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"tags": [ | ||
"cwe" | ||
|
||
], | ||
"defaultSeverity": "Critical", | ||
"ruleSpecification": "RSPEC-5304", | ||
"sqKey": "S5304", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
526, | ||
74 | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 3 additions & 15 deletions
18
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5326_java.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
{ | ||
"title": "Validating SSL\/TLS connections is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"tags": [ | ||
"cwe", | ||
"owasp-a6", | ||
"sans-top25-porous", | ||
"owasp-a3" | ||
|
||
], | ||
"defaultSeverity": "Critical", | ||
"ruleSpecification": "RSPEC-5326", | ||
"sqKey": "S5326", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
295 | ||
], | ||
"OWASP": [ | ||
"A6", | ||
"A3" | ||
] | ||
} | ||
"scope": "Main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters