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.
1 parent 721ba5e commit 3dc0c20Copy full SHA for 3dc0c20
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