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
cortex9-zitadel-saml-idp-intent-mismatch-model — Offline educational model of CVE-2026-109372 (ZITADEL SAML IdP intent mismatch) | Kitploit
Tools/GitHubGitHub/federiconbaez/cortex9-zitadel-saml-idp-intent-mismatch-model
Vulnerability AnalysisCode AnalysisWeb SecurityAuthenticationPapers & ResearchLearning & EducationLabs & Practice
GitHub
federiconbaez/cortex9-zitadel-saml-idp-intent-mismatch-model

cortex9-zitadel-saml-idp-intent-mismatch-model

Offline educational model of CVE-2026-109372 (ZITADEL SAML IdP intent mismatch)

View Repository
14 days agoNot yet reviewed
Share

cortex9-zitadel-saml-idp-intent-mismatch-model

Offline model of CVE-2026-109372 (GHSA-65fv-6pff-4q47, repo advisory GHSA-x4c7-fpcx-w9q6): SAML identity-provider confusion in ZITADEL's identity-provider intent callbacks. The ACS handler verified the SAML response with the provider named in the URL (/idps/<id>/saml/acs) but resolved the user under the IdP of the login intent found through the RelayState, without comparing the two. Fixed in 4.19.2 by commit 450c0560bc83 (pre = before, post = after), which adds checkSAMLIntentIDP to ACS and SLO.

Educational, deterministic, Go standard library only (plus a Python 3 stdlib cross-check). No ZITADEL code is imported or run, no XML is parsed, nothing is signed and no socket is opened. Keys and IdPs are symbolic strings.

Spanish: README.es.md. Exercises: PRACTICE.md.

What is modelled

diff:N is line N of the saved fix diff (see SOURCES.md). A * in the diff_lines column means the step is reconstructed (from diff comments, the integration test or the advisory), not code shown in the diff.

StepACSSLO
State from RelayState (intent / logout state)before diff:9 (5-7*)before diff:23 (20-22*)
Provider from URL (data.IDPID)before diff:9 (5-7*; used at diff:17)getProvider, diff:32
Gate (post only) checkSAMLIntentIDP(data.IDPID, state.IDPID), byte-exact != (diff:42-47)diff:12-15, after the provider lookupdiff:27-30, before getProvider
Signature with the URL IdP's key, Destination/Audience = URL IdP's SPsaml2.NewSession, diff:17* (test comments diff:146-148)after diff:32*
InResponseTo == intent.RequestIDdiff:17 (intent.RequestID), diff:183-185, 214-216not modelled
User resolved under the state's IdPdiff:9-11; checkExternalUser diff:49*—

Fixed instance: idp-a (attacker), idp-b (victim, linked to victim-external-id as in diff:143-151), idp-c (carol-ext). A response whose signature was verified with IdP X but whose user is resolved under IdP Y ≠ X is labelled CONFUSED_SESSION / CONFUSED_NO_USER / CONFUSED_LOGOUT.

Differential evidence (results/cases.tsv)

Caseprepost
p01 URL idp-a, intent idp-b, signed by A for A's SP, InResponseTo copiedCONFUSED_SESSION as user-victimREJECT_IDP_MISMATCH (diff:12-15)
p02 same with one shared key (integration test, diff:146-148)CONFUSED_SESSIONREJECT_IDP_MISMATCH
p05 SLO, URL A, logout state BCONFUSED_LOGOUTREJECT_IDP_MISMATCH (diff:27-30)
d01-d04 unit-test table (diff:73-112)—match/both-empty pass the gate, mismatch/one-empty fail
a03 confusion without copying InResponseToREJECT_REQUEST_IDREJECT_IDP_MISMATCH
a02 SLO URL IDP-B, state idp-bREJECT_PROVIDERREJECT_IDP_MISMATCH (gate before diff:32)
a06 shared key, response built for B's SPSESSIONSESSION (outside the fix)
n01-n07 legitimate / plainly invalid callbacksunchangedunchanged

Sweep (results/sweep.csv, 5,400 cases): post never yields a confused outcome; pre is confused in 324 cases, all with URL IdP ≠ state IdP; for every case with equal IdPs the fix changes nothing; post rejects 2,700 cases with REJECT_IDP_MISMATCH. The counts are derived by hand in tests/model_test.go.

Model edges, not findings: both empty IdP IDs pass the gate (as the upstream unit test requires, diff:93-102); the model then rejects at provider lookup. If two IdPs share a signing key (a06), a response built for the right SP passes before and after the fix; that is key reuse, not what this fix addresses.

Run

sh scripts/build.sh test                                    # any skip = failure
python3 scripts/derive_expected.py | diff - fixtures/expected.tsv
python3 scripts/derive_expected.py sweep | diff - results/sweep.csv
sh scripts/build.sh results /tmp/r && diff -r results /tmp/r
go run ./src/cmd/samlmodel case pre acs idp-a idp-b idp-a idp-a intent victim-external-id

fixtures/cases.tsv holds hand labels; scripts/derive_expected.py re-implements the checks in Python without reading the Go model; the tests compare all three.

See LIMITATIONS.md and SOURCES.md. License: Apache-2.0.

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.

    894
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    821
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    649
  • 4

    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.

    450
  • 5

    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.

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

    389

Explore all tools

Browse our collection of tools

View all tools →