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/googlesky/cve-2026-104881
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLabs & Practice
GitHubgooglesky/cve-2026-104881

CVE-2026-104881

PoC and differential lab for CVE-2026-104881, a Contao newsletter-bundle authorization bypass letting non-admins run send/importRecipients on out-of-scope channels.

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-104881 — Contao newsletter: key-actions bypass per-record channel access control

License: MIT Research status: validated

CVECVE-2026-104881
Componentcontao/newsletter-bundle — Newsletter::send / importRecipients (contao/classes/Newsletter.php)
Affected< 5.3.50
Fixed in5.3.50 — commit 1471dcaf (GHSA-3r9g-pfhv-3228)
CWECWE-863 (Incorrect Authorization)
ImpactChannel access is enforced only by DataContainer voters that fire for DC_Table CRUD actions; the newsletter send / importRecipients key-actions are dispatched after only the module-level check, so a non-admin with module access can send newsletters / import recipients for channels outside their scope
VectorAuthenticated non-admin backend user invoking a newsletter key-action
Triggersend key-action targeting an out-of-scope newsletter channel

The vulnerable key-action ran with no per-record vote:

// Newsletter::send — pre-fix (dispatched by Backend::getBackendModule)
public function send(DataContainer $dc) {
    $db = Database::getInstance();   // no channel access check
    ...
}

The fix enforces the per-record voter at the start of the key-action:

// fixed (commit 1471dcaf)
public function send(DataContainer $dc) {
    $this->denyAccessUnlessGranted(
        ContaoCorePermissions::DC_PREFIX . $dc->table,
        new ReadAction($dc->table, $dc->getCurrentRecord())
    );
    ...
}
private function denyAccessUnlessGranted(mixed $attribute, mixed $subject = null): void {
    if (!System::getContainer()->get('security.helper')->isGranted($attribute, $subject)) {
        throw new AccessDeniedException(...);
    }
}

1. Root cause

Channel access is enforced by NewsletterChannelAccessVoter / NewsletterRecipientsAccessVoter (requiring USER_CAN_EDIT_CHANNEL). Their supportsType() fires exclusively for Create/Read/Update/DeleteAction subjects dispatched inside DC_Table's create/edit/delete methods. The newsletter custom key-actions (send, importRecipients) are dispatched directly by Backend::getBackendModule() after only the module-level USER_CAN_ACCESS_MODULE check; the DC_Table constructor runs no per-record ReadAction vote for a key-action, and Newsletter.php contained no isGranted check. A non-admin with newsletter module access could therefore send a newsletter or import recipients for a channel outside their assigned scope. The fix adds denyAccessUnlessGranted(DC_PREFIX.table, ReadAction(...)) at the start of send() and a CreateAction check in importRecipients() (plus a per-record CreateAction check in the import loop), so the channel voter is enforced on the key-action path.

2. Reproduction environment

serviceimagerole
nl-vulncve-2026-104881:vulnreal Newsletter::send (pre-fix)
nl-fixedcve-2026-104881:fixedreal send + helper (vendor fix 1471dcaf)
poccve-2026-104881-poc:localstdlib-only Python driver

A PHP harness loads the real send() method verbatim from each tag (plus the denyAccessUnlessGranted helper for the fixed build). Because PHP resolves classes at runtime, only the executed path needs stubs: the fixed send() throws at denyAccessUnlessGranted (first line); the vulnerable send() hits a Database mock returning numRows=0 and returns early. The security.helper is mocked to deny an out-of-scope channel. Both sides differ only in the upstream method source.

3. Running the environment

./run-lab.sh build     # builds both sides (php:8.3-cli)
./run-lab.sh up        # cve104881lab network: nl-vuln / nl-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 send() proceeds, 0 when denied; 3 no worker, 2 unreachable/indeterminate.
  • exploit — narrated bypass: non-admin with module access → out-of-scope channel key-action → proceeds without a per-record vote.
  • probe — scope matrix: out-of-scope (bypass vs protected) and in-scope (legitimate on both).
  • mitigation — 5.3.50 / commit 1471dcaf.

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

python3 exploit/exploit.py --host=nl-vuln
# exit 1 on confirmed access bypass, 0 on a safe target

5. Expected results

scopenl-vuln (pre-fix)nl-fixed (1471dcaf)
out-of-scopeproceeded (bypass)denied (Not enough permissions to access ReadAction(tl_newsletter))
in-scope (control)proceeded (legit)proceeded (legit)

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 cve104881lab network; PHP 8.3 runtime in the lab images.
  • Real-world exploitation requires a non-admin backend user with newsletter module access (USER_CAN_ACCESS_MODULE) but no rights to the target channel.

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

The fixed send() / importRecipients() enforce the per-record ReadAction / CreateAction vote via denyAccessUnlessGranted at the start of the key-action, so out-of-scope channels are denied while in-scope access still proceeds. The recipients-import loop also checks CreateAction per new record. No key-action access-bypass 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 method source
lab/vendor/           verbatim send() (+ helper) from pre-fix / fix commits
lab/stubs.php         minimal executed-path stubs (Database, System, voter, ...)
lab/gen.py            assembles the Newsletter class from the verbatim method
lab/harness.php       drives the real send() as a non-admin
lab/service.py        HTTP wrapper (POST /send)
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-104881
  • GitHub advisory — https://github.com/contao/contao/security/advisories/GHSA-3r9g-pfhv-3228
  • Fix commit — https://github.com/contao/contao/commit/1471dcaf4fe3d07a415e756dc54ce1f46d2ee879
Download Tool