details:   https://code.tryton.org/tryton/commit/959f63b78ea6
branch:    default
user:      Cédric Krier <[email protected]>
date:      Mon Nov 23 11:25:25 2026 +0100
description:
        Prevent searching on password fields

        Closes #15266
diffstat:

 modules/web_user/CHANGELOG  |  1 +
 modules/web_user/user.py    |  8 ++++++++
 trytond/CHANGELOG           |  1 +
 trytond/trytond/res/user.py |  8 ++++++++
 4 files changed, 18 insertions(+), 0 deletions(-)

diffs (52 lines):

diff -r 2bc10bed0aec -r 959f63b78ea6 modules/web_user/CHANGELOG
--- a/modules/web_user/CHANGELOG        Tue Nov 24 10:45:09 2026 +0100
+++ b/modules/web_user/CHANGELOG        Mon Nov 23 11:25:25 2026 +0100
@@ -1,3 +1,4 @@
+* Prevent searching on password hash and reset password token (issue15266)
 * Forbid to read the user's reset password and password hash (issue15259 
issue15263)
 
 Version 8.2.0 - 2026-10-05
diff -r 2bc10bed0aec -r 959f63b78ea6 modules/web_user/user.py
--- a/modules/web_user/user.py  Tue Nov 24 10:45:09 2026 +0100
+++ b/modules/web_user/user.py  Mon Nov 23 11:25:25 2026 +0100
@@ -117,6 +117,14 @@
         return 'x' * 10
 
     @classmethod
+    def domain_password_hash(cls, domain, tables):
+        return Null
+
+    @classmethod
+    def domain_reset_password_token(cls, domain, tables):
+        return Null
+
+    @classmethod
     def set_password(cls, users, name, value):
         pool = Pool()
         User = pool.get('res.user')
diff -r 2bc10bed0aec -r 959f63b78ea6 trytond/CHANGELOG
--- a/trytond/CHANGELOG Tue Nov 24 10:45:09 2026 +0100
+++ b/trytond/CHANGELOG Mon Nov 23 11:25:25 2026 +0100
@@ -1,3 +1,4 @@
+* Prevent searching on password hash and reset password (issue15266)
 * Enforce access rights when exporting resource data (issue15264)
 * Forbid to read the user's reset password (issue15258)
 * Limit the decompressed size of request (issue15257)
diff -r 2bc10bed0aec -r 959f63b78ea6 trytond/trytond/res/user.py
--- a/trytond/trytond/res/user.py       Tue Nov 24 10:45:09 2026 +0100
+++ b/trytond/trytond/res/user.py       Mon Nov 23 11:25:25 2026 +0100
@@ -254,6 +254,14 @@
         return 'x' * 10
 
     @classmethod
+    def domain_password_hash(cls, domain, tables):
+        return Null
+
+    @classmethod
+    def domain_password_reset(cls, domain, tables):
+        return Null
+
+    @classmethod
     def set_password(cls, users, name, value):
         if value == 'x' * 10:
             return

Reply via email to