mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
model some ActionController user input sources (params)
This commit is contained in:
18
ql/test/library-tests/frameworks/ActionController.expected
Normal file
18
ql/test/library-tests/frameworks/ActionController.expected
Normal file
@@ -0,0 +1,18 @@
|
||||
actionControllerControllerClasses
|
||||
| ActiveRecordInjection.rb:12:1:34:3 | FooController |
|
||||
| ActiveRecordInjection.rb:37:1:48:3 | BarController |
|
||||
| ActiveRecordInjection.rb:50:1:51:3 | BazController |
|
||||
actionControllerParamsCalls
|
||||
| ActiveRecordInjection.rb:19:30:19:35 | call to params |
|
||||
| ActiveRecordInjection.rb:22:29:22:34 | call to params |
|
||||
| ActiveRecordInjection.rb:25:31:25:36 | call to params |
|
||||
| ActiveRecordInjection.rb:29:20:29:25 | call to params |
|
||||
| ActiveRecordInjection.rb:32:48:32:53 | call to params |
|
||||
| ActiveRecordInjection.rb:40:10:40:15 | call to params |
|
||||
actionControllerParamsSources
|
||||
| ActiveRecordInjection.rb:19:30:19:35 | call to params |
|
||||
| ActiveRecordInjection.rb:22:29:22:34 | call to params |
|
||||
| ActiveRecordInjection.rb:25:31:25:36 | call to params |
|
||||
| ActiveRecordInjection.rb:29:20:29:25 | call to params |
|
||||
| ActiveRecordInjection.rb:32:48:32:53 | call to params |
|
||||
| ActiveRecordInjection.rb:40:10:40:15 | call to params |
|
||||
8
ql/test/library-tests/frameworks/ActionController.ql
Normal file
8
ql/test/library-tests/frameworks/ActionController.ql
Normal file
@@ -0,0 +1,8 @@
|
||||
import codeql_ruby.controlflow.CfgNodes
|
||||
import codeql_ruby.frameworks.ActionController
|
||||
|
||||
query predicate actionControllerControllerClasses(ActionControllerControllerClass cls) { any() }
|
||||
|
||||
query predicate actionControllerParamsCalls(ActionControllerParamsCall call) { any() }
|
||||
|
||||
query predicate actionControllerParamsSources(ActionControllerParamsSource source) { any() }
|
||||
Reference in New Issue
Block a user