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

目标: 1000 元 · 已筹: 1336

100%

CVE-2022-0944 PoC — sqlpad 代码注入漏洞

来源
关联漏洞
标题: sqlpad 代码注入漏洞 (CVE-2022-0944)
Description:sqlpad是一个基于 Web 的 SQL 编辑器。 sqlpad 存在安全漏洞,目前暂无该漏洞信息,请随时关注CNNVD或厂商公告。
Description
Refurbish
介绍
# SQLPad 6.10.0 Exploit (CVE-2022-0944)

This Bash script exploits an RCE vulnerability in SQLPad 6.10.0, allowing an attacker to achieve remote code execution (RCE) by abusing the `host` and `database` fields in SQLPad’s MySQL database connection settings. The exploit leverages SQLPad’s unsanitized handling of the `child_process` module in Node.js to execute arbitrary commands, ultimately opening a reverse shell on the attacker's machine.

## Prerequisites
1. **Netcat Listener**: Ensure you have a listener active on your machine with `nc -lvnp 9001`.
2. **Target Server Access**: This exploit assumes you can communicate with the vulnerable SQLPad instance.

## Usage
1. **Clone the Repository** (or copy the script locally).
2. **Run the Script**:
   ```bash
   ./exploit.sh
   ```

3. Follow the script prompts to input the target host and your IP address, then wait for a reverse shell connection.

## Details
- **CVE**: CVE-2022-0944
- **Affected Version**: SQLPad 6.10.0
- **Vulnerability**: Remote Code Execution (RCE) via template injection
- **Impact**: This exploit allows an attacker to execute commands on the target server with the privileges of the SQLPad process.

## Disclaimer
This code is for educational purposes only. Unauthorized access to computer systems is illegal. Only use this exploit with permission.
文件快照

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

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