JS: Remove mention of TrackedNode in docs

This commit is contained in:
Asger F
2023-05-17 10:37:12 +02:00
parent 9e9be4fc5e
commit f94fdc6348
4 changed files with 15 additions and 35 deletions

View File

@@ -11,11 +11,8 @@ class PasswordTracker extends DataFlow::Configuration {
override predicate isSink(DataFlow::Node nd) { this.passwordVarAssign(_, nd) }
predicate passwordVarAssign(Variable v, DataFlow::Node nd) {
exists(SsaExplicitDefinition def |
nd = DataFlow::ssaDefinitionNode(def) and
def.getSourceVariable() = v and
v.getName().toLowerCase() = "password"
)
v.getAnAssignedExpr() = nd.asExpr() and
v.getName().toLowerCase() = "password"
}
}