mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
[pitboss] phase 03: Track J.1 + Track L.1 — DESERIALIZE corpus + Java/Python/PHP/Ruby adapters
This commit is contained in:
parent
01fcaab310
commit
9dc60b51c0
33 changed files with 1625 additions and 53 deletions
11
tests/dynamic_fixtures/deserialize/python/vuln.py
Normal file
11
tests/dynamic_fixtures/deserialize/python/vuln.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue