Skip to main content
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

FortiCloud SSO authentication bypass in FortiOS/FortiProxy/FortiSwitchManager via crafted SAML response

IdentifiersCVE-2025-59718CWE-347· Improper Verification of…

CVE-2025-59718 is an improper verification of cryptographic signature vulnerability in Fortinet FortiOS, FortiProxy, and FortiSwitchManager that allows an unauthenticated attacker to bypass FortiCloud SSO login authentication by sending a crafted SAML response message. The issue affects FortiOS 7.6.0 through 7.6.3, 7.4.0 through 7.4.8, 7.2.0 through 7.2.11, and 7.0.0 through 7.0.17; FortiProxy 7.6.0 through 7.6.3, 7.4.0 through 7.4.10, 7.2.0 through 7.2.14, and 7.0.0 through 7.0.21; and FortiSwitchManager 7.2.0 through 7.2.6 and 7.0.0 through 7.0.5. The flaw is in signature verification within the SAML-based FortiCloud SSO authentication flow, enabling acceptance of attacker-crafted assertions/responses without proper cryptographic validation.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows bypass of administrative authentication controls for FortiCloud SSO and can result in unauthorized administrative access to affected devices. Reported post-compromise activity includes successful admin SSO logins, export/download of device configuration through the GUI, creation of secondary administrative or local accounts for persistence, enabling SSL VPN or granting VPN access to attacker-created accounts, firewall policy/configuration changes, and subsequent pivoting into internal networks. Stolen configuration files may expose hashed or recoverable service-account credentials and network topology information, enabling offline cracking, credential theft, lateral movement, and broader compromise.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, disable FortiCloud SSO administrative login until the device is upgraded. Fortinet’s advisory states this can be done in the GUI under System -> Settings by turning off 'Allow administrative login using FortiCloud SSO', or via CLI with 'config system global', 'set admin-forticloud-sso-login disable', 'end'. Additional defensive measures supported by the content include restricting management-interface exposure to the internet, limiting allowed source IPs for administrative access, centralizing and retaining logs, and monitoring for suspicious SSO logins and configuration exports.

Remediation

Patch, then assume compromise.

Upgrade affected products to fixed releases. Based on the provided content, fixed versions include FortiOS 7.6.4+, 7.4.9+, 7.2.12+, and 7.0.18+; FortiProxy 7.6.4+; and FortiSwitchManager 7.2.7+. Fortinet advises using its upgrade guidance/tool to determine the correct upgrade path for each deployment branch. Because exploitation in the wild has been reported, organizations should also review logs for successful administrative SSO logins, configuration downloads, suspicious account creation, VPN changes, and other indicators of compromise, then rotate exposed credentials and restore from known-good configuration backups if compromise is identified.
PUBLIC EXPLOITS

Exploits

4 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).

VALID 4 / 5 TOTALView more in app
SCTT-2026-33-0004-FortiCloud-SSO-Identity-SingularityMaturityPoCVerified exploit

Repository purpose: a Python proof-of-concept exploit named “SCTT-0004 VORTEX / SCTT-2026-33-0004” claiming a Fortinet/FortiCloud SSO “temporal session collision” that can bypass mitigations for CVE-2026-24858 by repeatedly interacting with the SSO login flow using precisely timed delays across 33 “layers.” Structure: - README.md: High-level claim and usage instructions (run script with <target> and <token>; oscillate for 33 layers). - SCTT-0004-VORTEX.py: Main exploit/PoC implementation. Creates a requests.Session with TLS verification disabled, computes per-layer timing (“temporal resonance”), crafts SAML-assertion-like data structures per layer (NameID, Conditions, AuthnStatement, Fortinet identity attributes), and drives a multi-request sequence intended to cause an identity/session privilege collision. Includes an interactive authorization prompt and prints results. - SCTT-2026-33-0004.json: Metadata describing the claimed vulnerability, mapping to CWE-288/CWE-347, affected versions, and references to CVE-2026-24858 and CVE-2025-59718. - LICENSE: MIT. Exploit capabilities (as implemented/claimed): - Remote, network-based interaction with a FortiCloud/Fortinet SSO endpoint. - Timing-based request orchestration over 33 iterations to attempt authentication bypass / privilege escalation via session-table “collision.” - Post-condition check by requesting an admin resource path to infer elevated access. Notable observables: - Hardcoded relative paths: /remote/saml/login and /admin/dashboard. - SAML/Fortinet attribute URNs embedded in the crafted assertion structure. - No hardcoded C2 infrastructure; target is user-supplied. The code is more consistent with a PoC than a fully weaponized module (no robust target fingerprinting, limited error handling shown in the provided excerpt, and no configurable payload beyond the request sequence).

