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 3424650 commit 5cc9170Copy full SHA for 5cc9170
python/ql/src/experimental/Security/CWE-770/UnicodeDoS.ql
@@ -93,6 +93,16 @@ class Configuration extends TaintTracking::Configuration {
93
94
override predicate isSink(DataFlow::Node sink) {
95
sink = any(UnicodeCompatibilityNormalize ucn).getPathArg()
96
+ or
97
+ sink = API::moduleImport("werkzeug").getMember("secure_filename").getACall().getArg(_)
98
99
+ sink =
100
+ API::moduleImport("werkzeug")
101
+ .getMember("utils")
102
+ .getMember("secure_filename")
103
+ .getACall()
104
+ .getArg(_)
105
+
106
}
107
108
0 commit comments