CVE-2024-55591 is an authentication bypass in the FortiOS Node.js web server that backs SSL-VPN and the admin interface. The jsconsole WebSocket endpoint sits behind port 443 and does its own session handling, entirely separate from the normal login path.
It trusts the
header and a crafted upgrade request. Send the right JSON frames down the socket and the backend treats you as already authenticated — because it never checks whether you completed the handshake it thinks you completed.Then you don't just get read access. The console exposes the same calls the GUI uses, including administrator creation, so the first thing you do is make yourself a
and log in normally afterwards.It was exploited as a zero-day by a group tracked as Mora_001, and the initial access pattern was exactly this: internet-facing FortiGate, jsconsole, new admin, then lateral movement.
Attack Flow:
It trusts the
Code:
HostCode:
super_adminAttack Flow:
[ Hidden Content! ]
- Identify FortiGate appliances exposing 443 with the SSL-VPN portal orCode:
/remote/login - Open a WebSocket upgrade to the jsconsole endpoint, spoofing a localheaderCode:
Host
- Send the crafted frames to enter the CLI context
- to confirm you're in and fingerprint the buildCode:
get system status
- Push the admin-creation call — username,set toCode:
accprofile
Code:super_admin - Reconnect through the normal login with your new credentials










![[Image: kwi6yAD.gif]](https://i.imgur.com/kwi6yAD.gif)