nfd and nfkd are considered

This commit is contained in:
Sim4n6
2023-05-20 12:51:24 +01:00
parent c9c7179a0b
commit 957023ec44

View File

@@ -50,7 +50,7 @@ class Configuration extends TaintTracking::Configuration {
override predicate isSink(DataFlow::Node sink, DataFlow::FlowState state) {
exists(DataFlow::CallNode cn |
cn.getMethodName() = "unicode_normalize" and
cn.getArgument(0).getConstantValue().getSymbol() = [":nfkc", ":nfc"] and
cn.getArgument(0).getConstantValue().getSymbol() = [":nfkc", ":nfc", ":nfkd", ":nfd"] and
sink = cn.getReceiver()
) and
state instanceof PostValidation