mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
16 lines
430 B
Plaintext
16 lines
430 B
Plaintext
import javascript
|
|
|
|
class TrackedStringLiteral extends DataFlow::TrackedNode {
|
|
TrackedStringLiteral() { this.asExpr() instanceof ConstantString }
|
|
}
|
|
|
|
query predicate test_query15(DataFlow::Node sink) {
|
|
exists(TrackedStringLiteral source, SsaExplicitDefinition def |
|
|
source.flowsTo(sink) and
|
|
sink = DataFlow::ssaDefinitionNode(def) and
|
|
def.getSourceVariable().getName().toLowerCase() = "password"
|
|
|
|
|
any()
|
|
)
|
|
}
|