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
CVE-2026-106173-PoC-Exploit β€” Exploit and safe-verify toolkit for CVE-2026-106173, an unauthenticated FortiSIEM phQueryMaster gRPC file-write-to-root-RCE, with exposure scanning and reporting. | Kitploit
Tools/GitHubGitHub/tc4dy/cve-2026-106173-poc-exploit
Defensive ToolsReconnaissanceVulnerability ScannersPersistence MechanismsExploitationWeb Application ExploitationInformation GatheringPost-Exploitation
Penetration Testing
Red Teaming
Remote Access Tool
GitHubtc4dy/cve-2026-106173-poc-exploit

CVE-2026-106173-PoC-Exploit

Exploit and safe-verify toolkit for CVE-2026-106173, an unauthenticated FortiSIEM phQueryMaster gRPC file-write-to-root-RCE, with exposure scanning and reporting.

View Repository
611 month agoNot yet reviewed
Share

CVEPoC

CVE‑2026‑106173 – FortiSIEM phQueryMaster File Write Toolkit

Python 3.8+ CVSS Author FortiSIEM

ETHICAL USE ONLY – AUTHORIZED SECURITY TESTING
This repository provides tools for authorized security professionals, blue teams, and penetration testers only.
Unauthorized access to computer systems is illegal under CFAA (US), Computer Misuse Act (UK), TCK 243/244 (Turkey), and similar laws worldwide.


Vulnerability Overview

CVE‑2026‑106173 is a critical unauthenticated arbitrary file write vulnerability in Fortinet FortiSIEM 7.5.0 that can be escalated to remote code execution as root via a file-system path traversal and NUL byte injection in the phQueryMaster gRPC service.

How it works

  1. Unauthenticated gRPC access – the phQueryMaster gRPC service binds to [::]:27918 and is configured with GRPC_SSL_DONT_REQUEST_CLIENT_CERTIFICATE. No client certificate is required.
  2. Path traversal – the SendQueryResult RPC handler concatenates the attacker-controlled query-id metadata value directly into a file path (/query/result/<query-id>), allowing ../../ traversal out of the intended directory.
  3. NUL byte injection – because the server preserves the exact length of the client-supplied metadata, a NUL byte (\x00) can be embedded in query-id. The filesystem call truncates at the NUL, giving full control over the final file name (the server-appended result-...-.dat suffix is silently dropped).
  4. File write – the base64/raw content of the file_content protobuf field is written to the attacker-chosen path. Existing file ownership and permissions are preserved.
  5. RCE – /opt/charting/redishb.sh is executed as root by a cron job every 60 seconds. Writing an attacker-controlled shell script to that path (or to /etc/cron.d/fsm-crontab, or phLicenseTool) results in root-level code execution.

Affected Versions

  • FortiSIEM 7.5.0 – vulnerable
  • FortiSIEM 7.4.x – potentially affected, confirm with the vendor advisory
  • FortiSIEM 7.5.1 and later / 7.6+ – patched
  • FortiSIEM Cloud – not affected

Patch

  • Upgrade to FortiSIEM 7.5.1 or later (or 7.6+).
  • If upgrade is not possible, restrict access to TCP/27918 at the network boundary and monitor /opt/charting/redishb.sh and /opt/phoenix/bin/phLicenseTool for modification-time anomalies.
  • Official advisory: FG-IR-26-180

Tools [2]

ToolPurposeIntended User
exploit.pyFull toolkit with multi-primitive RCE, readback (web/callback/none), reverse shell, interactive shell, upload/download with hash verification, credential collection, multi-mechanism persistence, surgical log cleanup, mass scanning, SOCKS5 proxy chaining, Tor, and jitter.Red teams / authorized pentesters
safeverify.pyNon-intrusive exposure checker. Verifies whether TCP/27918 is reachable without a client certificate, performs an HTTP/2 fingerprint, collects version headers, and generates structured reports. Does not perform any file write, path traversal, or NUL byte injection.Blue teams / security auditors

Feature Comparison [</>]

Featureexploit.pysafeverify.py
Exposure detection (gRPC probe)[+][+]
HTTP/2 fingerprint (SETTINGS/DATA/HEADERS/RST/GOAWAY)[+][+]
Version header collection[+][+]
Path traversal + NUL byte file write[+][-]
Multi-primitive RCE (redishb / cron / license / ssh)[+][-]
Readback: web / callback / none[+][-]
Reverse shell (validated connection)[+][-]
Interactive shell (upload/download, SHA-256)[+][-]
Credential collection[+][-]
Multi-mechanism persistence (systemd + cron + SSH)[+][-]
Surgical log cleanup[+][-]
SOCKS5 proxy / proxy chain[+][+]
Tor support[+][+]
Jitter (OPSEC)[+][+]
CIDR expansion[+][+]
Mass scanning (async, rate-limited)[+][+]
JSON / JSONL / CSV output[+][+]
Dry-run preview[+][+]
Non-intrusive (safe) mode[-][+]

Use Case Summary

ScenarioRecommended Tool
Blue Team – verifying if FortiSIEM exposes TCP/27918safeverify.py
Security Audit – non-intrusive exposure assessmentsafeverify.py
Red Team – authorized penetration testing with full exploitationexploit.py
Bug Bounty – responsible disclosure testingsafeverify.py
Mass Scanning – checking multiple FortiSIEM instancesexploit.py (or safeverify.py for detection only)
Incident Response – checking if systems are compromisedsafeverify.py + manual review of redishb.sh mtime

Installation [<>]

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

Note: requirements.txt is intentionally empty btw, no requests, no h2, no impacket. Both tools use only the Python standard library (asyncio, ssl, socket, struct, json, csv, ipaddress). if you still want isolation, use a virtualenv as shown above.


Parameters [/]

exploit.py Parameters

ParameterDescription
-t, --targetTarget IP, hostname, or CIDR (e.g. 10.0.0.5, 10.0.0.0/24)
-l, --listFile containing targets (one per line) for mass scanning
-p, --portgRPC port (default: 27918)
--plaintextUse plaintext HTTP/2 (prior knowledge, no TLS)
--timeoutConnection/read timeout in seconds (default: 8.0)
-c, --cmdExecute a single command and print the output
--shellInteractive shell with upload / download
--revshellOpen a reverse shell (requires --lhost / --lport)
--scanDetection + version header collection only
--primitiveauto / redishb / cron / license / ssh
--readbackweb / callback / none
--lhostListener IP for reverse shell / callback
--lportListener port (default: 4444)
--proxySingle SOCKS5 proxy (e.g. socks5://127.0.0.1:1080)
--proxy-fileFile with SOCKS5 proxies (rotated per request)
--torRoute through Tor (socks5://127.0.0.1:9050)
--jitterMIN-MAX seconds between requests (default: 0-3)
--credsCollect credentials from config files and phLicenseTool
--persistMulti-mechanism persistence (systemd + cron + SSH)
--cleanupSurgical log cleanup (pattern-based)
--rate-limitRequests per second (default: 10.0)
--retriesRetries per write attempt (default: 2)
-o, --outputSave results to .json, .jsonl, or .csv
-v, --verboseVerbose output (repeat for more detail)
-q, --quietSuppress non-error output
--dry-runBuild the request and preview it without sending
--no-colorDisable ANSI colors

safeverify.py Parameters

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 β†’