目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2022-31814 PoC — pfSense 操作系统命令注入漏洞

来源
关联漏洞
标题: pfSense 操作系统命令注入漏洞 (CVE-2022-31814)
Description:pfSense是一套基于FreeBSD Linux的网络防火墙。 pfSense pfBlockerNG 2.1.4_26 版本之前存在安全漏洞。远程攻击者通过 HTTP 主机标头中的 shell 元字符以 root 身份可以执行任意操作系统命令。
Description
pfBlockerNG <= 2.1.4_26 Unauth RCE (CVE-2022-31814)
介绍
# pfBlockerNG <= 2.1.4_26 Unauth RCE

This script is a proof-of-concept exploit for pfBlockerNG <= 2.1.4_26 that allows for remote code execution. It takes a single target URL or a list of URLs, uploads a shell, executes a command, and then deletes the shell.

## Requirements

This script requires Python 3.x and the requests and concurrent.futures modules to be installed. You can install these modules by running:

```bash
pip3 install requests concurrent.futures
```
or
```bash
pip3 install -r requirements.txt
```
## Usage

```bash
usage: exploit.py [-h] [-c COMMAND] [-l LIST] [-i IP] [-t THREADS] [-o OUTPUT]

pfBlockerNG <= 2.1.4_26 Unauth RCE

options:
  -h, --help            show this help message and exit
  -c COMMAND, --command COMMAND
                        Console Command ('id')
  -l LIST, --list LIST  List of targets (list.txt)
  -i IP, --ip IP        Base target uri (ex. http://target-uri/)
  -t THREADS, --threads THREADS
                        Number of threads for mass scan
  -o OUTPUT, --output OUTPUT
                        Output file (vuln.txt)

```

## Single Target

To exploit a single target, use the `-i` or `--ip` flag and specify the base URL or IP Address:

```bash
python3 exploit.py -i http://target-uri/ -c 'id'
```

## Multiple Targets

To scan a list of targets, use the `-l` or `--list` flag and specify the path to the list:

```bash
python3 exploit.py -l list.txt -c 'id' -t 50
```

The `-t` or `--threads` flag can be used to specify the number of threads to use for the scan.

## Output

If the `-o` or `--output` flag is specified, the list of vulnerable targets will be written to a file:

```
python3 exploit.py -l list.txt -c 'id' -o vuln.txt
```

## Shodan Dork:

```bash
http.title:"pfSense - Login" "Server: nginx" "Set-Cookie: PHPSESSID="
```
## ⚠️  Disclaimer

> This script is for educational purposes only. Use at your own risk.
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →