POC详情: 99c5d2467646d864ec9fe460046dc0d366dd998b

来源
关联漏洞
标题: Cacti 命令注入漏洞 (CVE-2022-46169)
描述:Cacti是Cacti团队的一套开源的网络流量监测和分析工具。该工具通过snmpget来获取数据,使用RRDtool绘画图形进行分析,并提供数据和用户管理功能。 Cacti v1.2.22版本存在命令注入漏洞,该漏洞源于未经身份验证的命令注入,允许未经身份验证的用户在运行Cacti的服务器上执行任意代码。
介绍
# [CVE-2022-46169](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-46169) unauthenticated remote code execution

![](https://img.shields.io/static/v1?label=Product&message=Cacti&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C1.2.23%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=RCE&color=blue)
![](https://img.shields.io/static/v1?label=CVSS%20score&message=9.8%20&color=brighgreen)
![](https://img.shields.io/github/go-mod/go-version/devAL3X/CVE-2022-46169_poc?filename=go.mod)


## Description

- Authentication Bypass: a hostname-based authorization check is not implemented safely for most installations of Cacti
- Command Injection: unsanitized user input is propagated to a string used to execute an external command

## Demo
![demo](demo.gif)

## POC
## Install
### Using `go install`
```
go install github.com/devAL3X/CVE-2022-46169_poc
```

Run the binary:
```
CVE-2022-46169_poc
```

### Building mannually
Alternatively, you can build binarymannually:

First, ensure that you have Go installed on your machine and `$GOPATH` eviroment variable is set.

Clone the repository:
```
git clone https://github.com/devAL3X/CVE-2022-46169_poc.git
```
Change into the project directory:
```
cd CVE-2022-46169_poc
```
Build the binary:
```
go build
```
Run the binary:
```
./CVE-2022-46169_poc
```


文件快照
 [4.0K]  /data/pocs/99c5d2467646d864ec9fe460046dc0d366dd998b
├── [969K]  demo.gif
├── [  35]  go.mod
├── [2.6K]  main.go
└── [1.3K]  README.md

0 directories, 4 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。