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-104882 — Proof-of-concept and differential lab for CVE-2026-104882, a Contao CSV import IDOR where a scoped non-admin editor overwrites out-of-scope tl_content records. | Kitploit
Tools/GitHubGitHub/googlesky/cve-2026-104882
Vulnerability AnalysisExploitationWeb Application ExploitationSecurity VirtualizationLabs & Practice
GitHubgooglesky/cve-2026-104882

CVE-2026-104882

Proof-of-concept and differential lab for CVE-2026-104882, a Contao CSV import IDOR where a scoped non-admin editor overwrites out-of-scope tl_content records.

View Repository
3 days 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-104882 — Contao: CSV import key-actions bypass per-record access control (IDOR)

License: MIT Research status: validated

CVECVE-2026-104882
Componentcontao/core-bundle — BackendCsvImportController (Backend::getBackendModule key-action dispatch)
Affected< 5.3.50
Fixed in5.3.50 — commit eb8088bcd (GHSA-23w9-4pg3-xwm3)
CWECWE-639 (Authorization Bypass Through User-Controlled Key), CWE-863 (Incorrect Authorization)
ImpactA non-admin editor scoped to certain pages/forms can overwrite the tableitems / listitems / options of arbitrary tl_content / tl_form_field records outside their scope via the CSV import wizards — blind integrity IDOR (the written value is serialize() of a plain string array, not object injection)
VectorAuthenticated low-privilege backend editor invoking a CSV import key-action
TriggerCSV import targeting an out-of-scope record (only module-level access checked)

The vulnerable controller wrote the imported data with no per-record vote:

// vulnerable BackendCsvImportController::importFromTemplate
$data = $this->fetchData($uploader, $separator, $callback);
$this->connection->update($table, [$field => serialize($data)], ['id' => $currentRecord['id']]);
// no denyAccessUnlessGranted — only the module-level check ran at dispatch

The fix enforces the per-record voter before the write:

// fixed (commit eb8088bcd)
$this->denyAccessUnlessGranted(
    ContaoCorePermissions::DC_PREFIX.$table,
    new UpdateAction($table, $currentRecord, [$field => serialize($data)])
);
$this->connection->update($table, [$field => serialize($data)], ['id' => $currentRecord['id']]);

1. Root cause

Custom backend module "key" actions are dispatched in Backend::getBackendModule() after only the module-level USER_CAN_ACCESS_MODULE check — no per-record voter runs. The CSV import wizards (importListWizardAction, importTableWizardAction, importOptionWizardAction) therefore wrote the imported listitems / tableitems / options directly to the database without verifying that the editor may modify the targeted record. A non-admin editor scoped to specific pages/forms could target any tl_content / tl_form_field record by id and overwrite its content — a blind integrity IDOR. The fix adds denyAccessUnlessGranted(DC_PREFIX.$table, new UpdateAction(...)) before connection->update, so the per-record DataContainer voter is enforced on the import path.

2. Reproduction environment

serviceimagerole
csv-vulncve-2026-104882:vulnreal BackendCsvImportController (pre-fix)
csv-fixedcve-2026-104882:fixedreal controller (vendor fix eb8088bcd)
poccve-2026-104882-poc:localstdlib-only Python driver

A PHP harness loads the real controller verbatim from each tag and drives importTableWizardAction() as a non-admin. The per-record authorization checker is mocked to deny an out-of-scope record; the Doctrine connection is mocked to record writes. The Symfony/Contao infrastructure is stubbed; the controller logic (including the security decision and the DB write) is the real upstream code. Both sides differ only in the controller source.

3. Running the environment

./run-lab.sh build     # builds both sides (php:8.3-cli)
./run-lab.sh up        # cve104882lab network: csv-vuln / csv-fixed
./run-lab.sh sweep
./run-lab.sh down

4. The PoC

poc/poc.py (stdlib only):

  • check — exit 1 when an out-of-scope import writes the record, 0 when denied; 3 no worker, 2 unreachable/indeterminate.
  • exploit — narrated IDOR: scoped editor → out-of-scope CSV import → blind overwrite of tl_content.tableitems.
  • probe — scope matrix: out-of-scope (IDOR vs protected) and in-scope (legitimate write on both).
  • mitigation — 5.3.50 / commit eb8088bcd.

A standalone full-chain exploit ships at exploit/exploit.py:

python3 exploit/exploit.py --host=csv-vuln
# exit 1 on confirmed out-of-scope write, 0 on a safe target

5. Expected results

import scopecsv-vuln (pre-fix)csv-fixed (eb8088bcd)
out-of-scopedb_update_called=true (IDOR)access_denied=true, no write
in-scope (control)write (legitimate)write (legitimate)

Captured runs: evidence/check-*-run.txt, evidence/exploit-*-run.txt, evidence/probe-*-run.txt, evidence/mitigation-*-run.txt, evidence/exploit-standalone-run.txt, evidence/exploit-standalone-fixed-run.txt, evidence/versions.txt, evidence/0day-sweep.txt.

6. Environment preconditions

  • Podman (or Docker); bounded containers on the isolated cve104882lab network; PHP 8.3 runtime in the lab images.
  • Real-world exploitation requires a non-admin backend editor with the CSV import module enabled; the attacker targets records by id outside their assigned scope.

7. Additional findings (0-day sweep on the fixed line)

The fixed controller enforces the per-record UpdateAction vote (denyAccessUnlessGranted) before any CSV-import DB write, so out-of-scope records are protected while in-scope imports still succeed. The same guard covers importListWizardAction / importTableWizardAction / importOptionWizardAction (listitems / tableitems / options). No per-record IDOR remains in the import path.

8. Repository layout

README.md             this write-up
run-lab.sh            environment driver (build / up / sweep / down)
Makefile              convenience targets
poc/poc.py            the PoC (check / exploit / probe / mitigation)
exploit/exploit.py    standalone full-chain exploit
lab/lab.Dockerfile    builds both sides from upstream controller source
lab/vendor/           verbatim controller from pre-fix / fix commits
lab/stubs.php         minimal Symfony/Contao/Doctrine infrastructure stubs
lab/harness.php       drives the real import action as a non-admin
lab/service.py        HTTP wrapper (POST /import)
evidence/             captured runs of every mode on both sides
TRACKING.md           excluded (working record)

9. References

  • CVE record — https://www.cve.org/CVERecord?id=CVE-2026-104882
  • GitHub advisory — https://github.com/contao/contao/security/advisories/GHSA-23w9-4pg3-xwm3
  • Fix commit — https://github.com/contao/contao/commit/eb8088bcd547964657a1411a34842b441393a81c
  • Credit — found by @HDWSec
Download Tool