meterN v1.2.3 Authenticated Remote Command Execution Vulnerability

Title: meterN v1.2.3 Authenticated Remote Command Execution Vulnerability
Advisory ID: ZSL-2021-5690
Type: Local/Remote
Impact: System Access, DoS, Cross-Site Scripting
Risk: (4/5)
Release Date: 13.12.2021
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.
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
Vendor Status
N/A
PoC
metern_cmdexec.html
Credits
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
References
[1] https://packetstormsecurity.com/files/165273/
[2] https://www.exploit-db.com/exploits/50596
[3] https://exchange.xforce.ibmcloud.com/vulnerabilities/215320
[4] https://cxsecurity.com/issue/WLB-2021120071
Changelog
[13.12.2021] - Initial release
[14.12.2021] - Added reference [1] and [2]
[17.12.2021] - Added reference [3] and [4]
Contact
Zero Science Lab

Web: https://www.zeroscience.mk
e-mail: lab@zeroscience.mk