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-lz4java-tmp-native-lib-predictable-name-model
Privilege EscalationStatic AnalysisVulnerability AnalysisExploitationSecurity VirtualizationPapers & ResearchLearning & EducationLabs & Practice
Share
GitHub
federiconbaez/cortex9-lz4java-tmp-native-lib-predictable-name-model

cortex9-lz4java-tmp-native-lib-predictable-name-model

Offline educational model of CVE-2026-106451 (lz4-java predictable tmp native library name)

View Repository
14 days agoNot yet reviewed

cortex9-lz4java-tmp-native-lib-predictable-name-model

Offline, inert model of CVE-2026-106451 (GHSA-mcr4-qmvw-px4g, CWE-367 / CWE-377). When no system liblz4-java is found, lz4-java's Native.load() extracts the bundled JNI library to java.io.tmpdir and System.loads it. Up to 1.11.3 only a .lck file got a random, exclusively created name; the library path was that name minus .lck (diff L47-48), nothing reserved it, and new FileOutputStream (L53) opened it with O_CREAT|O_TRUNC, following symlinks. Another local user sharing the temp directory could create it first. The fix, commit 7a48b7f6b8099b9dab6541e4ac2ee0979dc55aa3 (in 1.11.4), creates the library itself with File.createTempFile (L51) and replaces the .lck check in the cleanup with a one-hour age (L10, L35). Verification: evidence/verification.md.

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

The model

  • src/c9lz4/simfs.py: one temp directory in a Python dict: exclusive create, O_CREAT|O_TRUNC opens that follow symlinks, unlink, the sticky bit, and fs.protected_regular / fs.protected_symlinks, which act only in world-writable sticky directories.
  • src/c9lz4/native.py: load() pre (L47-48, L53, L56) and post (L51), with the other user's strategies from the GHSA (plant a file or a symlink at the .lck stem), and cleanup() pre (L25, L32-33) and post (L10, L26, L35).
  • Nothing touches a real directory and no library is loaded; tests patch open, os.open, os.symlink, os.unlink and os.remove to fail and check the source AST for loader and filesystem APIs.

Differential evidence (results/summary.csv)

Classnprepost
pos64 ATTACKER_CODE_LOADED, 2 DOS_FALLBACK6 LOADED_BUNDLED
neg3LOADED_BUNDLEDLOADED_BUNDLED
observation1ATTACKER_CODE_LOADEDATTACKER_CODE_LOADED

The positives follow the GHSA's host conditions: protected_regular = 0 (p01), no sticky bit (p02), a symlink with protected_symlinks = 0 (p03); protected_regular >= 1 (p04) and protected_symlinks = 1 (p05) turn it into a denial of service (the Java fallback). p06: pre never checks that the stem is free, so a file planted in advance at the right name is reused; post's exclusive create retries instead. o01 is a model observation, not verified: in a world-writable directory without the sticky bit, any user may unlink and replace any file between write and System.load, so the fix alone does not help there (the GHSA's workaround, a private java.io.tmpdir, does). results/cleanup.csv reproduces NativeTest (L211-216) and shows that pre deleted a fresh library without a .lck.

Run

(cd sources && sha256sum -c SHA256SUMS)
PYTHONPATH=src python3 -m unittest discover -s tests -v
python3 scripts/derive_expected.py | diff - fixtures/expected.tsv
python3 scripts/gen_results.py /tmp/r && diff -r results /tmp/r

fixtures/expected.tsv comes from scripts/derive_expected.py, an independent decision table built from the GHSA's conditions; it does not import src/. Python 3.10+ standard library only.

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.

    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 →