From 6d42cd80172da0a1aef852e553406e6820e2a4f5 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Mon, 16 Jan 2023 12:43:54 +0400 Subject: [PATCH] Add `spellcheck="false"` on some login text fields to avoid data leaks to spell checking services Ref: https://www.otto-js.com/news/article/chrome-and-edge-enhanced-spellcheck-features-expose-pii-even-your-passwords Signed-off-by: William Desportes --- examples/signon.php | 2 +- templates/login/form.twig | 2 +- templates/server/privileges/login_information_fields.twig | 2 +- templates/server/replication/primary_add_replica_user.twig | 2 +- test/classes/Plugins/Auth/AuthenticationCookieTest.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/signon.php b/examples/signon.php index 3cb9a82855..f3754fb4c7 100644 --- a/examples/signon.php +++ b/examples/signon.php @@ -59,7 +59,7 @@ if (isset($_POST['user'])) { } echo '
-Username:
+Username:
Password:
Host: (will use the one from config.inc.php by default)
diff --git a/templates/login/form.twig b/templates/login/form.twig index a592b9028a..59574ea2a8 100644 --- a/templates/login/form.twig +++ b/templates/login/form.twig @@ -76,7 +76,7 @@ {% trans 'Username:' %}
- +
diff --git a/templates/server/privileges/login_information_fields.twig b/templates/server/privileges/login_information_fields.twig index 69b2de0185..01ac279a62 100644 --- a/templates/server/privileges/login_information_fields.twig +++ b/templates/server/privileges/login_information_fields.twig @@ -8,7 +8,7 @@ - diff --git a/templates/server/replication/primary_add_replica_user.twig b/templates/server/replication/primary_add_replica_user.twig index 5dc9574aa4..6140bcde4e 100644 --- a/templates/server/replication/primary_add_replica_user.twig +++ b/templates/server/replication/primary_add_replica_user.twig @@ -21,7 +21,7 @@ - +
diff --git a/test/classes/Plugins/Auth/AuthenticationCookieTest.php b/test/classes/Plugins/Auth/AuthenticationCookieTest.php index a8bedf551d..b1c8379ab5 100644 --- a/test/classes/Plugins/Auth/AuthenticationCookieTest.php +++ b/test/classes/Plugins/Auth/AuthenticationCookieTest.php @@ -221,7 +221,7 @@ class AuthenticationCookieTest extends AbstractNetworkTestCase $this->assertStringContainsString( '', + 'value="pmauser" class="form-control" autocomplete="username" spellcheck="false">', $result );