Update ruby/ql/lib/codeql/ruby/experimental/UnicodeBypassValidationQuery.qll

Co-authored-by: Arthur Baars <aibaars@github.com>
This commit is contained in:
Sim4n6
2023-05-20 12:43:05 +01:00
committed by GitHub
parent 69ca49f168
commit eb7e1de65b

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).toString() = [":nfkc", ":nfc"] and
cn.getArgument(0).getConstantValue().getSymbol() = [":nfkc", ":nfc"] and
sink = cn.getReceiver()
) and
state instanceof PostValidation