CVE-2024-57189
JavaScript vulnerability analysis and mitigation

Overview

CVE-2024-57189 is a Path Traversal vulnerability discovered in Erxes versions prior to 1.6.2. The vulnerability exists in the importHistoriesCreate GraphQL mutation handler, where an authenticated attacker can write to arbitrary files on the system (Sonar Blog, NVD).

Technical details

The vulnerability stems from insufficient path validation in the importHistoriesCreate GraphQL mutation handler. When AWS S3 storage is configured, the service downloads files from S3 to the local filesystem using unsanitized user-controlled filenames. This allows an attacker to use path traversal sequences (../) to write files to arbitrary locations on the system (Sonar Blog).

Impact

An authenticated attacker could exploit this vulnerability to write arbitrary files anywhere on the system. When combined with other vulnerabilities, this could lead to remote code execution by overwriting critical files such as /data/enabled-services.js that get executed by the services (Sonar Blog).

Mitigation and workarounds

The vulnerability has been patched in Erxes version 1.6.2 by implementing proper filename sanitization to remove unwanted characters from user-controlled filenames. Users are advised to upgrade to version 1.6.3 or later to receive all security fixes (Sonar Blog).

Community reactions

The vulnerability was responsibly disclosed by SonarSource researchers to the Erxes team on October 6, 2023. After the initial 90-day disclosure deadline elapsed, Erxes addressed the vulnerabilities through multiple releases, culminating in version 1.6.3 which contains all security fixes (Sonar Blog).

Additional resources


SourceThis report was generated using AI

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