vetkit.ruby.code-injection.dynamic-send
A method name taken from request input is invoked with send / public_send / try. Attackers can call any method on the object, such as destroy, update_columns or exit.
Last updated:
Suite: Security
ruby
A method name taken from request input is invoked with send / public_send / try. Attackers can call any method on the object, such as destroy, update_columns or exit.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Map the request value to an allow-list of method names (e.g. a frozen hash lookup) before dispatching.
References
Source: packages/engine/rules/sast/ruby.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.