CVE-2023-44251

8.3 HIGH

📋 TL;DR

This path traversal vulnerability in Fortinet FortiWAN allows authenticated attackers to read and delete arbitrary files on the system via crafted HTTP/HTTPS requests. Affected systems include FortiWAN versions 5.2.0-5.2.1 and 5.1.1-5.1.2. Attackers must have valid credentials to exploit this vulnerability.

💻 Affected Systems

Products:
  • Fortinet FortiWAN
Versions: 5.2.0 through 5.2.1 and 5.1.1 through 5.1.2
Operating Systems: FortiWAN OS
Default Config Vulnerable: ⚠️ Yes
Notes: This vulnerability affects both HTTP and HTTPS interfaces. The advisory states 'UNSUPPORTED WHEN ASSIGNED' indicating these versions may be out of support.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise through reading sensitive configuration files, deleting critical system files causing service disruption, or planting backdoors for persistent access.

🟠

Likely Case

Data exfiltration of configuration files, credentials, or sensitive data, potentially leading to further network compromise.

🟢

If Mitigated

Limited impact if proper network segmentation, authentication controls, and file system permissions are in place to restrict authenticated user access.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authenticated access. Path traversal vulnerabilities typically have low complexity once authentication is bypassed or obtained.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check Fortinet advisory for specific patched versions

Vendor Advisory: https://fortiguard.com/psirt/FG-IR-23-265

Restart Required: Yes

Instructions:

1. Review Fortinet advisory FG-IR-23-265. 2. Upgrade to a supported version beyond affected ranges. 3. Apply patches according to Fortinet documentation. 4. Restart services as required.

🔧 Temporary Workarounds

Network Access Restriction

all

Restrict network access to FortiWAN management interfaces to trusted IP addresses only

Authentication Hardening

all

Implement strong authentication policies, multi-factor authentication, and regular credential rotation

🧯 If You Can't Patch

  • Isolate FortiWAN devices in a dedicated management VLAN with strict access controls
  • Implement web application firewall rules to detect and block path traversal patterns in HTTP requests

🔍 How to Verify

Check if Vulnerable:

Check FortiWAN version via web interface or CLI. If version is 5.2.0-5.2.1 or 5.1.1-5.1.2, system is vulnerable.

Check Version:

show system status (CLI) or check System Information in web interface

Verify Fix Applied:

Verify version has been upgraded beyond affected ranges and test file access controls.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file access patterns in web server logs
  • Multiple failed authentication attempts followed by successful login and file operations
  • HTTP requests containing '../' patterns or unusual file paths

Network Indicators:

  • HTTP/HTTPS requests to FortiWAN with path traversal patterns
  • Unusual outbound data transfers following authentication

SIEM Query:

source="fortiwan" AND (http_uri="*../*" OR http_uri="*..\\*" OR http_uri="*/etc/*" OR http_uri="*/root/*")

🔗 References

📤 Share & Export