Fix druid loophole cve

From XuShuwenn/RedAct · View interactive version

Fix druid loophole cve is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Patch Apache Druid JavaScript injection vulnerability (CVE-like) that allows arbitrary code execution via empty key bypass.

How to use this skill

Skill file

Apache Druid CVE Patch

When to Use

When to Use

Task-Mode Gate

When to Use

Execution Protocol

Vulnerability

Empty key "" bypasses JavaScript security to allow:

java.lang.Runtime.getRuntime().exec('malicious_command')

Endpoint: POST /druid/indexer/v1/sampler

Patch Location

Write patches to /root/patches/

Apply to git repo at /root/druid/

Build Command

cd /root/druid && mvn clean package -DskipTests -Dcheckstyle.skip=true -Dpmd.skip=true \
  -Dforbiddenapis.skip=true -Dspotbugs.skip=true -Danimal.sniffer.skip=true \
  -Denforcer.skip=true -Djacoco.skip=true -Ddependency-check.skip=true \
  -pl '!web-console' -pl indexing-service -am

Verification

Verification

Fix Strategy

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.