Skip to content

Commit 1cb23e7

Browse files
Exclude certificates from being cinsidered sensitive data by cleartext-storage and cleartext-logging queries
1 parent 3a864d3 commit 1cb23e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

python/ql/lib/semmle/python/security/dataflow/CleartextLoggingCustomizations.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ module CleartextLogging {
4141
*/
4242
class SensitiveDataSourceAsSource extends Source, SensitiveDataSource {
4343
SensitiveDataSourceAsSource() {
44-
not SensitiveDataSource.super.getClassification() = SensitiveDataClassification::id()
44+
not SensitiveDataSource.super.getClassification() =
45+
[SensitiveDataClassification::id(), SensitiveDataClassification::certificate()]
4546
}
4647

4748
override SensitiveDataClassification getClassification() {

python/ql/lib/semmle/python/security/dataflow/CleartextStorageCustomizations.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ module CleartextStorage {
4040
*/
4141
class SensitiveDataSourceAsSource extends Source, SensitiveDataSource {
4242
SensitiveDataSourceAsSource() {
43-
not SensitiveDataSource.super.getClassification() = SensitiveDataClassification::id()
43+
not SensitiveDataSource.super.getClassification() =
44+
[SensitiveDataClassification::id(), SensitiveDataClassification::certificate()]
4445
}
4546

4647
override SensitiveDataClassification getClassification() {

0 commit comments

Comments
 (0)