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/federiconbaez/cortex9-seroval-node-id-type-confusion-model
Static AnalysisVulnerability AnalysisCode AnalysisExploitationPapers & ResearchLearning & EducationLabs & Practice
GitHub
federiconbaez/cortex9-seroval-node-id-type-confusion-model

cortex9-seroval-node-id-type-confusion-model

Offline educational model of CVE-2026-116580 (seroval node-id type confusion)

View Repository
12 days agoNot yet reviewed
Share

cortex9-seroval-node-id-type-confusion-model

Offline, inert model of CVE-2026-116580 (GHSA-7rv5-mrxv-xcr9, CWE-502): seroval's fromJSON rebuilt an (async) iterator from a source node and, in 1.6.5-1.6.7, validated the type recorded for the source's id instead of the value itself. In vanilla mode an id missing from m is not tracked and can be reused, so a plain object or a plugin value could sit behind an id marked as a Sequence or Stream, and its on was called. Fixed in seroval 1.6.8 by commits 3edc78b495ea0d6bd498143e5b3e56996607c5f2 (class identity instead of marker keys) and 50926b3ee198fb757e6ce3aa70efeed38d931c8d (check the value with isSequence / isStream).

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

The model

src/model.js is not seroval code. It is a reduced deserializer over a small node format of its own (num, str, ref, obj, seq, stream, plugin, iter, aiter) with three versions side by side:

VersionSource checkFrom
v163none beyond truthinessadvisory text ("up to 1.6.3 accept any value"), no diff
pre (1.6.5-1.6.7)validateNodeType on the id's recorded type50926b3e:L38 / 50926b3e:L60 (removed), mark set at 50926b3e:L78-79
post (1.6.8)instanceof on the value50926b3e:L43 / 50926b3e:L66 (added), classes 3edc78b4:L31-46, 3edc78b4:L95-181

The only sink is a counter: a plugin node returns an object whose on increments foreignCalls. Nothing is evaluated; there is no network, file or child-process access (checked by test/adversarial.test.js).

A second, smaller axis models 3edc78b's serializer identity check: an object carrying the __SEROVAL_SEQUENCE__ / __SEROVAL_STREAM__ key was trusted as internal before (3edc78b4:L44, 3edc78b4:L179) and is a plain object after (3edc78b4:L45, 3edc78b4:L180). The model only classifies; it never emits code.

Differential evidence (results/summary.csv)

versionpositive graphsforeign on callsforged sequence acceptedrejectednegatives OK
v16343104/4
pre42114/4
post40044/4

p02 (plugin value reusing a Stream id) is the core case: pre calls the foreign on (rule 50926b3e:L60-69), post stops with MALFORMED_NODE (50926b3e:L66-68). c01 shows the same reuse is refused when the id is listed in m (REUSED_ID_REJECTED).

Line citations

Every line citation has the form <tag>:L<n> or <tag>:L<n>-<m>: the real cat -n line(s) of the saved diff copied into sources/:

  • 50926b3e → sources/CVE-2026-116580_seroval_50926b3ee198.diff (SHA-256 27fff3e88fc2c5bbad939dcee6b5ad967a8074463e838f26b12942139b14ddd9)
  • 3edc78b4 → sources/CVE-2026-116580_seroval_3edc78b495ea.diff (SHA-256 f636af8ea11444a2ab9c93c367f2c502ec26509369d057b7946e2d3ba30917ad)

All cited ranges and the text each must contain are in citations.tsv; test/citations.test.js checks the SHA-256, the text of every range, and that no citation in the repo is missing from the table or lacks a tag.

Optionally, C9_DIFF=<diff>[:<diff>] (a fresh download of the upstream commit diff) is checked to be byte-identical to the in-repo copy: C9_DIFF=/tmp/x.diff node --test test/citations.test.js. Without it that one check is reported as an explicit skip; the in-repo copies are always checked. License notice of the copies: sources/README.md, sources/UPSTREAM-LICENSE.

Run

node --test test/*.test.js
python3 scripts/derive_expected.py | diff - fixtures/expected.tsv
node scripts/gen_results.js /tmp/r && diff -r results /tmp/r

fixtures/expected.tsv comes from scripts/derive_expected.py, an independent Python implementation that does not read src/. The model, the hand labels in fixtures/cases.json and the derivation must agree. Node 20+ and Python 3.10+, no packages.

A model is not a finding. 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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    627
  • 3

    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.

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

    379
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    330
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    AI powered OSINT engine to discover and map 7,700+ social media identities across the web

    288

Explore all tools

Browse our collection of tools

View all tools →