vetkit.ruby.path-traversal.render-file
render file: receives request input, so any file on the server can be rendered (path traversal / local file disclosure).
Last updated:
Suite: Security
ruby
render file: receives request input, so any file on the server can be rendered (path traversal / local file disclosure).
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Render a fixed template and look up the content by id; never build file paths for render from params.
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.