Skip to content

Commit b60ce3c

Browse files
committed
Shared: Fix for 'profile'.
1 parent cb84e63 commit b60ce3c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rust/ql/test/library-tests/sensitivedata/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn test_passwords(
4141
sink(my_password); // $ sensitive=password
4242
sink(password_str); // $ sensitive=password
4343
sink(password_confirmation); // $ sensitive=password
44-
sink(profile_password); // $ MISSING: sensitive=password
44+
sink(profile_password); // $ sensitive=password
4545
sink(unencrypted_password); // $ MISSING: sensitive=password
4646
sink(unencoded_password); // $ MISSING: sensitive=password
4747
sink(pass_phrase); // $ sensitive=password

shared/concepts/codeql/concepts/internal/SensitiveDataHeuristics.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ module HeuristicNames {
151151
string notSensitiveRegexp() {
152152
result =
153153
"(?is).*([^\\w$.-]|redact|censor|obfuscate|hash|md5|sha|random|((?<!un)(en))?(crypt|(?<!pass)code)|"
154-
+ "certain|concert|secretar|wildcard|account(ant|ab|ing|ed)|file|path|([_-]|\\b)url).*"
154+
+ "certain|concert|secretar|wildcard|account(ant|ab|ing|ed)|(?<!pro)file|path|([_-]|\\b)url).*"
155155
}
156156

157157
/**

0 commit comments

Comments
 (0)