[pitboss] phase 15: Track B — Go + PHP + Ruby harness emitter shapes

This commit is contained in:
pitboss 2026-05-14 17:45:42 -05:00
parent 919bc4e7e2
commit a9b61a9126
39 changed files with 2142 additions and 186 deletions

View file

@ -0,0 +1,4 @@
source 'https://rubygems.org'
# Phase 15 fixture — generic controller-method shape. No framework
# dep is required at runtime; the Gemfile is informational.

View file

@ -0,0 +1,13 @@
# Phase 15 — generic instance method on a controller, benign.
class LoginController
def authenticate(payload)
unless payload =~ /\A[A-Za-z0-9]{1,32}\z/
STDOUT.print("invalid\n")
return "invalid"
end
out = `echo hello`
STDOUT.print(out)
out
end
end

View file

@ -0,0 +1,12 @@
# 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