We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d7f6ce + 3dc0c20 commit a55246cCopy full SHA for a55246c
python/ql/src/semmle/python/frameworks/Flask.qll
@@ -351,7 +351,8 @@ module Flask {
351
exists(string method_name | method_name in ["get_data", "get_json"] |
352
// Method access
353
nodeFrom = request().getAUse() and
354
- nodeTo = request().getMember(method_name).getAnImmediateUse()
+ nodeTo.(DataFlow::AttrRead).getObject() = nodeFrom and
355
+ nodeTo.(DataFlow::AttrRead).getAttributeName() = method_name
356
or
357
// Method call
358
nodeFrom = request().getMember(method_name).getAUse() and
0 commit comments