Safety researchers have launched technical particulars and a proof-of-concept (PoC) exploit for a essential vulnerability patched final week in Fortinet’s FortiClient Enterprise Administration Server (FortiClient EMS), an endpoint safety administration resolution. The vulnerability, tracked as CVE-2023-48788, was reported to Fortinet as a zero-day by the UK Nationwide Cyber Safety Centre (NCSC) and was actively exploited within the wild on the time of the patch, however doubtless in very focused assaults. The provision of the brand new PoC, despite the fact that not weaponized, may allow wider exploitation and simpler adoption by extra attacker teams.
The flaw is the results of improper sanitization of parts in an SQL command, which may very well be exploited in an SQL injection state of affairs to execute unauthorized code or instructions on the FortiClient EMS. Prospects are suggested to improve to model 7.0.11 or above for the 7.0.x sequence and to model 7.2.3 or above for the 7.2.x sequence.
Fortinet vulnerability trivial to use
FortiClient EMS is the central server element that’s used to handle endpoints working FortiClient. In keeping with researchers with penetration testing agency Horizon3.ai, who reconstructed the vulnerability, it’s in a element referred to as FCTDas.exe, or the Knowledge Entry Server, which communicates with Microsoft SQL Server database to retailer info acquired from endpoints.
Endpoints which have FortiClient put in talk with a element of the EMS referred to as FmcDaemon.exe over port 8013 utilizing a customized text-based protocol that’s then encrypted with TLS for defense. FmcDaemon.exe then passes info to FCTDas.exe within the type of SQL queries which can be then executed in opposition to the database.
The researchers managed to construct a Python script to work together with FmcDaemon.exe and ship a easy message to replace the FCTUID adopted by an SQL injection payload to set off a 10-second sleep. They then noticed that the payload was handed to FCTDas.exe, due to this fact confirming the vulnerability.
“To show this SQL injection vulnerability into distant code execution we used the built-in xp_cmdshell performance of Microsoft SQL Server,” the researchers mentioned of their technical write-up. “Initially, the database was not configured to run the xp_cmdshell command. Nonetheless, it was trivially enabled with a number of different SQL statements.”
The researchers deliberately left the xp_cmdshell code execution half out of the PoC exploit, so it can’t be abused instantly with out modification. Nonetheless, the xp_cmdshell approach is well-known and has been used to assault Microsoft SQL Server databases earlier than, that means it’s not exhausting to implement that half.
Fortinet flaws are engaging to attackers
In February, Fortinet patched one other essential distant code execution vulnerability within the SSL VPN service of the FortiOS working system used on its home equipment. That vulnerability, tracked as CVE-2024-21762, additionally got here with a warning that it was doubtlessly exploited within the wild. The corporate additionally warned that Chinese language cyberespionage teams exploited N-day FortiOS vulnerabilities prior to now to focus on essential infrastructure organizations.