Skip to content

Commit eb5e012

Browse files
committed
exclude certification from maybeCertificate() regexes
1 parent 2d95ac9 commit eb5e012

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

javascript/ql/lib/semmle/javascript/security/internal/SensitiveDataHeuristics.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module HeuristicNames {
7575
* Gets a regular expression that identifies strings that may indicate the presence of
7676
* a certificate.
7777
*/
78-
string maybeCertificate() { result = "(?is).*(cert)(?!.*(format|name)).*" }
78+
string maybeCertificate() { result = "(?is).*(cert)(?!.*(format|name|ification)).*" }
7979

8080
/**
8181
* Gets a regular expression that identifies strings that may indicate the presence

python/ql/lib/semmle/python/security/internal/SensitiveDataHeuristics.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module HeuristicNames {
7575
* Gets a regular expression that identifies strings that may indicate the presence of
7676
* a certificate.
7777
*/
78-
string maybeCertificate() { result = "(?is).*(cert)(?!.*(format|name)).*" }
78+
string maybeCertificate() { result = "(?is).*(cert)(?!.*(format|name|ification)).*" }
7979

8080
/**
8181
* Gets a regular expression that identifies strings that may indicate the presence

ruby/ql/lib/codeql/ruby/security/internal/SensitiveDataHeuristics.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module HeuristicNames {
7575
* Gets a regular expression that identifies strings that may indicate the presence of
7676
* a certificate.
7777
*/
78-
string maybeCertificate() { result = "(?is).*(cert)(?!.*(format|name)).*" }
78+
string maybeCertificate() { result = "(?is).*(cert)(?!.*(format|name|ification)).*" }
7979

8080
/**
8181
* Gets a regular expression that identifies strings that may indicate the presence

swift/ql/lib/codeql/swift/security/internal/SensitiveDataHeuristics.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module HeuristicNames {
7575
* Gets a regular expression that identifies strings that may indicate the presence of
7676
* a certificate.
7777
*/
78-
string maybeCertificate() { result = "(?is).*(cert)(?!.*(format|name)).*" }
78+
string maybeCertificate() { result = "(?is).*(cert)(?!.*(format|name|ification)).*" }
7979

8080
/**
8181
* Gets a regular expression that identifies strings that may indicate the presence

0 commit comments

Comments
 (0)