Skip to content

Commit 30abfa8

Browse files
Staging/1.5.9 (hestiacp#2443)
* Prepare Release of 1.5.9 * Update translations * Update versions * Remove Vesta Filemanger list directory * Small bugs due to xss changes * Typo in function name... * And remove not needed line * Fix linting error * Fix mysql error in installer * Fix error in push to apt script * Fix multiple more issues * Consolidate upgrade messages and include version for third party software. (hestiacp#2435) * Fix bug with $user and escapeshellarg breaking certian features * Update changelogs Co-authored-by: Raphael Schneeberger <rs@scit.ch>
1 parent ee10e22 commit 30abfa8

File tree

38 files changed

+1015
-1013
lines changed

38 files changed

+1015
-1013
lines changed

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ steps:
160160
port: 22
161161
command_timeout: 2m
162162
script:
163-
- freight-add ./hestia/*.deb apt/bionic apt/focal apt/strech apt/buster apt/bullseye
163+
- freight-add ./hestia/*.deb apt/bionic apt/focal apt/stretch apt/buster apt/bullseye
164164
- freight-cache
165165
- rm -fr ./hestia/
166166

@@ -169,4 +169,4 @@ trigger:
169169

170170
---
171171
kind: signature
172-
hmac: 31806a1e5357c43d17d24ef797995fb9952a1d883ad282fd152d7d0378112213
172+
hmac: 07f845f902f859c97c78a346d340f7fb8d4b1242581a242e592b149c13428f50

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [1.5.9] - Service release
5+
6+
### Bugfixes
7+
8+
- Fixed multiple XSS vulnerabilities in the web user interface. [CVE-2022-0752](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0752) / [CVE-2022-0753](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0753)
9+
- Fixed an issues with mariadb.sys user didn't work properly on MariaDB 10.6.x installs #2427
10+
- Change ipverse.net urls to new format hosted on Github #2429 and forum
11+
- Allow PTR to be used on domain.com
12+
13+
### Dependencies
14+
15+
- Update PHPMailer to 6.6.0 (https://github.com/PHPMailer/PHPMailer/releases/tag/v6.6.0)
16+
- Update Filegator to 7.7.2 (https://github.com/filegator/filegator/releases/tag/v7.7.2)
17+
418
## [1.5.8] - Service release
519

620
### Features

func/upgrade.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ upgrade_b2_tool(){
556556
if version_ge "$b2_version" "$b2_v"; then
557557
echo "[ * ] Backblaze CLI tool is up to date ($b2_v)..."
558558
else
559-
echo "[ * ] Upgrading Backblaze CLI tool to version v$b2_v..."
559+
echo "[ * ] Upgrading Backblaze CLI tool to version $b2_v..."
560560
rm $b2cli
561561
wget -O $b2cli $b2lnk > /dev/null 2>&1
562562
chmod +x $b2cli > /dev/null 2>&1
@@ -581,7 +581,7 @@ upgrade_phpmyadmin() {
581581
fi
582582
else
583583
# Display upgrade information
584-
echo "[ * ] Upgrading phpMyAdmin to version v$pma_v..."
584+
echo "[ * ] Upgrading phpMyAdmin to version $pma_v..."
585585
[ -d /usr/share/phpmyadmin ] || mkdir -p /usr/share/phpmyadmin
586586

587587
# Download latest phpMyAdmin release
@@ -629,7 +629,7 @@ upgrade_filemanager() {
629629
fm_version="1.0.0"
630630
fi
631631
if [ "$fm_version" != "$fm_v" ]; then
632-
echo "[ ! ] Updating File Manager..."
632+
echo "[ ! ] Upgrading File Manager to version $fm_v..."
633633
# Reinstall the File Manager
634634
$HESTIA/bin/v-delete-sys-filemanager quiet yes
635635
$HESTIA/bin/v-add-sys-filemanager quiet
@@ -657,7 +657,7 @@ upgrade_roundcube(){
657657
else
658658
rc_version=$(cat /var/lib/roundcube/index.php | grep -o -E '[0-9].[0-9].[0-9]+' | head -1);
659659
if [ "$rc_version" != "$rc_v" ]; then
660-
echo "[ ! ] Upgrading Roundcube to version v$rc_v..."
660+
echo "[ ! ] Upgrading Roundcube to version $rc_v..."
661661
$HESTIA/bin/v-add-sys-roundcube
662662
else
663663
echo "[ * ] Roundcube is up to date ($rc_v)..."
@@ -670,7 +670,7 @@ upgrade_rainloop(){
670670
if [ -n "$(echo "$WEBMAIL_SYSTEM" | grep -w 'rainloop')" ]; then
671671
rl_version=$(cat /var/lib/rainloop/data/VERSION);
672672
if [ "$rl_version" != "$rl_v" ]; then
673-
echo "[ ! ] Upgrading Rainloop to version v$rl_v..."
673+
echo "[ ! ] Upgrading Rainloop to version $rl_v..."
674674
$HESTIA/bin/v-add-sys-rainloop
675675
else
676676
echo "[ * ] Rainloop is up to date ($rl_v)..."
@@ -685,7 +685,7 @@ upgrade_phpmailer(){
685685
fi
686686
phpm_version=$(cat $HESTIA/web/inc/vendor/phpmailer/phpmailer/VERSION);
687687
if [ "$phpm_version" != "$pm_v" ]; then
688-
echo "[ ! ] Upgrading PHPmailer..."
688+
echo "[ ! ] Upgrading PHPmailer to version $pm_v..."
689689
$HESTIA/bin/v-add-sys-phpmailer
690690
else
691691
echo "[ * ] PHPmailer is up to date ($pm_v)..."

install/hst-install-debian.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
3131
VERBOSE='no'
3232

3333
# Define software versions
34-
HESTIA_INSTALL_VER='1.5.9~alpha'
34+
HESTIA_INSTALL_VER='1.5.9'
3535
# Dependencies
3636
pma_v='5.1.3'
3737
rc_v="1.5.2"
@@ -1532,7 +1532,7 @@ if [ "$mysql" = 'yes' ]; then
15321532
mysql -e "DELETE FROM mysql.global_priv WHERE User='';"
15331533
# Drop test database
15341534
mysql -e "DROP DATABASE IF EXISTS test"
1535-
mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%"
1535+
mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"
15361536

15371537
mysql -e "FLUSH PRIVILEGES;"
15381538
fi

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
3131
VERBOSE='no'
3232

3333
# Define software versions
34-
HESTIA_INSTALL_VER='1.5.9~alpha'
34+
HESTIA_INSTALL_VER='1.5.9'
3535
# Dependencies
3636
pma_v='5.1.3'
3737
rc_v="1.5.2"
@@ -1551,7 +1551,7 @@ if [ "$mysql" = 'yes' ]; then
15511551
mysql -e "DELETE FROM mysql.global_priv WHERE User='';"
15521552
# Drop test database
15531553
mysql -e "DROP DATABASE IF EXISTS test"
1554-
mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%"
1554+
mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"
15551555

15561556
mysql -e "FLUSH PRIVILEGES;"
15571557
fi

install/upgrade/manual/migrate_ngnix_apache_nginx-php-fpm.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#----------------------------------------------------------#
99

1010
# Includes
11+
# shellcheck source=/etc/hestiacp/hestia.conf
12+
source /etc/hestiacp/hestia.conf
1113
# shellcheck source=/usr/local/hestia/func/main.sh
1214
source $HESTIA/func/main.sh
1315
# shellcheck source=/usr/local/hestia/conf/hestia.conf

install/upgrade/upgrade.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ rl_v='1.16.0'
5050
# UPGRADE_UPDATE_FILEMANAGER_CONFIG: Updates only the configuration file if changes are made but now new issue has been issued!
5151
UPGRADE_UPDATE_FILEMANAGER_CONFIG='false'
5252
# Set version of File manager to update during upgrade if not already installed
53-
fm_v='7.7.1'
53+
fm_v='7.7.2'
5454

5555
# Set version of PHPMailer to update during upgrade if not already installed
56-
pm_v='6.5.3'
56+
pm_v='6.6.0'
5757

5858
# Backblaze
5959
b2_v='3.2.0'

src/deb/hestia/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia
22
Package: hestia
33
Priority: optional
4-
Version: 1.5.9~alpha
4+
Version: 1.5.9
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

web/add/db/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
$hostname = exec('hostname');
116116
$from = "noreply@".$hostname;
117117
$from_name = _('Hestia Control Panel');
118-
$mailtext = sprintf(_('DATABASE_READY'), $user."_".$_POST['v_database'], $user."_".$_POST['v_dbuser'], $_POST['v_password'], $db_admin_link);
118+
$mailtext = sprintf(_('DATABASE_READY'), $user_plain."_".$_POST['v_database'], $user_plain."_".$_POST['v_dbuser'], $_POST['v_password'], $db_admin_link);
119119
send_email($to, $subject, $mailtext, $from, $from_name);
120120
}
121121

web/add/key/index.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
}
1717

1818
if (($_SESSION['userContext'] === 'admin') && (!empty($_GET['user']))) {
19-
$user = $_GET['user'];
19+
$user = escapeshellarg($_GET['user']);
2020
}
2121

22-
$user = escapeshellarg($user);
23-
2422
if (!$_SESSION['error_msg']) {
2523
if ($_POST) {
2624
//key if key already exists

0 commit comments

Comments
 (0)