Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-129359 — Proof-of-concept lab for CVE-2026-129359: demonstrates Magma orc8r gRPC authentication bypass via the hardcoded client cert serial constant, with vuln/fixed containers and a Python PoC. | Kitploit
工具/GitHubGitHub/googlesky/cve-2026-129359
Vulnerability AnalysisExploitationWeb Application ExploitationSecurity VirtualizationNetwork SecurityPenetration TestingAuthenticationLabs & Practice
GitHubgooglesky/cve-2026-129359

CVE-2026-129359

Proof-of-concept lab for CVE-2026-129359: demonstrates Magma orc8r gRPC authentication bypass via the hardcoded client cert serial constant, with vuln/fixed containers and a Python PoC.

2026年11月19日尚未审核
查看仓库网站
分享
内容在请求的语言中不可用。显示英文版本。

CVE-2026-129359 — Magma orc8r: the hardcoded inter-service credential 7ZZXAF7CAETF241KL22B8YRR7B5UF401 authenticates any gRPC caller as a trusted internal cloud service

License: MIT Research status: validated

CVECVE-2026-129359
ComponentLinux Foundation Magma orc8r — orc8r/lib/go/registry/interceptors.go (the constant) and orc8r/cloud/go/service/middleware/unary/identity_decorator.go (the accepting check)
AffectedMagma ≤ 1.9.0 (the constant and the accepting branch are unchanged in master)
Fixed innothing upstream at the time of this laboratory; the fixed side here is a hash-checked one-line synthetic remediation (documented as such)
CWECWE-798 (Use of Hard-coded Credentials)
ImpactAuthentication bypass at the orc8r gRPC tier: any network client that can reach an orchestrator service port and knows the public constant is treated as a trusted internal cloud call — the same trust level as an in-cluster service, with no certificate, no identity, and no lookup
VectorNetwork — a gRPC call carrying x-magma-client-cert-serial: 7ZZXAF7CAETF241KL22B8YRR7B5UF401
Triggerthe exact constant; every other serial goes through the real certifier lookup and is rejected when unknown

Magma's cloud services authenticate each other with a shared secret that was never secret: the constant ORC8R_CLIENT_CERT_VALUE = "7ZZXAF7CAETF241KL22B8YRR7B5UF401" ships in the public source, is attached by internal clients to every inter-service call, and — on the server side — is accepted verbatim with zero verification:

// orc8r/lib/go/registry/interceptors.go
ORC8R_CLIENT_CERT_VALUE = "7ZZXAF7CAETF241KL22B8YRR7B5UF401"   // public since 2020

