mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Update ruby/ql/lib/codeql/ruby/experimental/UnicodeBypassValidationQuery.qll
Co-authored-by: Arthur Baars <aibaars@github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user