Skip to content

Commit a55246c

Browse files
authored
Merge pull request github#5330 from RasmusWL/fix-flask-taint-prop-to-methods
Approved by yoff
2 parents 0d7f6ce + 3dc0c20 commit a55246c

File tree

1 file changed

+2
-1
lines changed
  • python/ql/src/semmle/python/frameworks

1 file changed

+2
-1
lines changed

python/ql/src/semmle/python/frameworks/Flask.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ module Flask {
351351
exists(string method_name | method_name in ["get_data", "get_json"] |
352352
// Method access
353353
nodeFrom = request().getAUse() and
354-
nodeTo = request().getMember(method_name).getAnImmediateUse()
354+
nodeTo.(DataFlow::AttrRead).getObject() = nodeFrom and
355+
nodeTo.(DataFlow::AttrRead).getAttributeName() = method_name
355356
or
356357
// Method call
357358
nodeFrom = request().getMember(method_name).getAUse() and

0 commit comments

Comments
 (0)