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 d772bb2 commit 7d68f6aCopy full SHA for 7d68f6a
ruby/ql/lib/codeql/ruby/experimental/UnicodeBypassValidationQuery.qll
@@ -105,6 +105,18 @@ class Configuration extends TaintTracking::Configuration {
105
mac = API::getTopLevelMember("UNF").getMember("Normalizer").getMethod("normalize") and
106
sink = mac.getParameter(0).asSink()
107
)
108
+ or
109
+ // ActiveSupport::Multibyte::Chars
110
+ exists(DataFlow::CallNode cn, DataFlow::CallNode n |
111
+ cn =
112
+ API::getTopLevelMember("ActiveSupport")
113
+ .getMember("Multibyte")
114
+ .getMember("Chars")
115
+ .getMethod("new")
116
+ .getCallNode() and
117
+ n = cn.(DataFlow::CallNode).getAMethodCall("normalize") and
118
+ sink = cn.getArgument(0)
119
+ )
120
) and
121
state instanceof PostValidation
122
}
0 commit comments