
PoC of CVE-2023-36281
PoC do CVE-2023-36281
Eu referi a este PoC. Infelizmente, não funciona porque os índices de subprocess.Popen são diferentes em cada ambiente Python. No entanto, meu código PoC resolve esse problema.
$ pip install -r requirements.txt
$ python get_index_of_subprocess.py
subprcess.Popen index: 309.
Replace target_index in attack_prompt.json with this value.
$ python exploit.py
README.md attack_prompt.json get_index_of_subprocess.py exploit.py requirements.txt