2024-02-09 02:18:32 +01:00
|
|
|
--- ssl_autoverify.result 2024-02-08 23:55:13.779166100 +0100
|
|
|
|
+++ ssl_autoverify,win.reject 2024-02-08 23:55:46.988212400 +0100
|
|
|
|
@@ -22,9 +22,9 @@
|
auto-disable --ssl-verify-server-cert in clients, if
* --ssl-verify-server-cert was not enabled explicitly, and
* CA was not specified, and
* fingerprint was not specified, and
* protocol is TCP, and
* no password was provided
insecure passwordless logins are common in test environment, let's
not break them. practically, it hardly makes sense to have strong
MitM protection if an attacker can simply login without a password.
Covers mariadb, mariadb-admin, mariadb-binlog, mariadb-dump
2023-09-15 12:33:52 +02:00
|
|
|
WARNING: option --ssl-verify-server-cert is disabled, because of an insecure passwordless login.
|
|
|
|
test.have_ssl()
|
2023-08-21 16:25:56 +02:00
|
|
|
yes
|
|
|
|
-# mysql --protocol socket -uroot --ssl-verify-server-cert -e "select test.have_ssl()"
|
|
|
|
+# mysql --protocol pipe -uroot --ssl-verify-server-cert -e "select test.have_ssl()"
|
|
|
|
test.have_ssl()
|
|
|
|
-yes
|
|
|
|
+no
|
2024-02-09 02:18:32 +01:00
|
|
|
# mysql --protocol tcp --host 127.0.0.1 -uroot --ssl-verify-server-cert -e "select test.have_ssl()"
|
2023-08-21 16:25:56 +02:00
|
|
|
test.have_ssl()
|
|
|
|
yes
|
2024-02-09 02:18:32 +01:00
|
|
|
@@ -45,16 +45,6 @@
|
2023-08-22 22:49:14 +02:00
|
|
|
# mysql -umulti -ppw2 --ssl-verify-server-cert -e "select test.have_ssl()"
|
|
|
|
test.have_ssl()
|
|
|
|
yes
|
|
|
|
->> MitM active <<
|
|
|
|
-# mysql -uroot --disable-ssl-verify-server-cert -e "select 'Detecting MitM' as MitM, test.have_ssl()"
|
|
|
|
-MitM test.have_ssl()
|
|
|
|
-No MitM found! yes
|
|
|
|
->> MitM active <<
|
|
|
|
-# mysql -unative -pfoo --ssl-verify-server-cert -e "select 'Detecting MitM', test.have_ssl()"
|
|
|
|
-ERROR 2026 (HY000): TLS/SSL error: Failed to verify the server certificate
|
|
|
|
->> MitM active <<
|
|
|
|
-# mysql -ued -pbar --ssl-verify-server-cert -e "select 'Detecting MitM', test.have_ssl()"
|
|
|
|
-ERROR 2026 (HY000): TLS/SSL error: Failed to verify the server certificate
|
|
|
|
drop function have_ssl;
|
|
|
|
drop user native@'%';
|
|
|
|
drop user ed@'%';
|