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
Tools/GitHubGitHub/saku0512/cve-2026-104100-poc
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLabs & Practice
GitHubsaku0512/cve-2026-104100-poc

CVE-2026-104100-poc

Safe local proof-of-concept for CVE-2026-104100, a path traversal in Teable's attachment presign API, with Docker Compose vulnerable and fixed environments for verification.

View Repository
1 month agoNot yet reviewed

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.

    901
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    861
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    668
  • 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.

    448
  • 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.

    414
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    401

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-104100: Teable Attachment Write Path Traversal PoC

日本語版はこちら

Description

This repository contains a safe local proof of concept for CVE-2026-104100, based on Teable's public advisory GHSA-h4hg-45pv-pv8j.

The vulnerable attachment signature API accepts a client-controlled hash without validating it and uses the value as a local-storage filename. A hash containing ../ causes the subsequent upload to resolve outside the storage directory, allowing a registered user to write or overwrite files with the backend process's privileges. The official standalone container runs the backend as root, so the resulting file is root-owned.

This PoC only creates a uniquely named marker under /tmp inside the test container. It does not overwrite an existing file, execute code, or use an external callback. The marker is removed automatically after verification.

Disclaimer

This project is intended only for education and explicitly authorized security testing. Do not use it against systems or environments without permission.

Vulnerability Details

  • CVE ID: CVE-2026-104100
  • GitHub Advisory: GHSA-h4hg-45pv-pv8j
  • Product: Teable
  • Type: Improper Input Validation / Path Traversal (CWE-20, CWE-22)
  • Severity: High
  • CVSS v3.1: 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
  • Affected versions: <= 1.10.0
  • Patched version: release.2026-07-20T11-53-25Z.2296
  • Privileges required: Registered user
  • Affected configuration: Local storage provider
  • Unaffected configuration: Object-storage providers such as S3

Root Cause

Before the fix, the signature request schema accepted hash as an arbitrary optional string:

hash: z.string().optional()

LocalStorage.presigned used that value as the upload filename:

const filename = hash ?? token;
const path = join(dir, filename);

The upload path was then resolved and copied to without checking that it stayed under the configured storage root:

const distPath = resolve(this.storageDir);
const newFilePath = resolve(distPath, rename);
await fse.copy(filePath, newFilePath);

The module already had an assertPathWithinStorage helper that rejects .. and absolute paths, but the vulnerable implementation used it only on the read path, not before a write.

The fix removes hash from the public signature schema so that a random, server-generated token is always used as the stored filename.

Proof of Concept

Requirements

  • Docker and Docker Compose
  • Python 3.10 or later
  • Network access for the initial Docker image download

1. Start the vulnerable version

The default image is the vulnerable 2026-07-15 release identified by the advisory.

docker compose up -d

Watch the logs while Teable starts. The first startup can take several minutes.

docker compose logs -f teable

Stop following the logs after http://127.0.0.1:3100 becomes available.

2. Verify the vulnerable version

python3 exploit.py \
  --target http://127.0.0.1:3100 \
  --container cve-2026-104100-teable \
  --expect vulnerable

Expected key output:

[!] VULNERABLE: the marker was written outside the storage directory.
[+] Marker ownership: 0:0
[+] Removed the temporary marker.

The PoC:

  1. Self-registers a random test user.
  2. Requests an upload signature with a traversal from hash to /tmp.
  3. Sends a harmless marker body to the returned temporary upload URL.
  4. Uses docker exec to verify the marker content and ownership.
  5. Removes the verified marker.

3. Verify the patched version

Stop the vulnerable environment and select the patched image listed in the advisory:

docker compose down -v
TEABLE_IMAGE=ghcr.io/teableio/teable:release.2026-07-20T11-53-25Z.2296 \
  docker compose up -d

After startup, run the same PoC with the patched expectation:

python3 exploit.py \
  --target http://127.0.0.1:3100 \
  --container cve-2026-104100-teable \
  --expect fixed

The patched version does not use the client-controlled hash as its storage path, so the /tmp marker is not created.

4. Cleanup

docker compose down -v

Safety Boundaries

  • The destination is fixed to /tmp/cve_2026_104100_<random>.txt.
  • The PoC uses a unique name and checks that the marker does not already exist.
  • Automatic cleanup occurs only if the marker content exactly matches the PoC.
  • Only loopback targets are allowed by default.
  • Use --allow-remote-target only in an explicitly authorized test environment.
  • --keep-marker leaves the marker behind for manual inspection.

Remediation

Upgrade to release.2026-07-20T11-53-25Z.2296 or later. If an immediate upgrade is not possible, avoid the local storage provider, disable self-registration, and restrict access to the attachment signature API, including for low-privilege users.

References

  • GHSA-h4hg-45pv-pv8j
  • CVE-2026-104100
  • Teable PR #3613
Download Tool