SessTrace

Evidence-first replay checks for the withdrawal of session authority.

License: MIT Python 3.7+ Dependencies: none Tests: 148 passing Release: v3.2.0

View on GitHub Download v3.2.0 Read the method

What it checks

SessTrace checks one property of software that issues sessions or tokens: after the authority behind a credential has been withdrawn, a copy of that credential must stop working. The withdrawal can be a logout, the end of a configured lifetime, a password change, a disabled account or a deleted grant.

It does this by replay. A plan logs a user in, copies the credential, lets the event happen, presents the copy again and records what came back. The same plan is run against selected pinned affected and repaired revisions. The expected outcome of every step is written down and hashed before the first request is sent.

SessTrace replay pipeline: specify, freeze, run, evaluate, audit, verdict

At a glance

16

synthetic scenarios

Eight mechanisms, each in a vulnerable and a fixed variant · 399 recorded HTTP steps, reproduced byte for byte.

23

checks on public software

Eight real projects at an affected and a repaired revision · 250 valid runs, 22 as written down before the run.

0

dependencies

Pure Python 3.7+, standard library only. 148 tests. No network needed to re-read the archived records.

7

credential flips

In seven checks the copied credential still works before the repair and is refused after it — the behaviour the fix changes.

Three parts

Laboratory

Eight synthetic mechanisms (M1–M8) on loopback HTTP, each vulnerable and fixed. sesstrace lab run, sesstrace lab verify.

Replay engine

Driver, evaluator and audit for plans run against real software. run · evaluate · audit · compare · merge.

Checks

Eight public targets, their frozen specifications and the records of 262 attempts (250 valid runs). Recompute them without contacting a target.

Checks on public software

Each target is tested at a pinned affected and repaired revision associated with one published CVE. These are observations on named old releases under one configuration each, not statements about current versions and not a detection rate.

TargetLanguageRevisionsCVE
T1@fastify/sessionJavaScript8b6241c, 0495ce5CVE-2024-35220
T2@fastify/secure-sessionJavaScript7b6eebe, 56d6664CVE-2024-31999
T3aiohttp-sessionPythonfaadf10, 1b356f0CVE-2018-1000814
T4rack-sessionRubyc837aff, c28c4a8CVE-2025-46336
T5VikunjaGo2.2.2, 2.3.0CVE-2026-35594
T6FUXAJavaScript1.3.2, 1.3.3CVE-2026-65984
T7DirectusTypeScript10.10.7, 10.11.0CVE-2024-34709
T8KanboardPHP1.2.42, 1.2.43CVE-2024-55603

Quick start

No installation is needed for the tests, the laboratory or re-reading the archived records.

git clone https://github.com/abdullahzarshaid/sesstrace
cd sesstrace

python -m unittest                        # the whole test suite, no installation
PYTHONPATH=src python -m sesstrace lab verify   # reproduce the synthetic traces
Running the public-software container checks is a separate operation on a Linux machine with a container engine, in a disposable sandbox only. See checks/README.md and the safety notes.