// orc8r/cloud/go/service/middleware/unary/identity_decorator.go
func findIdentityFromUniqueCSN(ctx context.Context, sn string, ...) {
    if sn == registry.ORC8R_CLIENT_CERT_VALUE {
        return newCtx, nil        // trusted internal cloud call — no lookup
    }
    ...                          // every other serial: real certifier lookup

This laboratory mounts the real magma identity interceptor (release tag v1.9.0) in front of a real gRPC service and proves both directions: the public constant is accepted as an internal cloud call, while an unknown serial is rejected through the real lookup path. The remediated side carries a one-line synthetic patch (the magic serial goes through the same lookup) because no upstream fix exists; the advisory is public.


1. Root cause

Internal orc8r clients stamp their gRPC metadata with the constant (outgoingCloudClientCtx in interceptors.go). The universal server interceptor resolves caller identity from the same metadata (SetIdentityFromContext → findIdentityFromCSNList → findIdentityFromUniqueCSN), where the constant short-circuits before any certificate verification:

if sn == registry.ORC8R_CLIENT_CERT_VALUE {
    return newCtx, nil      // ← accepted, identity-less, trusted
}
gwIdentity, certExpTime, err = findGatewayIdentity(ctx, sn, ctxMetadata)

The design assumes only in-cluster services know the value — but the value is in the public repository (since commit e56a45b, 2020-12-22, "Fix intra cloud magic cert SN set logic"). Any caller that can reach an orchestrator gRPC port obtains internal-cloud trust by sending the string. The flaw is compositional: a hardcoded credential treated as an unforgeable capability.

2. Reproduction environment

serviceimagerole
magma-vulncve-2026-129359:vulnMagma v1.9.0 as released; the real interceptor in front of a real gRPC health service
magma-fixedcve-2026-129359:fixedthe same tree with lab/patch-fixed.py applied (hash-checked precondition): the magic serial no longer short-circuits
poccve-2026-129359-poc:localstdlib-only Python driver

The harness (lab/harness/main.go) is a Go program that links the real orc8r/cloud/go/service/middleware/unary package (via the upstream consumer-module replace pattern, grpc pinned to the magma-era version) and adapts its legacy interceptor signature onto a modern gRPC server. An HTTP endpoint /probe?sn=… performs a gRPC call carrying that serial and reports whether the real interceptor accepted it, what error the real lookup path produced, and what identity the handler context carried. No certifier, database, or serf is needed: the magic-serial branch short-circuits before all of them (verified — that is precisely the bug), and the unknown-serial branch fails through the real lookup path exactly as in production.

3. Running the environment

./run-lab.sh build     # fetches magma v1.9.0, builds vuln + fixed harnesses
./run-lab.sh up        # cve129359lab network, magma-vuln, magma-fixed
./run-lab.sh sweep     # check / exploit / probe / mitigation on both sides
./run-lab.sh down

Single mode against one side:

podman run --rm --network cve129359lab cve-2026-129359-poc:local \
    exploit --host=magma-vuln

4. The PoC

A standalone full-chain exploit script ships at exploit/exploit.py (python3 exploit/exploit.py; exit 1 on confirmed exploitation, 0 on a safe target).

poc/poc.py (stdlib only):

  • check — one call with the public constant and one with an unknown serial; classification by acceptance asymmetry. Exit 1 vulnerable, 0 safe, 3 no worker, 2 unreachable.
  • exploit — authenticates with the constant, then a control matrix: unknown, lowercased, suffixed, and empty serials (all rejected) — proving the bypass is the exact public string.
  • probe — serial-shape matrix: magic, unknown, gateway-style, empty, 200-byte, spaced.
  • mitigation — no upstream fix; the fixed container is the form a fix takes; deployment mitigation is network isolation of orchestrator gRPC ports.

5. Expected results

runmagma-vuln (v1.9.0)magma-fixed (synthetic)
check unknown serialrejected — PermissionDenied: Unknown Client Certificaterejected (same)
check magic constantaccepted, status SERVING, identity "none (internal/trusted cloud call)"rejected like an unknown serial
exploit mutated serials (lowercase/suffix/empty)rejectedrejected
probe gateway-style / 200-byte / spacedrejected through the real lookuprejected
/info magic_sn7ZZXAF7CAETF241KL22B8YRR7B5UF401 (from the running binary)same

Captured runs: evidence/check-*-run.txt, evidence/exploit-*-run.txt, evidence/probe-*-run.txt, evidence/mitigation-*-run.txt, evidence/versions.txt, evidence/0day-sweep.txt.

6. Environment preconditions

  • Podman (or Docker) with network-creation rights; containers bounded on the isolated cve129359lab network.
  • Outbound HTTPS at image build (GitHub: magma tag v1.9.0; Go module proxy).

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

The serial-shape matrix is the surface sweep (evidence/0day-sweep.txt): on the shipped build only the exact constant is accepted — every mutated form is rejected through the real certifier lookup — and on the remediated build every form, including the constant, is rejected. No second bypass form was found. The sibling header-trust issue in the HTTP tier (X-Magma-Client-Cert-Serial → operator identity) is CVE-2026-129360.

8. Repository layout

下载工具

相关工具

  • nuclei

    基于 YAML 的快速漏洞扫描器,采用模板驱动的检测引擎,可对 Web 应用、API、网络、DNS 和云基础设施进行自动化安全测试。

  • zaproxy

    开源Web应用安全扫描器,支持自动化漏洞检测、手动渗透测试和API安全测试,并内置基于代理的拦截引擎。

  • openvas-scanner

    该仓库包含 Greenbone Community Edition 的扫描器组件。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    2.3k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    849
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    450
  • 4

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    383
  • 5

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    351
  • 6

    faraday

    infobyte/faraday

    面向攻击性安全、漏洞管理和自主渗透测试的开源及AI驱动的网络安全工具。由拉丁美洲的黑客构建,供全球使用。

    345

探索所有工具

浏览我们的工具集合

查看所有工具 →