nyx/tests/dynamic_fixtures/class_method/ruby/vuln.rb
2026-06-05 10:16:30 -05:00

13 lines
317 B
Ruby

# Phase 19 (Track M.1) — class-method vuln fixture for Ruby.
#
# UserService#run pipes user input into a shell, classic OS command
# injection. Default `.new` ctor — no mock deps needed.
class UserService
def initialize
end
def run(input)
# SINK: tainted input → shell
`true #{input}`
end
end