Ruby: more test cases for code injection via method

This commit is contained in:
Peter Stöckli
2024-03-01 16:01:07 +01:00
parent 3418ec8a81
commit 4adc373dfe
2 changed files with 7 additions and 0 deletions

View File

@@ -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\\"" |

View File

@@ -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