mirror of
https://github.com/github/codeql.git
synced 2026-02-28 12:53:49 +01:00
Merge pull request #4512 from luchua-bc/sensitive-broadcast
Java: Sensitive broadcast
This commit is contained in:
@@ -27,6 +27,14 @@ private string nonSuspicious() {
|
||||
result = "%crypt%"
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a regular expression for matching common names of variables that indicate the value being held contains sensitive information.
|
||||
*/
|
||||
string getCommonSensitiveInfoRegex() {
|
||||
result = "(?i).*challenge|pass(wd|word|code|phrase)(?!.*question).*" or
|
||||
result = "(?i).*(token|secret).*"
|
||||
}
|
||||
|
||||
/** An expression that might contain sensitive data. */
|
||||
abstract class SensitiveExpr extends Expr { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user