
Detection-only check for the Ivanti Connect Secure authentication bypass (CVE-2026-104935)
Unauthenticated detection for the Ivanti Connect Secure authentication bypass, CVE-2026-104935. Point it at an appliance you are allowed to test and it tells you whether the bypass works against that host. Detection only.
Ivanti disclosed CVE-2026-104935 on 13 October 2026, confirming it was already
being exploited in the wild. welcome.cgi on Connect Secure is reachable
without authentication. The appliance decides whether a request is permitted
from its URL path, but it honours an X-DSCGI-PATH header to choose the CGI
that actually handles the request. Sending the public welcome.cgi an
X-DSCGI-PATH that points at an authenticated handler such as wu.cgi reaches
that handler with no credentials. In the intrusions Volexity documented, this
bypass was chained with a file-write race in wu.cgi and a local
privilege-escalation bug to reach unauthenticated root and steal domain
credentials.
CISA added it to the Known Exploited Vulnerabilities catalog the same day, tracked as "Ivanti Connect Secure Authentication Bypass by Spoofing Vulnerability" (CWE-290). Affected releases are 25.1.1.1 and earlier, 25.1.2.2 and earlier, and 22.8R2.4 and earlier. If you run any of those, move to a fixed build from Ivanti's advisory before anything else.
Two requests, nothing written to the target:
GET / to confirm the host is Connect Secure / Pulse Secure and to read the
url_<realm>/welcome.cgi path out of the login page. If no realm path is
found it falls back to /dana-na/auth/url_default/welcome.cgi.GET that welcome.cgi with
X-DSCGI-PATH: /home/webserver/htdocs/dana/fb/smb/wu.cgi. If the protected
upload page comes back (HTTP 200 carrying the wu.cgi upload markers) the
bypass succeeded and the host is vulnerable.It stops at detection. There is no file write, no privilege escalation, no code execution, and no bulk or host-discovery mode. One target per run.
Python 3.8 or newer and requests:
pip install requests
python3 check_cve_2026_104935.py https://vpn.example.com
A bare hostname is accepted and assumed to be HTTPS. TLS verification is off by
default because these appliances usually ship self-signed certificates; pass
--verify-tls to turn it back on. --timeout sets the per-request timeout in
seconds (default 15).
Result is printed and also reflected in the exit code, so it is easy to wire into other tooling:
| Exit | Meaning |
|---|---|
| 0 | Not detected. The bypass did not reach wu.cgi; looks patched. |
| 2 | Vulnerable. The bypass reached the protected upload page. |
| 3 | Host does not look like Ivanti Connect Secure / Pulse Secure. |
| 4 | Error, or the target could not be reached. |
The second request is the bypass itself, so a positive result means the flaw was exercised against the host, not merely observed. Run this only against systems you own or have written permission to test. Using it against other people's appliances is very likely illegal.