nyx/tests/dynamic_fixtures/deserialize/python/vuln.py

12 lines
281 B
Python
Raw Permalink Normal View History

2026-06-05 10:16:30 -05:00
"""Phase 03 (Track J.1) — Python deserialize vuln fixture.
`pickle.loads` accepts arbitrary classes; a gadget chain inside the
payload runs straight through `__reduce__` without bumping into any
allowlist.
"""
import pickle
def run(blob: bytes):
return pickle.loads(blob)