CVE-2023-50883
ONLYOFFICE DocumentServer vulnerability analysis and mitigation

Overview

ONLYOFFICE Docs before 8.0.1 contains a Cross-Site Scripting (XSS) vulnerability identified as CVE-2023-50883. The vulnerability exists in the macro feature where a sandbox escape is possible by directly calling the constructor of the Function object through an immediately-invoked function expression (IIFE). This issue exists because of an incomplete fix for CVE-2021-43446 (NIST NVD, SYSS Advisory).

Technical details

The vulnerability stems from improper sandboxing and sanitizing of user input in the macro function. Macros are defined as an immediately invoked function expression (IIFE) in the form (function(){})(). When this IIFE is passed to the JavaScript eval() function inside a sandboxing method, the sandbox can be escaped by directly calling the constructor of the Function object. This works because the Function constructor creates functions that execute in the global scope, thereby escaping the local scope of the sandboxing method (SYSS Advisory).

Impact

The vulnerability allows attackers to execute arbitrary JavaScript code in the context of the application by escaping the macro sandbox. This could potentially lead to unauthorized access to sensitive information, session hijacking, or other malicious actions typically associated with XSS attacks (SYSS Advisory).

Mitigation and workarounds

The vulnerability was fixed in ONLYOFFICE version 8.0.1. Organizations are recommended to update to this version or later. Alternatively, organizations can remove or disable the macro plug-in feature to mitigate the risk (SYSS Advisory).

Additional resources


SourceThis report was generated using AI

Related ONLYOFFICE DocumentServer vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-30187CRITICAL9.8
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesAug 14, 2023
CVE-2023-30186CRITICAL9.8
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesAug 14, 2023
CVE-2022-48422HIGH7.8
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesMar 19, 2023
CVE-2023-30188HIGH7.5
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesAug 14, 2023
CVE-2023-50883MEDIUM6.1
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesSep 09, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management