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

8 lines
253 B
Ruby

# Phase 03 (Track J.1) — Ruby deserialize vuln fixture.
#
# `Marshal.load` materialises arbitrary constants; a CVE-class gadget
# in the payload runs through `_load` / `_load_data` without any
# allowlist check.
def run(blob)
Marshal.load(blob)
end