Skip to content

Commit fc2ac89

Browse files
committed
Python taint-tracking: Don't track strings through json.decode().
1 parent 6a79e0a commit fc2ac89

File tree

1 file changed

+1
-0
lines changed
  • python/ql/src/semmle/python/security/strings

1 file changed

+1
-0
lines changed

python/ql/src/semmle/python/security/strings/Basic.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ private predicate str_format(ControlFlowNode fromnode, CallNode tonode) {
8181
/* tonode = codec.[en|de]code(fromnode)*/
8282
private predicate encode_decode(ControlFlowNode fromnode, CallNode tonode) {
8383
exists(FunctionObject func, string name |
84+
not func.getFunction().isMethod() and
8485
func.getACall() = tonode and
8586
tonode.getAnArg() = fromnode and
8687
func.getName() = name |

0 commit comments

Comments
 (0)