CVE-2024-33863

9.8 CRITICAL

📋 TL;DR

This vulnerability allows attackers to perform local file inclusion via the /api/Cdn/GetFile endpoint in linqi on Windows systems. Attackers can read arbitrary files from the server, potentially exposing sensitive data. All Windows installations of linqi before version 1.4.0.1 are affected.

💻 Affected Systems

Products:
  • linqi
Versions: All versions before 1.4.0.1
Operating Systems: Windows
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects Windows installations of linqi. Linux/macOS versions are not vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete server compromise through reading sensitive configuration files, credentials, or using file inclusion to execute arbitrary code.

🟠

Likely Case

Unauthorized access to sensitive files containing configuration data, credentials, or user information.

🟢

If Mitigated

Limited file access if proper file permissions and web server restrictions are in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

The vulnerability appears to be exploitable without authentication via simple HTTP requests to the vulnerable endpoint.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.4.0.1

Vendor Advisory: https://linqi.help/Updates/en#/SecurityUpdates

Restart Required: Yes

Instructions:

1. Download linqi version 1.4.0.1 or later from official sources. 2. Stop the linqi service. 3. Backup current installation. 4. Install the updated version. 5. Restart the linqi service.

🔧 Temporary Workarounds

Block vulnerable endpoint

all

Use web application firewall or reverse proxy to block access to /api/Cdn/GetFile endpoint

# Example nginx config: location /api/Cdn/GetFile { deny all; }
# Example Apache config: <Location /api/Cdn/GetFile> Require all denied </Location>

Restrict file system permissions

windows

Limit the linqi service account to only necessary directories

icacls C:\linqi\ /grant "linqi-service-account":(OI)(CI)RX
icacls C:\ /deny "linqi-service-account":(OI)(CI)F

🧯 If You Can't Patch

  • Implement network segmentation to isolate linqi servers from sensitive systems
  • Deploy web application firewall with specific rules to block file inclusion patterns

🔍 How to Verify

Check if Vulnerable:

Check if linqi version is below 1.4.0.1 on Windows and test if /api/Cdn/GetFile endpoint accepts file path parameters

Check Version:

Check linqi web interface or configuration files for version information

Verify Fix Applied:

Verify linqi version is 1.4.0.1 or higher and test that /api/Cdn/GetFile endpoint no longer accepts arbitrary file paths

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests to /api/Cdn/GetFile with file path parameters
  • Unusual file access patterns from linqi process

Network Indicators:

  • HTTP requests containing path traversal sequences (../, ..\) to /api/Cdn/GetFile

SIEM Query:

source="linqi-logs" AND uri="/api/Cdn/GetFile" AND (uri="*../*" OR uri="*..\\*")

🔗 References

📤 Share & Export