mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Python taint-tracking: Don't track strings through json.decode().
This commit is contained in:
@@ -81,6 +81,7 @@ private predicate str_format(ControlFlowNode fromnode, CallNode tonode) {
|
||||
/* tonode = codec.[en|de]code(fromnode)*/
|
||||
private predicate encode_decode(ControlFlowNode fromnode, CallNode tonode) {
|
||||
exists(FunctionObject func, string name |
|
||||
not func.getFunction().isMethod() and
|
||||
func.getACall() = tonode and
|
||||
tonode.getAnArg() = fromnode and
|
||||
func.getName() = name |
|
||||
|
||||
Reference in New Issue
Block a user