Cybersecurity-Projects/PROJECTS
CarterPerez-dev bd89c6704a feat(rube): M4 payload builder - working CVE-2026-41316 chain with version-predicted gate
Chain registry modelled on PHPGGC: the class is the chain identity, metadata
carries the CVE and its affected version ranges, generate returns an object
rather than bytes, and serialization is a separate step.

Ships the ErbDefMethod chain for CVE-2026-41316. Ruby 2.7.0 added an @_init
guard to stop Marshal.load code execution on ERB objects, and def_method never
checked it. def_module and def_class delegate to def_method, so the single
missing check exposed all three entry points for six years.

The payload is an ERB built by allocate with @src, @filename and @lineno set
and @_init deliberately absent. @src opens with a comment line and a bare end
so that the def wrapper def_method injects is closed before the payload runs,
which puts execution at eval time rather than at call time.

Gate proves both halves and neither alone is sufficient:

  4.0.2-slim  erb=6.0.1    outcome=FIRED    predicted=FIRED
  4.0-slim    erb=6.0.1.1  outcome=BLOCKED  predicted=BLOCKED

The prediction column is the load-bearing one. affects? evaluates the CVE
ranges encoded in the chain metadata against the erb version present in the
image, before the payload runs. Observed behaviour matched on both, so the
registry is making falsifiable claims rather than carrying documentation.

Exploit containers run with no network, a read-only root filesystem, a 1MB
noexec tmpfs and an unprivileged user. The parser also inspects the payload
and reports ERB without deserializing it, so the offensive and defensive
halves meet on the same artifact.

70 tests, 151 assertions across four suites.
2026-07-26 10:07:16 -04:00
..
advanced Merge pull request #313 from CarterPerez-dev/dependabot/npm_and_yarn/PROJECTS/advanced/ai-threat-detection/frontend/axios-1.18.0 2026-07-20 20:40:45 -04:00
beginner feat(rube): M4 payload builder - working CVE-2026-41316 chain with version-predicted gate 2026-07-26 10:07:16 -04:00
foundations chore(deps): bump idna in /PROJECTS/foundations/http-headers-scanner 2026-05-19 16:23:33 +00:00
intermediate chore(deps): bump axios 2026-07-21 00:42:46 +00:00