Command injection due to an unsafe usage of function

Summary

An improper neutralization of special elements used in an OS Command ('OS Command Injection') vulnerability [CWE-78 ] in FortiManager, FortiAnalyzer and FortiADC management interface may allow an authenticated attacker with at least READ permissions on system settings to execute arbitrary commands on the underlying shell due to an unsafe usage of the wordexp function.

Version Affected Solution
FortiADC 7.1 7.1.0 Upgrade to 7.1.1 or above
FortiADC 7.0 7.0.0 through 7.0.3 Upgrade to 7.0.4 or above
FortiADC 6.2 6.2 all versions Migrate to a fixed release
FortiADC 6.1 6.1 all versions Migrate to a fixed release
FortiADC 6.0 6.0 all versions Migrate to a fixed release
FortiAnalyzer 7.4 Not affected Not Applicable
FortiAnalyzer 7.2 7.2.0 through 7.2.2 Upgrade to 7.2.3 or above
FortiAnalyzer 7.0 7.0.0 through 7.0.7 Upgrade to 7.0.8 or above
FortiAnalyzer 6.4 6.4.0 through 6.4.11 Upgrade to 6.4.12 or above
FortiAnalyzer 6.2 6.2 all versions Migrate to a fixed release
FortiAnalyzer 6.0 6.0 all versions Migrate to a fixed release
FortiManager 7.4 Not affected Not Applicable
FortiManager 7.2 7.2.0 through 7.2.2 Upgrade to 7.2.3 or above
FortiManager 7.0 7.0.0 through 7.0.7 Upgrade to 7.0.8 or above
FortiManager 6.4 6.4.0 through 6.4.11 Upgrade to 6.4.12 or above
FortiManager 6.2 6.2 all versions Migrate to a fixed release
FortiManager 6.0 6.0 all versions Migrate to a fixed release

Acknowledgement

Internally discovered and reported by Wilfried Djettchou of Fortinet Product Security team.

Timeline

2023-10-10: Initial publication