Cloudanix VulnDB

CVE-2023-40497

Critical · 9.8

CVSS

9.8

EPSS

69.4%

Published

May 3, 2024

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Attend

A vulnerable LG Simple Editor system can let an outside attacker take full control of the computer without needing a password.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Application
Class
Path Traversal
Remediation
Patch
Effort
Low
Patch risk
Low

What it actually does

This vulnerability is an unauthenticated path traversal flaw in LG Simple Editor’s saveXml functionality, specifically in the makeDetailContent method. The application uses attacker-controlled path input in file operations without adequately normalizing, constraining, or validating the destination path. A remote attacker can abuse this to write files outside the intended application directory. If the attacker writes executable content, scripts, service configuration, startup items, or application-consumed files to a sensitive location, they can achieve arbitrary code execution with the privileges of the LG Simple Editor process, reported as SYSTEM. The CVSS 9.8 rating reflects that exploitation is network-accessible, low-complexity, requires no authentication, and can fully compromise confidentiality, integrity, and availability of the affected host.

Why it matters to the business

Successful exploitation can give an unauthenticated remote attacker complete control of the system running LG Simple Editor. Operationally, this can lead to service disruption, tampering with displayed or managed content, theft of local data and credentials, malware deployment, lateral movement into the broader Windows environment, or use of the host as a foothold for ransomware. The EPSS score is high, indicating meaningful likelihood of exploitation activity, even though the vulnerability is not currently listed in CISA KEV and no ransomware use is identified in the provided data.

How an attack unfolds

An attacker first identifies a network-accessible LG Simple Editor installation exposing the vulnerable saveXml command. They send a crafted request to the makeDetailContent/saveXml functionality containing directory traversal sequences such as ../ or encoded equivalents in a path parameter used for file creation or update. Because the application does not properly restrict the resolved path to an intended directory, the attacker causes the server to write attacker-controlled content to an arbitrary filesystem location. The attacker then chooses a target path that results in execution, such as a web-served script location, an application plugin/configuration location, a startup location, or another file path that the application or Windows will execute or load. Once the payload is executed, code runs as the LG Simple Editor service account, reported as SYSTEM, giving the attacker full local control. From there, the attacker may install persistence, disable defenses, collect credentials, exfiltrate data, or pivot to other systems.

How to fix it

Upgrade LG Simple Editor to a vendor-fixed release as soon as an applicable fixed version is available from LG. If no fixed version is available for a deployment, remove external network access to the affected interface, restrict access to trusted administrative networks only, and place the service behind strong authentication and network-layer controls. Disable or isolate the vulnerable functionality if operationally feasible. As compensating controls, block requests containing traversal patterns to the saveXml endpoint, enforce allowlisted file names and directories at reverse proxies or WAFs, and ensure the service account does not run with SYSTEM privileges where possible. Also review filesystem permissions so the application cannot write to startup, executable, web-served, service, or system directories.

How to confirm the fix worked

Confirm the deployed LG Simple Editor version is no longer affected according to LG’s advisory or release notes. Validate that unauthenticated users cannot reach the saveXml functionality. Test that path traversal payloads such as ../, ..\, URL-encoded traversal, and double-encoded traversal are rejected and do not create or modify files outside the intended directory. Review application, web server, EDR, and filesystem telemetry to ensure no unexpected files were written during testing. Where a WAF or reverse proxy mitigation is used, verify that traversal attempts to saveXml are blocked before reaching the application.

Typical attack path

  1. Discover an exposed LG Simple Editor service or management interface.
  2. Confirm access to the vulnerable saveXml command without authentication.
  3. Send crafted requests containing path traversal sequences in the file path used by saveXml.
  4. Write attacker-controlled content outside the intended application directory.
  5. Place the content in a location where it will be executed, loaded, or served by the application or operating system.
  6. Trigger execution directly or wait for the application/OS to process the written file.
  7. Run commands with SYSTEM-level privileges and establish persistence or further access.

How to detect it

Review HTTP access logs, application logs, reverse proxy logs, WAF events, EDR telemetry, Windows event logs, and filesystem auditing for evidence of exploitation. Focus on unauthenticated or unexpected requests to saveXml or makeDetailContent containing traversal patterns such as ../, ..\, URL-encoded dots or slashes, double encoding, or absolute Windows paths. Look for successful responses followed by creation or modification of files outside normal LG Simple Editor content directories. On Windows hosts, investigate files created by the LG Simple Editor process in executable, startup, web, service, temporary, or system locations. EDR process telemetry is especially important: LG Simple Editor should not normally spawn command shells, PowerShell, script interpreters, certificate utilities, download tools, service-control utilities, or scheduled task tools. Correlate suspicious saveXml requests with new files, new services, scheduled tasks, registry Run keys, outbound network connections, and security control tampering. Because public exploitation maturity is listed as none in the provided data, detection should emphasize behavior and exploit attempts rather than known actor-specific indicators.

  • saveXml
  • makeDetailContent
  • ../
  • ..\
  • %2e%2e%2f
  • %2e%2e%5c
  • %252e%252e%252f
  • %252e%252e%255c
  • /saveXml
  • cmd.exe spawned by LG Simple Editor
  • powershell.exe spawned by LG Simple Editor
  • wscript.exe spawned by LG Simple Editor
  • cscript.exe spawned by LG Simple Editor
  • mshta.exe spawned by LG Simple Editor
  • certutil.exe spawned by LG Simple Editor
  • bitsadmin.exe spawned by LG Simple Editor
  • rundll32.exe spawned by LG Simple Editor
  • regsvr32.exe spawned by LG Simple Editor
  • schtasks.exe spawned by LG Simple Editor
  • sc.exe spawned by LG Simple Editor
  • HKLM\Software\Microsoft\Windows\CurrentVersion\Run
  • HKCU\Software\Microsoft\Windows\CurrentVersion\Run
  • C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\
  • C:\Windows\Temp\
  • C:\ProgramData\
  • C:\Windows\System32\Tasks\

What your security team should do

  • Prioritize remediation because the flaw is unauthenticated remote code execution with SYSTEM-level impact and a high EPSS score.
  • Inventory all LG Simple Editor deployments and determine whether the saveXml functionality is reachable from untrusted networks.
  • Upgrade to a vendor-fixed version when available; otherwise restrict access with network segmentation, VPN, firewall rules, and reverse proxy controls.
  • Add WAF or IDS rules for requests to saveXml containing traversal sequences, encoded traversal, or attempts to write executable file types.
  • Hunt for historical exploitation by reviewing web/application logs for saveXml requests with path traversal patterns and unusual file-write destinations.
  • Inspect affected hosts for recently created executable, script, service, scheduled task, startup, or web-served files written by the LG Simple Editor process.
  • Review EDR telemetry for child processes spawned by LG Simple Editor or its associated service, especially command shells, scripting engines, download tools, and service-control utilities.
  • If exploitation is suspected, isolate the host, preserve forensic evidence, rotate credentials that may have been exposed, and perform incident response for SYSTEM-level compromise.

The record

LG Simple Editor saveXml Directory Traversal Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of LG Simple Editor. Authentication is not required to exploit this vulnerability. The specific flaw exists within the saveXml command implemented in the makeDetailContent method. The issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to execute code in the context of SYSTEM. Was ZDI-CAN-19924.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities