Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
oauth-sink-check — Trace untrusted OAuth endpoint URLs from source to shell sink — the CVE-2026-119025 attack class, checked in your code, lockfile and MCP configs. | Kitploit
도구/GitHubGitHub/shouvikkkk/oauth-sink-check
Static AnalysisVulnerability AnalysisCode AnalysisShellcodeWeb SecurityDevSecOpsSupply Chain Security
GitHubshouvikkkk/oauth-sink-check

oauth-sink-check

Trace untrusted OAuth endpoint URLs from source to shell sink — the CVE-2026-119025 attack class, checked in your code, lockfile and MCP configs.

저장소 보기
22일 전아직 검토되지 않음
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

oauth-sink-check

Trace your code from an untrusted OAuth/endpoint URL source to a shell or browser-open sink, simulate whether a PowerShell payload survives the quoting used, and check your lockfile and MCP configs — for the attack class behind CVE-2026-119025.

Stdlib only. No dependencies. This tool never executes payloads; it only inspects strings.

The problem

On 19 October 2026, Pillar Security disclosed that OpenCode 1.0.137–1.18.32 on Windows/WSL let an attacker-controlled remote MCP server execute arbitrary code during MCP OAuth sign-in. The chain:

server's discovery document → MCP SDK → oauth-provider.ts → mcp/index.ts → browser.ts → open() → PowerShell.

The server-supplied authorization_endpoint URL went unescaped into PowerShell. PowerShell expands $(…) inside double-quoted strings, so a well-formed https URL carrying a subexpression ran as code. Pillar's example payload:

https://evil.test/$([IO.File]::WriteAllText('C:\Users\Public\pwned.txt','RCE'))

