File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ruby/ql/src/experimental/CWE-502 Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import codeql.ruby.DataFlow
18
18
import codeql.ruby.dataflow.RemoteFlowSources
19
19
import codeql.ruby.TaintTracking
20
20
import DataFlow:: PathGraph
21
+ import codeql.ruby.security.UnsafeDeserializationCustomizations
21
22
22
23
abstract class YAMLSink extends DataFlow:: Node { }
23
24
@@ -45,8 +46,8 @@ class Configuration extends TaintTracking::Configuration {
45
46
46
47
override predicate isSource ( DataFlow:: Node source ) {
47
48
// for detecting The CVE we should uncomment following line instead of current RemoteFlowSource
48
- source instanceof DataFlow:: LocalSourceNode
49
- // source instanceof RemoteFlowSource
49
+ // source instanceof DataFlow::LocalSourceNode
50
+ source instanceof UnsafeDeserialization :: Source
50
51
}
51
52
52
53
override predicate isSink ( DataFlow:: Node sink ) {
You can’t perform that action at this time.
0 commit comments