Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remote Command Execution Vulnerability
Fixed potential security issue. You need to allow commands via config/allowed_comapps.php
- Loading branch information
1 parent
1922bca
commit fb8fbe1
Showing
5 changed files
with
130 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
// For safety reason, manually complete this data array to permit mN to use those commands | ||
// Keep 'http' user file permission | ||
|
||
$ALLWDCMD[0] = 'houseenergy -energy'; | ||
$ALLWDCMD[1] = 'houseenergy -power'; | ||
$ALLWDCMD[2] = 'pooler -gas'; | ||
$ALLWDCMD[3] = 'poolmeters gs'; | ||
$ALLWDCMD[4] = 'pooler -water'; | ||
$ALLWDCMD[5] = 'poolmeters ws'; | ||
$ALLWDCMD[6] = 'pool123s -energy'; | ||
$ALLWDCMD[7] = 'pool123s -power'; | ||
$ALLWDCMD[8] = 'houseenergy -eimp'; | ||
$ALLWDCMD[9] = 'houseenergy -powerimp'; | ||
$ALLWDCMD[10] = 'houseenergy -eexp'; | ||
$ALLWDCMD[11] = 'houseenergy -powerexp'; | ||
$ALLWDCMD[12] = 'houseenergy -self'; | ||
$ALLWDCMD[13] = 'houseenergy -powerself'; | ||
$ALLWDCMD[14] = 'houseenergy -volt'; | ||
$ALLWDCMD[15] = 'houseenergy -frq'; | ||
$ALLWDCMD[16] = 'houseenergy -cos'; | ||
$ALLWDCMD[17] = 'meterud -energy'; | ||
//$ALLWDCMD[18] = ''; | ||
//$ALLWDCMD[19] = ''; | ||
//$ALLWDCMD[20] = ''; | ||
|
||
?> |