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-104773 — Proof-of-concept and lab for CVE-2026-104773, a CKAN session fixation flaw in RegisterView.post where the session ID is not regenerated on registration. | Kitploit
Tools/GitHubGitHub/googlesky/cve-2026-104773
Vulnerability AnalysisExploitationWeb SecurityAuthenticationLabs & Practice
GitHubgooglesky/cve-2026-104773

CVE-2026-104773

Proof-of-concept and lab for CVE-2026-104773, a CKAN session fixation flaw in RegisterView.post where the session ID is not regenerated on registration.

View Repository
3 days agoNot yet reviewed
Share

CVE-2026-104773 — CKAN: session fixation in the web registration view

License: MIT Research status: validated

CVECVE-2026-104773
ComponentCKAN — RegisterView.post (ckan/views/user.py)
Affected< 2.10.11, 2.11.0 – 2.11.5 (server-side session storage)
Fixed in2.10.11 / 2.11.6 / 2.12.0 — commit 6eae4e9c (GHSA-6499-jgj4-2wpf)
CWECWE-384 (Session Fixation)
ImpactThe registration view logs the new user in without regenerating the session identifier; with server-side session storage an attacker who fixes a session cookie on the victim's browser (or steals a valid session) keeps that same ID after the victim registers, hijacking the authenticated session
VectorNetwork — attacker pre-sets a session ID, victim registers through it
Triggerregister a new account while carrying an attacker-fixed session ID

The vulnerable registration logged the user in without rotating the session:

# RegisterView.post — pre-fix
userobj = model.User.get(user_dict["id"])
if userobj:
    login_user(userobj)      # session ID unchanged
    rotate_token()

The fix regenerates the session first:

# fixed (commit 6eae4e9c)
userobj = model.User.get(user_dict["id"])
if userobj:
    regenerate_session()     # rotate the session ID
    login_user(userobj)
    rotate_token()

def regenerate_session() -> None:
    regenerate = getattr(current_app.session_interface, 'regenerate', None)
    if regenerate is not None:
        regenerate(session)

1. Root cause

RegisterView.post() creates the user and then logs them in programmatically (login_user) without regenerating the session identifier. When CKAN is configured with server-side session storage, the session ID is a bearer token held server-side; an attacker who can set a cookie on the victim's browser (or who already holds a valid session) can fix a known session ID, let the victim register and authenticate through it, and then reuse that same ID to hijack the now-authenticated session. CKAN's default cookie-based session storage is not affected (the session data travels with the cookie and is not a fixed server-side key). The fix adds regenerate_session() before login_user() in the registration flow (and refactors login() to use the same helper), so the session ID is rotated on registration.

2. Reproduction environment

serviceimagerole
ckan-vulncve-2026-104773:vulnreal RegisterView.post (pre-fix)
ckan-fixedcve-2026-104773:fixedreal post + helper (vendor fix 6eae4e9c)
poccve-2026-104773-poc:localstdlib-only Python driver

A Python harness drives the real RegisterView.post() verbatim from each tag through the anonymous successful-registration path. The CKAN/Flask dependencies are stubbed; a mocked server-side session interface records regeneration. The harness reports the session ID before and after registration. Both sides differ only in the upstream method source.

3. Running the environment

./run-lab.sh build     # builds both sides (python:3.12-slim)
./run-lab.sh up        # cve104773lab network: ckan-vuln / ckan-fixed
./run-lab.sh sweep
./run-lab.sh down

4. The PoC

poc/poc.py (stdlib only):

  • check — exit 1 when the session ID is preserved after registration, 0 when regenerated; 3 no worker, 2 unreachable/indeterminate.
  • exploit — narrated fixation chain: attacker fixes session ID → victim registers → attacker reuses the now-authenticated session.
  • probe — session before/after with the fixation verdict.
  • mitigation — 2.10.11 / 2.11.6 / 2.12.0 / cookie-based sessions workaround.

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

python3 exploit/exploit.py --host=ckan-vuln
# exit 1 on confirmed session fixation, 0 on a safe target

5. Expected results

observationckan-vuln (pre-fix)ckan-fixed (6eae4e9c)
session beforeATTACKER_FIXED_SIDATTACKER_FIXED_SID
session afterATTACKER_FIXED_SID (preserved)REGENERATED_xxxxxxxx
regeneratedfalse (fixation)true

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 cve104773lab network.
  • Real-world exploitation requires CKAN configured with server-side session storage and web registration enabled (ckan.auth.create_user_via_web); the default cookie-based session storage is not affected.

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

The fixed RegisterView.post calls regenerate_session() before login_user(), rotating the session ID on registration so a pre-set attacker session ID cannot survive into the authenticated session. The login() path also uses the same regenerate_session() helper. No fixation path remains on the registration flow (server-side sessions).

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 RegisterView.post (+ helper) from pre-fix / fix
lab/stubs.py          minimal CKAN/Flask stubs + session interface mock
lab/gen.py            assembles the harness from the verbatim method
lab/service.py        HTTP wrapper (POST /register)
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-104773
  • GitHub advisory — https://github.com/ckan/ckan/security/advisories/GHSA-6499-jgj4-2wpf
  • Fix commit — https://github.com/ckan/ckan/commit/6eae4e9c430e163b9d6cc75a3fd2ca82e79d80f6
  • Fixed releases — CKAN 2.10.11 / 2.11.6 / 2.12.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.

    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 →