mirror of
https://github.com/github/codeql.git
synced 2026-05-24 08:07:07 +02:00
Shared: Fix and simplify the exclusion for 'encrypted' values.
This commit is contained in:
@@ -42,8 +42,8 @@ fn test_passwords(
|
||||
sink(password_str); // $ sensitive=password
|
||||
sink(password_confirmation); // $ sensitive=password
|
||||
sink(profile_password); // $ sensitive=password
|
||||
sink(unencrypted_password); // $ MISSING: sensitive=password
|
||||
sink(unencoded_password); // $ MISSING: sensitive=password
|
||||
sink(unencrypted_password); // $ sensitive=password
|
||||
sink(unencoded_password); // $ sensitive=password
|
||||
sink(pass_phrase); // $ sensitive=password
|
||||
sink(passphrase); // $ sensitive=password
|
||||
sink(passPhrase); // $ sensitive=password
|
||||
|
||||
@@ -150,7 +150,7 @@ module HeuristicNames {
|
||||
*/
|
||||
string notSensitiveRegexp() {
|
||||
result =
|
||||
"(?is).*([^\\w$.-]|redact|censor|obfuscate|hash|md5|sha|random|((?<!un)(en))?(crypt|(?<!pass)code)|"
|
||||
"(?is).*([^\\w$.-]|redact|censor|obfuscate|hash|md5|sha|random|(?<!un)en(crypt|code)|"
|
||||
+ "certain|concert|secretar|wildcard|coauthor|account(ant|ab|ing|ed)|(?<!pro)file|path|([_-]|\\b)url).*"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user