Site icon TheCyberThrone

FortiOS SSL-VPN ZeroDay Details Evolves

Advertisements

Fortinet has disclosed a critical vulnerability during December 2022, in the FortiOS being exploited by attackers in the wild. More details about the attack evolved now.

The attack was highly targeted to government related entities. The vulnerability, tracked as CVE-2022-42475, is in the SSL-VPN functionality of FortiOS and can be exploited by remote attackers without authentication. Successful exploitation can result in the execution of arbitrary codes and commands.

Advertisements

Fortinet has also released an IPS signature for detecting exploit attempts, as well as detection rules for the known implant in its antivirus engine.

Customers can also search their logs for the following entries which could indicate exploitation attempts:

Logdesc="Application crashed" and msg="[...] application:sslvpnd,[...], Signal 11 received, Backtrace: [...]

The attackers exploited the vulnerability and copied a Trojanized version of the FortiOS IPS Engine to the filesystem. This indicates the attackers are highly skilled and capable of reverse engineering custom FortiOS components.

The rogue version exports two legitimate functions called ips_so_patch_urldb and ips_so_query_interface that are normally part of the legitimate libips.so, but hijacks them to execute code stored in other malicious components.

Once executed, the legitimate IPS functionality no longer works correctly. The hijacked functions execute malicious code, which then reads and writes to a number of files called libiptcp.so, libgif.so.sslvpnconfigbk, and libipudp.so.

Advertisements

Analysis of network packet captures suggested the malware connected two external attacker-controlled servers to download additional payloads and commands to execute. One of the servers was still in operation and had a folder containing binaries built specifically for different FortiGate hardware versions. This allowed the researchers to analyze additional files they believe attackers executed on the systems to manipulate the logging functionality in FortiOS.

According to the researchers:

Upon examination, the Windows sample linked to the attacker exhibited signs of being constructed on a computer in the UTC+8 timezone. This timezone encompasses various countries such as:- 

They are suggesting that the attacker may be located in one of these regions. However, this information is not definitive proof of the attacker’s location.

Advertisements

The workaround for customers who can’t immediately deploy the updates is to disable SSL-VPN entirely, which might be difficult for organizations that rely on this functionality to support their remote or hybrid work environments.

Exit mobile version