FortiSandbox (versions 5.0.0–5.0.5 and 4.4.0–4.4.8)
FortiSandbox is a security tool made by Fortinet that analyses suspicious files and web content in an isolated environment to detect malware before it reaches a network.
Root Cause
The web UI fails to properly neutralise special characters in HTTP request inputs — a weakness classified as CWE-78 (improper neutralisation of special elements used in OS commands). When the application passes unsanitised user input directly to the underlying operating system, an attacker can inject their own commands alongside the intended ones.
Attack Vector
An attacker sends a crafted HTTP request to the FortiSandbox web interface — no credentials, no prior access, no social engineering required. The server processes the malicious input as a legitimate OS command, handing the attacker execution capability on the system. From there, they can move laterally (spreading through connected systems on the same network), exfiltrate (copy out) data, or establish persistent access.
Detection Notes
Look for unexpected outbound connections from FortiSandbox hosts, unusual process spawning in system logs, or HTTP requests containing shell metacharacters (characters like ;, |, or &&) in web server access logs.
Recommended Actions
- Upgrade FortiSandbox to version 5.0.6 or above; FortiSandbox 4.4.x users should upgrade to 4.4.9 or above.
- Restrict web UI access to trusted internal IP ranges only — do not expose the management interface to the public internet.
- Review FortiSandbox logs for anomalous HTTP requests prior to patching.

