← Advisories

meterN v1.2.3 Authenticated Remote Command Execution Vulnerability

High
Advisory ID
ZSL-2021-5690
Release Date
13 December 2021
Vendor
Jean-Marc Louviaux - https://www.metern.org
Affected Version
1.2.3 and 0.8.3.2
Tested On
Apache/2.4.10 (Raspbian), Apache/2.4.46 (Win64), Linux 4.9.67-v7+ GNU/Linux (armv7l), Microsoft Windows 10 Home (10.0.19042 Build 19042), PHP/7.2.33
Summary

meterN is a set of PHP/JS files that make a -Home energy metering & monitoring- solution. It accept any meters like : electrical, water, gas, fuel consumption, solar, Wind energy production and so on. Sensors such as temperature or humidity are also accepted. The philosophy is: To keep it simple, fast, with a low foot print to run on cheap and low powered devices.

Description

The application suffers from an authenticated OS command execution vulnerability. This can be exploited to execute arbitrary commands through the 'COMMANDx' and 'LIVECOMMANDx' POST parameters in admin_meter2.php and admin_indicator2.php scripts. The application interface allows users to perform these actions through HTTP requests without performing any validity checks to verify the requests. This CSRF can be exploited to perform actions with administrative privileges if a logged-in user visits a malicious web site.

Proof of Concept
Disclosure Timeline
14.01.2022Vendor releases version 1.2.4.1 to address this issue.
Credits
Vulnerability discovered by Gjoko Krstic
References
Changelog
13.12.2021Initial release
14.12.2021Added reference [1] and [2]
17.12.2021Added reference [3] and [4]
19.03.2024Added vendor status and reference [5]
23.03.2026Added reference [6]