Skip to content
← RegistryDossier · 6 steps · 5 edges

FortiGate SSL-VPN pre-auth RCE → config theft

Pre-auth heap overflow / format-string against FortiGate sslvpnd grants root on the appliance. Pull the running config, decrypt stored RADIUS / LDAP / VPN-user secrets.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: target operates FortiGate firewalls with SSL-VPN exposed to the internet and unpatched for a recent CVE (CVE-2024-21762, CVE-2023-27997 class).

§ Steps

  1. 01
    Root shell on the applianceExecution
    T1059Command and Scripting Interpreter
  2. 02
    Spray harvested creds into ADCredential Access
    T1110.003Password Spraying
  3. 03
    Decrypt RADIUS shared secret / LDAP bind pwCredential Access
    T1552Unsecured Credentials
  4. 04
    Identify FortiGate SSL-VPNReconnaissance
    W-RECON-FINGERPRINTTech Stack Fingerprinting
  5. 05
    Trigger pre-auth heap overflowInitial Access
    VPN-FORTINET-RCEFortiGate / FortiOS RCE
  6. 06
    show full-configuration / extract secretsCollection
    VPN-CONFIG-EXFILVPN Configuration Exfil

§ References

§ Frequently asked

What is the "FortiGate SSL-VPN pre-auth RCE → config theft" attack path?
Pre-auth heap overflow / format-string against FortiGate sslvpnd grants root on the appliance. Pull the running config, decrypt stored RADIUS / LDAP / VPN-user secrets. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Root shell on the appliance (T1059) — a execution primitive. Assumed environment: target operates FortiGate firewalls with SSL-VPN exposed to the internet and unpatched for a recent CVE (CVE-2024-21762, CVE-2023-27997 class).
What is the final impact of this kill-chain?
The final step lands on show full-configuration / extract secrets (VPN-CONFIG-EXFIL), which falls under Collection. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers