elecV2 elecV2P Remote Code Execution Vulnerability

Vulnerability

A remote code execution vulnerability exists in elecV2 elecV2P versions through 3.8.3. The issue arises in the JSON Parser component, specifically within the runJSFile function of the webhook endpoint. The vulnerability allows for code injection by manipulating the rawcode parameter, which is evaluated as JavaScript, including calls to child_process. This vulnerability has been publicly disclosed and exploited, with confirmation of the code execution via a DNS callback.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the server, with the executed code running in the same context as the application, potentially leading to unauthorized access or modification of data, and in some cases, allowing the attacker to execute system commands or scripts.

Reproduction

To reproduce this vulnerability, send a POST request to the /webhook endpoint with a JSON payload that includes a rawcode parameter. The value of rawcode should be crafted JavaScript code that, when executed, performs an action such as calling a child_process function. Include a valid token in the request to bypass authentication checks. Once the request is sent, the injected code will be executed on the server, and if successful, a DNS callback can be used to confirm the exploitation.

Added: Mar 28, 2026, 7:19 PM
Updated: Mar 28, 2026, 7:19 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
6.0
remediation
0.0
relevance
4.8
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.