mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Ruby: more test cases for code injection via method
This commit is contained in:
@@ -46,6 +46,9 @@ methodCallCodeExecutions
|
||||
| Kernel.rb:92:1:92:14 | call to method | Kernel.rb:92:8:92:13 | "exit" |
|
||||
| Kernel.rb:93:1:93:21 | call to public_method | Kernel.rb:93:15:93:20 | "exit" |
|
||||
| Kernel.rb:94:1:94:23 | call to singleton_method | Kernel.rb:94:18:94:22 | "foo" |
|
||||
| Kernel.rb:96:1:96:18 | call to method | Kernel.rb:96:12:96:17 | "exit" |
|
||||
| Kernel.rb:97:1:97:25 | call to public_method | Kernel.rb:97:19:97:24 | "exit" |
|
||||
| Kernel.rb:98:1:98:27 | call to singleton_method | Kernel.rb:98:22:98:26 | "foo" |
|
||||
evalCallCodeExecutions
|
||||
| Eval.rb:3:1:3:43 | call to eval | Eval.rb:3:6:3:22 | "raise \\"error\\"" |
|
||||
| Kernel.rb:1:1:1:43 | call to eval | Kernel.rb:1:6:1:22 | "raise \\"error\\"" |
|
||||
|
||||
@@ -92,3 +92,7 @@ UnknownModule.system("ls")
|
||||
method("exit").call
|
||||
public_method("exit").call
|
||||
singleton_method("foo").call
|
||||
|
||||
Foo.method("exit").call
|
||||
Foo.public_method("exit").call
|
||||
Foo.singleton_method("foo").call
|
||||
|
||||
Reference in New Issue
Block a user