CVE-2024-8581

9.1 CRITICAL

📋 TL;DR

This vulnerability in parisneo/lollms-webui allows attackers to delete any file or directory on the system through path traversal in the upload_app function. It affects users running version V12 (Strawberry) of the web interface. The high CVSS score reflects the potential for complete system compromise.

💻 Affected Systems

Products:
  • parisneo/lollms-webui
Versions: V12 (Strawberry)
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects installations with the vulnerable upload_app function accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise via deletion of critical system files, leading to OS corruption, data loss, or service disruption.

🟠

Likely Case

Unauthorized deletion of application files, configuration files, or user data, causing service outages or data integrity issues.

🟢

If Mitigated

Limited impact if proper file permissions restrict write access to non-critical directories.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit requires access to the upload functionality but is straightforward to execute.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Fixed in commit dcc078cbe20d2a9640b0942a622134b0e3fa6e48

Vendor Advisory: https://github.com/parisneo/lollms-webui/commit/dcc078cbe20d2a9640b0942a622134b0e3fa6e48

Restart Required: Yes

Instructions:

1. Update to the latest version from GitHub. 2. Apply the commit dcc078cbe20d2a9640b0942a622134b0e3fa6e48. 3. Restart the lollms-webui service.

🔧 Temporary Workarounds

Disable upload_app function

all

Temporarily disable or restrict access to the vulnerable upload functionality.

Modify application configuration to disable upload endpoints

Implement input validation

all

Add server-side validation to filter filename inputs and prevent path traversal.

Implement sanitization in the upload_app function to restrict file paths

🧯 If You Can't Patch

  • Restrict file system permissions to limit the impact of file deletions.
  • Implement network segmentation to isolate the vulnerable system from critical assets.

🔍 How to Verify

Check if Vulnerable:

Check if running version V12 of lollms-webui and if the upload_app function exists without input validation.

Check Version:

Check the application version in the web interface or configuration files.

Verify Fix Applied:

Verify that the commit dcc078cbe20d2a9640b0942a622134b0e3fa6e48 is applied and test upload functionality with malicious filenames.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file deletion events in system logs
  • Failed or successful upload attempts with suspicious filenames

Network Indicators:

  • HTTP requests to upload endpoints with path traversal patterns

SIEM Query:

Example: search for 'upload_app' AND ('../' OR '..\\' OR '%2e%2e%2f') in web server logs

🔗 References

📤 Share & Export