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-104883 — Proof-of-concept and lab for CVE-2026-104883: a delegated Contao user manager self-grants theme_import to escalate to PHP RCE, with differential vuln/fixed harness. | Kitploit
Tools/GitHubGitHub/googlesky/cve-2026-104883
Privilege EscalationExploitationWeb Application ExploitationLabs & Practice
GitHubgooglesky/cve-2026-104883

CVE-2026-104883

Proof-of-concept and lab for CVE-2026-104883: a delegated Contao user manager self-grants theme_import to escalate to PHP RCE, with differential vuln/fixed harness.

View Repository
3 days agoNot yet reviewed
Share

CVE-2026-104883 — Contao: non-admin self-grant of implicit-admin capabilities (privilege escalation to RCE)

License: MIT Research status: validated

CVECVE-2026-104883
Componentcontao/core-bundle — CheckTemplateEditorSaveListener / TemplateEditorModuleVoter (tl_user, tl_user_group)
Affected< 5.3.50 (and the 5.7.x line before the fix)
Fixed in5.3.50 — commit 211498f28 (GHSA-r9qp-pqx5-8369)
CWECWE-269 (Improper Privilege Management), CWE-863 (Incorrect Authorization)
ImpactA delegated user/group manager (a role explicitly not trusted with template/code access) can self-grant the RCE-capable theme_import capability — and layout, unfiltered_html, etc. — escalating to arbitrary PHP execution on the server
VectorAuthenticated low-privilege backend user editing their own account/group
Triggersave themes = ['theme_import'] (the themes field had no guard)

The 5.7.3 hardening guarded only modules / tpl_editor:

// vulnerable CheckTemplateEditorSaveListener — registered only on fields.modules.save
if (!\is_array($newModules) || !\in_array('tpl_editor', $newModules, true)) {
    return $value;   // themes/theme_import is never inspected -> grant accepted
}

The fix guards every implicit-admin field and value:

// fixed CheckImplicitAdminSaveListener (commit 211498f28)
private const IMPLICIT_ADMIN_VALUES = [
    'modules' => ['tpl_editor'],
    'themes' => ['theme_import', 'layout'],
    'elements' => ['unfiltered_html'],
    'frontendModules' => ['unfiltered_html', 'listing'],
    'alexf' => [/* list_table, list_where, unfilteredHtml, ... */],
];
// registered on fields.modules/themes/elements/frontendModules/alexf.save;
// throws AccessDeniedException (ERR.grantAdminOnly) for a non-admin self-grant.

1. Root cause

Commit 2b83a60f7763 (5.7.3) hardened the template editor by adding TemplateEditorModuleVoter and a save callback so a non-admin cannot self-grant the tpl_editor backend module (editable PHP-capable templates allow server-side code execution). That protection covers only the modules field and the literal value tpl_editor. The equally RCE-capable theme_import capability lives in a different field — the themes checkbox field (tl_user_group.php / tl_user.php) — which had no save_callback and no voter. TemplateEditorModuleVoter is the only DataContainer voter registered for tl_user_group and does not cover themes. A delegated user manager can therefore add themes to the modules field and theme_import to the themes field (both accepted — only tpl_editor is blocked), re-authenticate, and gain arbitrary PHP execution. The fix renames the listener to CheckImplicitAdminSaveListener, registers it on modules/themes/elements/frontendModules/alexf, and denies non-admin self-grants of every implicit-admin value.

2. Reproduction environment

serviceimagerole
ct-vulncve-2026-104883:vulnreal CheckTemplateEditorSaveListener (pre-fix)
ct-fixedcve-2026-104883:fixedreal CheckImplicitAdminSaveListener (vendor fix)
poccve-2026-104883-poc:localstdlib-only Python driver

A PHP harness loads the real upstream listener class verbatim from each tag and invokes __invoke($value, $dc) as a non-admin (isGranted('ROLE_ADMIN') = false) on a given field/value with no prior access. The Symfony/Contao dependencies are stubbed; the listener logic itself is untouched. Both sides differ only in the upstream listener source.

3. Running the environment

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

4. The PoC

poc/poc.py (stdlib only):

  • check — exit 1 when a non-admin themes=['theme_import'] save is accepted, 0 when denied; 3 no worker, 2 unreachable/indeterminate.
  • exploit — narrated escalation: delegated user manager → self-grant theme_import → re-auth → arbitrary PHP execution.
  • probe — field/value matrix: tpl_editor (guarded on both), theme_import / layout / unfiltered_html (the bypass), benign module control.
  • mitigation — 5.3.50 / commit 211498f28.

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

python3 exploit/exploit.py --host=ct-vuln
# exit 1 on confirmed implicit-admin self-grant, 0 on a safe target

5. Expected results

non-admin savect-vuln (pre-fix)ct-fixed (211498f28)
modules = ['tpl_editor']denied (ERR.grantTemplateEditor)denied (ERR.grantAdminOnly)
themes = ['theme_import']granted (bypass)denied
themes = ['layout']granteddenied
elements = ['unfiltered_html']granteddenied
modules = ['news'] (benign)grantedgranted

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 cve104883lab network; PHP 8.3 runtime in the lab images.
  • Real-world exploitation requires a delegated user/group manager account (the user or group backend module) on a Contao installation; no admin access is needed.

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

The fixed CheckImplicitAdminSaveListener denies every implicit-admin self-grant across modules/themes/elements/frontendModules/alexf (tpl_editor, theme_import, layout, unfiltered_html, listing, the alexf list fields) for non-admins without prior access. Benign values still save. The earlier tpl_editor-only guard left theme_import / layout / unfiltered_html open; the fix closes all of them. No implicit-admin self-grant path remains.

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 listener source
lab/vendor/           verbatim listener class from pre-fix / fix commits
lab/stubs.php         minimal Symfony/Contao dependency stubs
lab/harness.php       invokes the real listener as a non-admin
lab/service.py        HTTP wrapper (POST /check)
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-104883
  • GitHub advisory — https://github.com/contao/contao/security/advisories/GHSA-r9qp-pqx5-8369
  • Fix commit — https://github.com/contao/contao/commit/211498f28d4c86484b96eb0612c1193105b79e51
  • Earlier hardening — commit 2b83a60f7763 (5.7.3, tpl_editor-only)
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.

    897
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

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

    400

Explore all tools

Browse our collection of tools

View all tools →