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-echo-static-encoded-segment-bypass-model — Offline educational model of CVE-2026-118650 (Echo Static encoded-segment middleware bypass) | Kitploit
Tools/GitHubGitHub/federiconbaez/cortex9-echo-static-encoded-segment-bypass-model
Vulnerability AnalysisCode AnalysisWeb Application ExploitationWeb SecurityPenetration TestingPapers & ResearchLearning & EducationLabs & Practice
GitHubfedericonbaez/cortex9-echo-static-encoded-segment-bypass-model

cortex9-echo-static-encoded-segment-bypass-model

Offline educational model of CVE-2026-118650 (Echo Static encoded-segment middleware bypass)

11 days agoNot yet reviewed
View Repository

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)

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

    376
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

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

    323
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    321

Explore all tools

Browse our collection of tools

View all tools →
Share

cortex9-echo-static-encoded-segment-bypass-model

Offline model of CVE-2026-118650 (GHSA-375p-5qhx-8wq4): Echo's middleware.Static resolves the file from the decoded URL.Path while the router matches the still-encoded path, so /admin%2Fsecret.txt skips an /admin route guard and still reaches admin/secret.txt under the static root. Before (pre) and after (post) the fix in labstack/echo b838391 (v4.16.0) and fc41009 (v5.4.0). Educational, deterministic, Go standard library only. No Echo code is imported or run, no socket is opened.

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

Scope

Both commits are merges that fix several advisories at once (scheme, JSONP, MethodOverride, redirects, IP extraction). This model only covers the file-selection hunk of middleware/static.go. That hunk fixes two advisories, and the model keeps them apart:

  • GHSA-375p-5qhx-8wq4 (this CVE): resolve the file from RawPath when it is set, the form the router matched (diff:1216-1224, v5diff:1309-1317).
  • GHSA-3pmx-cf9f-34xr (related, same hunk): do not serve paths with ., .. or empty segments, before and after unescaping (diff:1225-1238, 1246-1252, 1261-1286).

diff:N is line N of the v4 diff, v5diff:N of the v5 diff (SOURCES.md).

What is modelled

  • The request-target is parsed with url.ParseRequestURI, which sets Path and RawPath the way net/http does.
  • Router form: RawPath if set, else Path (diff:1218-1219, 1278-1279).
  • Three layouts: global (e.Use(Static) and an /admin group with GET /*, diff:1328-1337); route (Static as middleware of GET /*, diff:1380-1392); global-exact (the GHSA PoC: /admin group with GET /secret.txt). In global layouts Static runs before route and group middleware (diff:1206-1208, v5diff:1299-1301).
  • Static root: the union of the diff's test filesystems (diff:1301-1306, 1355-1359).

Labels: MISMATCH (a file under admin/ is served for a router form outside /admin), ORDER_BYPASS (served although the router matched the guarded route), SERVED, DENIED_403, NOT_FOUND_404, ERROR_500, BAD_INPUT.

What it shows (differential evidence)

Caseprepost
g01 global, /admin%2Fsecret.txtMISMATCH: looks up admin/secret.txt from URL.Path (diff:1216)404: looks up admin%2Fsecret.txt from RawPath (diff:1222-1224)
g03 global, /%61dmin/secret.txtMISMATCH404
g06 global, /public/../admin/secret.txt (GHSA-3pmx)MISMATCH404, unclean (diff:1227, 1248-1249)
r03 route, /admin%2Fsecret.txt404: the wildcard param is already the router form404
a02 route, /admin%2Fsecret.txt, EnablePathUnescapingMISMATCHMISMATCH: documented, not fixed (diff:44, 1184-1185)
x01 GHSA PoC layout, literal /admin/secret.txtORDER_BYPASSORDER_BYPASS (diff:1206-1208)

All 19 post-fix statuses of the diff's own tests (diff:1314-1323, 1367-1375) are reproduced. Fixed sweep (results/sweep.csv, 784 targets × 3 layouts × unescaping on/off): 90 MISMATCH before the fix (37 with unescaping off), 13 after. All 13 need EnablePathUnescaping and an encoded %2F or letter, with no dot or empty segment. No post-fix result serves an admin/ file that pre did not.

Unverified, not a finding: in the PoC layout, the model serves the literal path too, because global Static runs before the group guard (as the fix's own docstring says). The GHSA PoC reports 401 for that request, and NVD says the source is internally inconsistent on this point. The model does not settle it. See LIMITATIONS.md.

Run

sh scripts/build.sh test                                # gofmt, vet, tests
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
./build/staticmodel case pre '/admin%2Fsecret.txt' global 0

fixtures/expected.tsv and the sweep are derived independently in Python (scripts/derive_expected.py). It re-implements the URL parsing, segment checks and router lookup without reading the Go model, and the Go tests compare against it.

License: Apache-2.0.

Download Tool