Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6783788 commit 367ee3eCopy full SHA for 367ee3e
1 file changed
python/ql/src/semmle/python/security/injection/Path.qll
@@ -64,8 +64,12 @@ class OpenNode extends TaintSink {
64
65
OpenNode() {
66
exists(CallNode call |
67
- call.getFunction().refersTo(Object::builtin("open")) and
68
- call.getAnArg() = this
+ call = Value::named("open").getACall() and
+ (
69
+ call.getArg(0) = this
70
+ or
71
+ call.getArgByName("file") = this
72
+ )
73
)
74
}
75
0 commit comments