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 375edf7 commit b8d60edCopy full SHA for b8d60ed
python/ql/src/experimental/Security/CWE-340/TokenBuiltFromUUID.ql
@@ -50,11 +50,10 @@ class TokenBuiltFromUuidConfig extends TaintTracking::Configuration {
50
override predicate isSink(DataFlow::Node sink) { sink instanceof TokenAssignmentValueSink }
51
52
override predicate isAdditionalTaintStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
53
- exists(Call call, Name name |
54
- call.getFunc() = name and
55
- name.getId() = "str" and
56
- nodeFrom = DataFlow::exprNode(call.getArg(0)) and
57
- nodeTo = DataFlow::exprNode(call)
+ exists(DataFlow::CallCfgNode call |
+ call = API::builtin("str").getACall() and
+ nodeFrom = call.getArg(0) and
+ nodeTo = call
58
)
59
}
60
0 commit comments