-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SONARPHP-939: Deprecate S2278 in favor of S5547 (#577)
* rules api update * deprecate S2277 and S2278 * deprecate S2277 and S2278
- Loading branch information
1 parent
a0ff488
commit dd01918
Showing
42 changed files
with
110 additions
and
177 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1311.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
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
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
2 changes: 1 addition & 1 deletion
2
php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1541.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
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
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
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
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
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
php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2255.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,29 +1,16 @@ | ||
{ | ||
"title": "Writing cookies is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"remediation": { | ||
"func": "Constant\/Issue", | ||
"constantCost": "5min" | ||
}, | ||
"tags": [ | ||
"cwe", | ||
"sans-top25-porous", | ||
"owasp-a3" | ||
|
||
], | ||
"defaultSeverity": "Minor", | ||
"ruleSpecification": "RSPEC-2255", | ||
"sqKey": "S2255", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
315, | ||
312, | ||
565, | ||
807 | ||
], | ||
"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
2 changes: 1 addition & 1 deletion
2
php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2277.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
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
2 changes: 1 addition & 1 deletion
2
php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2278.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
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
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
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
php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S3331.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": "Creating cookies with broadly defined \"domain\" flags is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"remediation": { | ||
"func": "Constant\/Issue", | ||
"constantCost": "5min" | ||
}, | ||
"tags": [ | ||
"owasp-a7", | ||
"owasp-a3" | ||
|
||
], | ||
"defaultSeverity": "Info", | ||
"ruleSpecification": "RSPEC-3331", | ||
"sqKey": "S3331", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"OWASP": [ | ||
"A7", | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,8 @@ | |
"securityStandards": { | ||
"CWE": [ | ||
327, | ||
326 | ||
326, | ||
295 | ||
], | ||
"OWASP": [ | ||
"A3", | ||
|
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
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
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
php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S4508.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
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
25 changes: 3 additions & 22 deletions
25
php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S4787.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,31 +1,12 @@ | ||
{ | ||
"title": "Encrypting data is security-sensitive", | ||
"type": "SECURITY_HOTSPOT", | ||
"status": "ready", | ||
"status": "deprecated", | ||
"tags": [ | ||
"cwe", | ||
"owasp-a6", | ||
"sans-top25-porous", | ||
"owasp-a3" | ||
|
||
], | ||
"defaultSeverity": "Critical", | ||
"ruleSpecification": "RSPEC-4787", | ||
"sqKey": "S4787", | ||
"scope": "Main", | ||
"securityStandards": { | ||
"CWE": [ | ||
321, | ||
322, | ||
323, | ||
324, | ||
325, | ||
326, | ||
327, | ||
522 | ||
], | ||
"OWASP": [ | ||
"A3", | ||
"A6" | ||
] | ||
} | ||
"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
Oops, something went wrong.