Skip to content

Commit 601e27c

Browse files
author
Kristan Kenney
committed
Merge branch 'staging/features' into main
2 parents 23ef529 + e20beed commit 601e27c

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
33

44
## [CURRENT] - Development
55
### Features
6+
- Use stronger ciphers and Disable TLS v1.1 for vsftpd.
67

78
### Bugfixes
89
- Create mailhelo.conf if it doesnt exist to prevent a error message during grep.

bin/v-change-user-password

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ source $HESTIA/conf/hestia.conf
2525
# Verifications #
2626
#----------------------------------------------------------#
2727

28-
check_args '2' "$#" 'USER PASSWORD'
28+
check_args '1' "$#" 'USER [PASSWORD]'
2929
is_format_valid 'user'
3030
is_object_valid 'user' 'USER' "$user"
3131
is_object_unsuspended 'user' 'USER' "$user"
32+
33+
# Non-interactive (stdin not opened)
34+
[[ -z "$password" && ! -t 0 ]] && read -r password
35+
36+
# Password prompt
37+
[[ -z "$password" ]] && read -r -s -p "Password:" password
38+
3239
is_password_valid
3340

3441
# Perform verification if read-only mode is enabled

install/deb/vsftpd/vsftpd.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ utf8_filesystem=YES
3131
ssl_enable=YES
3232
allow_anon_ssl=NO
3333
require_ssl_reuse=NO
34-
ssl_ciphers=HIGH
35-
ssl_tlsv1=NO
34+
ssl_ciphers=ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256
3635
ssl_sslv2=NO
3736
ssl_sslv3=NO
37+
ssl_tlsv1=NO
3838
force_local_data_ssl=NO
3939
force_local_logins_ssl=NO
4040
rsa_cert_file=/usr/local/hestia/ssl/certificate.crt

install/upgrade/versions/latest.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@
88

99
# Update template files to add warnings
1010
# Backup current templates
11-
cp -r -f $HESTIA/data/templates/* $HESTIA_BACKUP/templates/
1211
echo "[ ! ] Updating default web domain templates..."
1312
$BIN/v-update-web-templates
1413
echo "[ ! ] Updating default mail domain templates..."
1514
$BIN/v-update-mail-templates
1615
echo "[ ! ] Updating default DNS zone templates..."
17-
$BIN/v-update-dns-templates
16+
$BIN/v-update-dns-templates
17+
18+
# Enhance Vsftpd security
19+
if [ "$FTP_SYSTEM" = "vsftpd" ]; then
20+
echo "[ ! ] Hardening Vsftpd TLS configuration..."
21+
if [ -e /etc/vsftpd.conf ]; then
22+
rm -f /etc/vsftpd.conf
23+
fi
24+
cp -f $HESTIA_INSTALL_DIR/vsftpd/vsftpd.conf /etc/
25+
chmod 644 /etc/vsftpd.conf
26+
fi

0 commit comments

Comments
 (0)