
PoC de CVE-2023-36281
PoC de CVE-2023-36281
Me referí a este PoC. Desafortunadamente, no funciona porque los índices de subprocess.Popen son diferentes en cada entorno de Python. Sin embargo, mi código PoC soluciona este 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