
PoC de CVE-2023-36281
PoC de CVE-2023-36281
Je me suis référé à ce PoC. Malheureusement, il ne fonctionne pas car les index de subprocess.Popen diffèrent selon les environnements Python. Cependant, mon code PoC résout ce problème.
$ 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