CVE-2022-4862

5.0 MEDIUM

📋 TL;DR

This vulnerability allows authenticated users to inject HTML content that gets rendered in other users' browsers in M-Files Web, potentially enabling cross-site scripting attacks. It affects all M-Files Web installations before version 22.12.12140.3. The issue could lead to theft of sensitive user information.

💻 Affected Systems

Products:
  • M-Files Web
Versions: All versions before 22.12.12140.3
Operating Systems: Windows, Linux
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects M-Files Web interface, requires authenticated user access

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

An authenticated attacker could steal session tokens, credentials, or other sensitive data from other authenticated users, potentially leading to account compromise and data exfiltration.

🟠

Likely Case

Authenticated users could craft malicious HTML content that steals session cookies or sensitive information from other users viewing that content.

🟢

If Mitigated

With proper input validation and output encoding, the risk is limited to authenticated users only, reducing the attack surface.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: HIGH

🎯 Exploit Status

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

Requires authenticated user access to exploit

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 22.12.12140.3

Vendor Advisory: https://empower.m-files.com/security-advisories/CVE-2022-4862

Restart Required: Yes

Instructions:

1. Download M-Files Web version 22.12.12140.3 or later from official M-Files sources. 2. Backup current installation. 3. Install the updated version following M-Files documentation. 4. Restart M-Files services.

🔧 Temporary Workarounds

Input Validation Enhancement

all

Implement additional input validation for user-provided HTML content

Content Security Policy

all

Implement strict Content Security Policy headers to limit script execution

🧯 If You Can't Patch

  • Restrict user permissions to limit who can create or modify HTML content
  • Implement web application firewall rules to detect and block XSS payloads

🔍 How to Verify

Check if Vulnerable:

Check M-Files Web version in administration console or via M-Files API

Check Version:

Check M-Files Server administration console or use M-Files API endpoint for version information

Verify Fix Applied:

Verify version is 22.12.12140.3 or later and test HTML rendering functionality

📡 Detection & Monitoring

Log Indicators:

  • Unusual HTML content submissions
  • Multiple failed HTML rendering attempts
  • Suspicious user activity patterns

Network Indicators:

  • Unexpected script tags in HTTP requests
  • Suspicious content in POST requests to content endpoints

SIEM Query:

source="m-files" AND (event="content_submission" OR event="html_render") AND (content CONTAINS "<script>" OR content CONTAINS "javascript:")

🔗 References

📤 Share & Export