nyx/tests/dynamic_fixtures/ruby/controller_method/vuln.rb

13 lines
327 B
Ruby
Raw Permalink Normal View History

2026-06-05 10:16:30 -05:00
# Phase 15 — generic instance method on a controller, vulnerable.
# No framework markers — RubyShape::detect picks ControllerMethod
# from the class+def pair.
class LoginController
def authenticate(payload)
STDOUT.print("__NYX_SINK_HIT__\n")
out = `echo hello #{payload}`
STDOUT.print(out)
out
end
end