Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc2ac89

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • python/ql/src/semmle/python/security/strings

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)