CVE-2024-36512

7.2 HIGH

📋 TL;DR

This path traversal vulnerability in Fortinet FortiManager and FortiAnalyzer allows attackers to execute arbitrary code or commands via specially crafted HTTP/HTTPS requests. Affected organizations include those running vulnerable versions of these network management and analytics platforms.

💻 Affected Systems

Products:
  • Fortinet FortiManager
  • Fortinet FortiAnalyzer
Versions: 7.4.0-7.4.3, 7.2.0-7.2.5, 7.0.2-7.0.12, 6.2.10-6.2.13
Operating Systems: FortiOS-based appliances
Default Config Vulnerable: ⚠️ Yes
Notes: All configurations with HTTP/HTTPS management interfaces enabled are vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise leading to complete control over the FortiManager/FortiAnalyzer device, potential lateral movement to managed devices, and data exfiltration.

🟠

Likely Case

Unauthorized command execution leading to configuration changes, data access, or installation of persistent backdoors.

🟢

If Mitigated

Limited impact with proper network segmentation and access controls, potentially only affecting the management interface.

🌐 Internet-Facing: HIGH - Directly exploitable via HTTP/HTTPS requests without authentication.
🏢 Internal Only: HIGH - Even internally, this provides significant attack surface for lateral movement.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: MEDIUM

Exploitation requires crafting specific HTTP/HTTPS requests but does not require authentication.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 7.4.4, 7.2.6, 7.0.13, 6.2.14 and later

Vendor Advisory: https://fortiguard.fortinet.com/psirt/FG-IR-24-152

Restart Required: No

Instructions:

1. Download the appropriate firmware version from Fortinet support portal. 2. Backup current configuration. 3. Upload and install the firmware update via web interface or CLI. 4. Verify successful upgrade.

🔧 Temporary Workarounds

Restrict Management Interface Access

all

Limit access to FortiManager/FortiAnalyzer management interfaces to trusted IP addresses only.

config system interface
edit <interface_name>
set allowaccess https ssh
set trust-ip-1 <trusted_ip>
end

🧯 If You Can't Patch

  • Implement strict network segmentation to isolate management interfaces from untrusted networks.
  • Deploy web application firewall (WAF) rules to block path traversal patterns in HTTP requests.

🔍 How to Verify

Check if Vulnerable:

Check current firmware version via web interface (System > Dashboard) or CLI command 'get system status'.

Check Version:

get system status | grep Version

Verify Fix Applied:

Verify firmware version is 7.4.4+, 7.2.6+, 7.0.13+, or 6.2.14+ after patching.

📡 Detection & Monitoring

Log Indicators:

  • Unusual HTTP requests with path traversal patterns (../ sequences)
  • Unexpected command execution logs
  • Authentication bypass attempts

Network Indicators:

  • HTTP/HTTPS requests with excessive ../ sequences to management interfaces
  • Unusual outbound connections from management devices

SIEM Query:

source="fortimanager" OR source="fortianalyzer" AND (http_uri="*../*" OR http_uri="*..\\*" OR command="*exec*" OR command="*system*" )

🔗 References

📤 Share & Export