Unauthenticated RCE in Fortinet FortiNAC
CVE-2022-39952 is a critical vulnerability in Fortinet FortiNAC caused by external control of file name or path. It affects FortiNAC versions 9.4.0, 9.2.0 through 9.2.5, 9.1.0 through 9.1.7, 8.8.0 through 8.8.11, 8.7.0 through 8.7.6, 8.6.0 through 8.6.5, 8.5.0 through 8.5.4, and 8.3.7. According to Fortinet, the flaw may allow an unauthenticated attacker to execute unauthorized code or commands via a specifically crafted HTTP request. Supporting detection content indicates exploitation attempts target the URI path /configWizard/keyUpload.jsp and may involve uploading a payload.zip file, consistent with a remote code execution path on exposed FortiNAC systems.
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.
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.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos.
This repository is a proof-of-concept exploit for CVE-2022-39952, a critical vulnerability in Fortinet FortiNAC. The exploit consists of a Python script (CVE-2022-39952.py), a sample payload file, and a README with usage instructions and technical background. The Python script creates a ZIP archive containing a user-supplied payload (typically a cron job script) and uploads it to the vulnerable keyUpload.jsp endpoint on the target FortiNAC system via HTTPS on port 8443. If successful, the payload is written to /etc/cron.d/payload on the target, allowing for arbitrary code execution. The provided payload establishes a reverse shell from the target to the attacker's machine. The exploit requires the attacker to supply a payload file and the target's IP address. The repository is operational and demonstrates a real-world attack scenario, with clear instructions and a working payload.
This repository contains a Python exploit for CVE-2022-39952, a critical vulnerability in Fortinet FortiNAC. The exploit consists of two files: a README.md with usage instructions and exploit.py, the main exploit script. The script allows an attacker to upload a malicious JSP webshell or reverse shell to a vulnerable FortiNAC server by abusing the /configWizard/keyUpload.jsp endpoint. The payload is delivered as a ZIP file containing the JSP file, which is written to /bsc/campusMgr/ui/ROOT/ on the target. The attacker can then interact with the webshell for arbitrary command execution or receive a reverse shell connection. The exploit supports targeting single or multiple hosts and can be configured for custom attacker host and port for the reverse shell. The attack vector is network-based, requiring access to the target's HTTPS interface. The exploit is operational, providing working payloads and automation for exploitation.
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.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A Fortinet FortiNAC vulnerability that can lead to remote code execution via exploitation of the configWizard/keyUpload.jsp endpoint, potentially allowing attackers to gain control of the affected system, schedule malicious tasks, and establish persistent C2 access.
A vulnerability in FortiNAC (CVE-2022-39952) that can be exploited for remote code execution or privilege escalation, and has been linked to ransomware operations.
A known Fortinet vulnerability exploited by Earth Lusca as an initial access vector against public-facing servers.
Critical remote code execution vulnerability in Fortinet FortiNAC that could allow execution of unauthorized code or commands.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.