added ActiveSupport::Multibyte::Chars normalize() sink

This commit is contained in:
Sim4n6
2023-05-25 09:21:55 +01:00
parent d772bb213a
commit 7d68f6afc9

View File

@@ -105,6 +105,18 @@ class Configuration extends TaintTracking::Configuration {
mac = API::getTopLevelMember("UNF").getMember("Normalizer").getMethod("normalize") and
sink = mac.getParameter(0).asSink()
)
or
// ActiveSupport::Multibyte::Chars
exists(DataFlow::CallNode cn, DataFlow::CallNode n |
cn =
API::getTopLevelMember("ActiveSupport")
.getMember("Multibyte")
.getMember("Chars")
.getMethod("new")
.getCallNode() and
n = cn.(DataFlow::CallNode).getAMethodCall("normalize") and
sink = cn.getArgument(0)
)
) and
state instanceof PostValidation
}