The fix landed in OpenCode 1.18.33 (the open package's 11.0.4 plus http/https scheme checks); the vendor said malicious MCP servers were "outside their threat model". Pillar proposed CVSS 9.8.

On 29 October 2026, CVE-2026-119025 was published: the open npm package 7.2.0 before 11.0.0 allows OS command injection via crafted URLs on Windows/WSL (CWE-78, CVSS 7.5). Affected consumers include MCP Inspector before 2.12.0 (GHSA-q978-78c7-phqw) and OpenCode before 1.18.33. open 11.0.0 fixed the escaping (2025-11-15) with no security wording, so ^10 pins kept the vulnerable version for most of a year; mcp-remote 0.15.2 still declares ^10.1.0.

The gap this fills

  • npm audit / CVE feeds flag vulnerable versions only — they say nothing about whether your code actually passes an untrusted URL to a sink.
  • Generic SAST misses PowerShell quoting semantics: the payload is not a weird string, it is a valid https URL.
  • Scheme allowlists (https-only) do NOT stop it — the payload rides inside a valid https URL. An https check is necessary but not sufficient; the URL must also be encoded/escaped before it reaches a shell.

No dedicated tool traced your code from untrusted OAuth/endpoint URL source → string interpolation → shell/browser-open sink, simulated whether the payload survives the quoting used, and checked your lockfile and MCP configs. This is that tool.

Setup

Requires Python 3.9+. No third-party dependencies — there is no requirements.txt because there is nothing to install.

git clone https://github.com/shouvikkkk/oauth-sink-check.git
cd oauth-sink-check
python -m oauth_sink_check scan ./your-project
# or, after pip install . :
oauth-sink-check scan ./your-project

Usage

oauth-sink-check scan <path> [--format text|json] [--strict]
  • scan accepts a file or a directory (directories are walked recursively, skipping node_modules, .git, __pycache__).
  • --format json emits a machine-readable report.
  • --strict makes LOW findings exit 1 as well.

Exit codes (exact scheme)

CodeMeaning
0Clean, or LOW findings only
1At least one MEDIUM finding, none higher (with --strict, LOW also exits 1)
2At least one CRITICAL or HIGH finding
3Usage error (missing/unreadable path, bad arguments)

Severities

SeverityMeaning
CRITICALTainted URL reaches a shell sink and a $(…) payload survives its quoting simulation
HIGHVulnerable open pin (CVE-2026-119025 range 7.2.0–<11.0.0), affected consumer version (opencode < 1.18.33, inspector < 2.12.0), or a literal $(…)/backtick payload in an MCP config
MEDIUMUnvalidated URL reaches a browser-open sink; tainted URL reaches a sink whose quoting neutralises the payload; remote MCP server with auth but no pinned client version info
LOWInformational — e.g. unpinned lockfile entry, open version predating the CVE range (unknown/legacy, not confirmed vulnerable), remote MCP server without auth

Example output

Scanning examples/vulnerable (exit code 2):

oauth-sink-check: examples/vulnerable

Findings: 1 CRITICAL, 1 HIGH

[CRITICAL] client.js:13 tainted-shell-sink
  Tainted authorization_endpoint URL reaches shell sink open and a
  $(...) payload survives its double-quoted PowerShell embedding
  ($(...) subexpression expands inside a double-quoted / unquoted
  PowerShell string).
  chain: authorization_endpoint (line 9) -> authUrl -> open sink (line 13)
  evidence: await open(authUrl);
[HIGH] package.json:0 vulnerable-dependency
  open 10.1.2 is in the CVE-2026-119025 vulnerable range 7.2.0-<11.0.0
  evidence: declared=^10.1.0 resolved=10.1.2 source=package-lock.json

Scanning examples/clean exits 0: it pins open 11.0.4 and allowlists https plus encodeURIComponent before open().

What it checks

ModuleWhat it does
sources.pyUntrusted URL sources: OAuth fields (authorization_endpoint, token_endpoint, issuer, redirect_uri, authorization_server, registration_endpoint, …), MCP discovery fields, config values. JS/TS + Python.
taint.pyIntra-file taint: sources → variables → template literals, f-strings, + concatenation, .format(), % formatting, simple same-file function args/returns. Reports source→sink chains with file:line.
sinks.pyJS/TS: open(), exec/execSync, spawn with shell:true, PowerShell invocations. Python: os.system, subprocess with shell=True, os.popen. webbrowser.open is a lower-severity browser sink, never conflated with shell sinks.
powershell.pyQuoting simulator: double-quoted, single-quoted, -EncodedCommand (base64-decoded, then re-checked), unquoted. Models the vulnerable open < 11 behaviour: URL unescaped inside a double-quoted PowerShell string → $(…) executes.
lockfiles.pypackage.json + package-lock.json (accurate), yarn.lock and pnpm-lock.yaml (best-effort regex). open < 11.0.0 flagged vulnerable only inside 7.2.0–<11.0.0; below 7.2.0 is unknown/legacy, not vulnerable. Small semver range resolver for ^, ~, >=, <, `
mcpconfig.py.mcp.json / mcp.json / opencode.json / .cursor/mcp.json: remote servers, literal $(…)/backtick payloads in authorization_endpoint/issuer, auth-without-pinned-client-version.
report.pyText + JSON reports, severity-gated exit codes.

Differentiation

ToolWhat it misses that this catches
npm audit / CVE feedsWhether your code actually routes an untrusted URL into a sink; your MCP configs
Generic SASTPowerShell quoting semantics — $(…) inside a valid https URL
Scheme allowlistsThe payload is a valid https URL; https-only does not stop it

Honest limitations

도구 다운로드

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 궁극의 OSINT 툴킷: 조사 그래프, 신뢰도 점수 산정, 별칭 패밀리, 지도, 타임라인 및 보고서. 49개 모듈, 400개 이상 사이트, API 키 불필요.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # GhostLock 원탭 실행 앱 (CVE-2026-43499)

    627
  • 3

    looking-glass

    anonghosty/looking-glass

    Shadowserver 보고서를 MongoDB로 수집하고 이를 대화형 지도, 분석, 발견 사항, 권고 및 경영진 대시보드로 재생하는 CSIRT 플랫폼입니다.

    416
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer는 오픈소스 권한 접근 관리(PAM) 플랫폼으로, DevOps 및 IT 팀이 웹 브라우저를 통해 SSH, RDP, Kubernetes, 데이터베이스 및 RemoteApp 엔드포인트에 주문형 보안 액세스를 제공합니다.

    379
  • 5

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    330
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    웹 전반에서 7,700개 이상의 소셜 미디어 신원을 발견하고 매핑하는 AI 기반 OSINT 엔진

    288

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →