-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CPP-5813 Split S2068 into password and secrets (new rule S6418)
- Loading branch information
1 parent
5570d3e
commit e7a426a
Showing
4 changed files
with
36 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"title": "Hard-coded passwords are security-sensitive", | ||
"tags": [ | ||
"cwe", | ||
"cert" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
{ | ||
} | ||
"tags": [ | ||
"cwe", | ||
"cert" | ||
], | ||
"securityStandards": { | ||
"CERT": [ | ||
"MSC03-J." | ||
], | ||
"CWE": [ | ||
798 | ||
] | ||
} | ||
} | ||
|
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,44 +1,31 @@ | ||
FIXME: add a description | ||
include::../description.adoc[] | ||
|
||
// If you want to factorize the description uncomment the following line and create the file. | ||
//include::../description.adoc[] | ||
include::../ask-yourself.adoc[] | ||
|
||
== Why is this an issue? | ||
include::../recommended.adoc[] | ||
|
||
FIXME: remove the unused optional headers (that are commented out) | ||
== Sensitive Code Example | ||
|
||
//=== What is the potential impact? | ||
|
||
== How to fix it | ||
//== How to fix it in FRAMEWORK NAME | ||
|
||
=== Code examples | ||
|
||
==== Noncompliant code example | ||
|
||
[source,cpp,diff-id=1,diff-type=noncompliant] | ||
[source,cpp] | ||
---- | ||
FIXME | ||
char const *mySecret = "47828a8dd77ee1eb9dde2d5e93cb221ce8c32b37"; | ||
---- | ||
|
||
==== Compliant solution | ||
|
||
[source,cpp,diff-id=1,diff-type=compliant] | ||
---- | ||
FIXME | ||
---- | ||
|
||
//=== How does this work? | ||
include::../see.adoc[] | ||
|
||
* MSC - https://wiki.sei.cmu.edu/confluence/x/OjdGBQ[MSC03-J - Never hard code sensitive information] | ||
|
||
|
||
//=== Pitfalls | ||
ifdef::env-github,rspecator-view[] | ||
''' | ||
== Implementation Specification | ||
(visible only on this page) | ||
|
||
//=== Going the extra mile | ||
include::../message.adoc[] | ||
|
||
include::../parameters.adoc[] | ||
|
||
//== Resources | ||
//=== Documentation | ||
//=== Articles & blog posts | ||
//=== Conference presentations | ||
//=== Standards | ||
//=== External coding guidelines | ||
//=== Benchmarks | ||
''' | ||
endif::env-github,rspecator-view[] |