Share
## https://sploitus.com/exploit?id=563CEFFF-68A8-5A16-9B3E-9D29D7083718
# [CVE-2022-46169](https://vulners.com/cve/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
```