
CVE-2023-36281의 PoC
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