SimoesCTTDisclosed Jan 31, 2026pythonjsonnetwork
Ashwesker-CVE-2025-59718MaturityPoCVerified exploit

This repository contains a working proof-of-concept (PoC) exploit for CVE-2025-59718, a critical authentication bypass vulnerability in Fortinet products (FortiOS, FortiProxy, FortiSwitchManager) that use FortiCloud SSO. The exploit is implemented in a single Python script (CVE-2025-59718.py), which forges a malicious SAMLResponse XML payload impersonating an admin user. The script sends this payload to the target device's /remote/saml/login endpoint, exploiting improper SAML signature verification to gain administrative access without credentials. The README.md provides detailed vulnerability background, affected versions, mitigation advice, and usage instructions. The exploit is network-based, requires only the target's address, and if successful, returns a valid admin session cookie for further access. No detection or fake code is present; this is a real, functional exploit PoC.

AshweskerDisclosed Dec 11, 2025pythonmarkdownnetwork
CVE-2025-59718-PoCMaturityPoCVerified exploit

This repository provides operational exploit code for CVE-2025-59718, a critical authentication bypass vulnerability affecting several Fortinet products (FortiOS, FortiProxy, FortiSwitchManager, FortiWeb) when FortiCloud SSO is enabled. The exploit consists of two Python scripts: - 'poc.py': A minimal proof-of-concept that forges a SAMLResponse, base64-encodes it, and submits it to the target's '/remote/saml/login' endpoint. If successful, it grants admin access and prints session cookies for browser use. - 'advanced-poc.py': An enhanced, multithreaded version supporting bulk targeting (single, list, or file input), custom usernames, and endpoints. It writes results to a file and is suitable for scanning multiple devices in parallel. Both scripts exploit improper SAML response validation by Fortinet devices, allowing an attacker to impersonate an admin user and gain full administrative access. The attack is fully remote, requires no prior authentication, and targets the SAML login endpoint (typically '/remote/saml/login'). The payload is a crafted SAMLResponse XML asserting a 'super_admin' role, signed as if from 'https://sso.forticloud.com'. No hardcoded IPs or domains are present; the scripts require the attacker to specify the target(s). The only fingerprintable endpoints are the SAML login path and the SAML issuer/audience fields. The repository is well-structured, with clear separation between the minimal and advanced PoC scripts, and includes a README summarizing the vulnerability and affected products.

exfil0Disclosed Dec 17, 2025pythonnetwork
Blackash-CVE-2025-59718MaturityPoCVerified exploit

This repository contains a working proof-of-concept exploit for CVE-2025-59718, a critical authentication bypass vulnerability in Fortinet products (FortiOS, FortiProxy, FortiSwitchManager) that use FortiCloud SSO. The exploit is implemented in a single Python script (CVE-2025-59718.py) which forges a SAMLResponse XML, base64-encodes it, and submits it to the target's /remote/saml/login endpoint. If the target is vulnerable and FortiCloud SSO is enabled, the script grants the attacker full administrative access by bypassing authentication. The README.md provides detailed background, affected versions, mitigation advice, and usage instructions. The exploit is network-based, requires no credentials, and targets widely deployed enterprise security appliances. No hardcoded IPs or domains are used; the script takes a user-supplied target address. The main fingerprintable endpoints are the SAML login path and the SAML issuer/audience values used in the payload.

AshweskerDisclosed Dec 11, 2025pythonmarkdownnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
FortinetFortiosoperating_system
FortinetFortiproxyapplication
FortinetFortiswitchmanagerapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware1

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity146

Community discussion across Reddit, Mastodon, and other social sources.