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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-25646 PoC — Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.

Source
Associated Vulnerability
Title:Authenticated users can override system configurations in their requests which allows them to execute arbitrary code. (CVE-2021-25646)
Description:Apache Druid includes the ability to execute user-provided JavaScript code embedded in various types of requests. This functionality is intended for use in high-trust environments, and is disabled by default. However, in Druid 0.20.0 and earlier, it is possible for an authenticated user to send a specially-crafted request that forces Druid to run user-provided JavaScript code for that request, regardless of server configuration. This can be leveraged to execute code on the target machine with the privileges of the Druid server process.
Description
Exploit for Apache Druid Embedded Javascript Remote Code Execution (CVE-2021-25646), Python.
Readme
# Apache Druid RCE Exploit (CVE-2021-25646)

Python exploit for Apache Druid Remote Code Execution via JavaScript code injection (CVE-2021-25646).

## Description

This script exploits an RCE vulnerability in Apache Druid (versions < 0.20.1) that allows arbitrary code execution through specially crafted sampler requests.

## Usage

```bash
python3 druid_rce.py -u http://target:8888 -c "command_to_execute"
```

### Arguments
- `-u/--url` - Target URL (e.g., `http://vulnerable-host:8888`)
- `-c/--command` - Command to execute on target system

## Example

```bash
python3 druid_rce.py -u http://192.168.1.100:8888 -c "id"
```

## Requirements

- Python 3.x
- `requests` library (`pip install requests`)

## Disclaimer

This tool is for **educational and authorized penetration testing purposes only**. Never use it against systems without explicit permission. The author is not responsible for any misuse.

P.S. Author: Коротков Виталий Константинович.
File Snapshot

[4.0K] /data/pocs/f62792bd2b8ea5126db9230f0d08c45357630c20 ├── [3.6K] druid_rce.py └── [ 986] README.md 0 directories, 2 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 →