Advisory Details

April 23rd, 2025

(0Day) eCharge Hardy Barth cPH2 check_req.php ntp Command Injection Remote Code Execution Vulnerability

ZDI-25-247
ZDI-CAN-23113

CVE ID CVE-2025-3881
CVSS SCORE 8.8, AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS eCharge Hardy Barth
AFFECTED PRODUCTS cPH2
VULNERABILITY DETAILS

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of eCharge Hardy Barth cPH2 charging stations. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of the ntp parameter provided to the check_req.php endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the www-data user.

ADDITIONAL DETAILS

03/14/24 – ZDI contacted the vendor via email to info@echarge.de
10/28/24 – ZDI reached out to echarge’s support team
04/12/25 – ZDI informed the vendor that since we have not received a response, we will publish the report as a zero-day advisory


DISCLOSURE TIMELINE
  • 2025-03-11 - Vulnerability reported to vendor
  • 2025-04-23 - Coordinated public release of advisory
  • 2025-04-23 - Advisory Updated
CREDIT adhkr -LuwakLab
BACK TO ADVISORIES