This module uploads a payload to the /tmp directory in addition to a cron job to /etc/cron.d which executes the payload in the context of the root user. The core vulnerability is an arbitrary file write issue in /configWizard/keyUpload.jsp which is accessible remotely and without authentication. When you send the vulnerable endpoint a ZIP file, it will extract an attacker controlled file to a directory of the attackers choice on the target system. This issue is exploitable on the following versions of FortiNAC: FortiNAC version 9.4 prior to 9.4.1 FortiNAC version 9.2 prior to 9.2.6 FortiNAC version 9.1 prior to 9.1.8 FortiNAC 8.8 all versions FortiNAC 8.7 all versions FortiNAC 8.6 all versions FortiNAC 8.5 all versions FortiNAC 8.3 all versions
Exploit database
Vulnerability
CVE-2022-39952
Vulnerability details
- Score
- 9.8
- Severity
- critical
CVSS 3.1 · fortinet
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:U/RC:CDescription
A external control of file name or path in Fortinet 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, 8.3.7 may allow an unauthenticated attacker to execute unauthorized code or commands via specifically crafted HTTP request.
CVE ProgramExploit source choices
8 sourcesFortinet FortiNAC keyUpload.jsp arbitrary file write
2023-02-16fortinac_keyupload_file_write.rb
horizon3ai/cve-2022-39952
POC for CVE-2022-39952
2023-02-203 files · 267 stars
aneasystone/github-trending
使用 Github Actions 跟踪 Github 趋势项目。
2022-08-0955 files · 213 stars
arpsyndicate/kenzer-templates
essential templates for kenzer [DEPRECATED]
2020-09-185,308 files · 118 stars
cvedb/awesome-cve-repo
cvedb/awesome-cve-repo source repository
2023-03-237 files · 9 stars
chocapikk/cve-2022-39952
PoC for CVE-2022-39952 affecting Fortinet FortiNAC.
2023-02-262 files · 3 stars
cvedb/top
cvedb/top source repository
2023-03-1911 files · 2 stars
shiyeshu/cve-2022-39952_webshell
Write Behinder_webshell to target using CVE-2022-39952
2023-02-224 files · 2 stars