details: https://code.tryton.org/tryton/commit/8825a01110a8
branch: 8.2
user: Cédric Krier <[email protected]>
date: Mon Nov 23 11:25:25 2026 +0100
description:
Prevent searching on password fields
Closes #15266
(grafted from 959f63b78ea6dbb9565addc0d0c86e5461e4fc9e)
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 6e643ef8cf15 -r 8825a01110a8 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 6e643ef8cf15 -r 8825a01110a8 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 6e643ef8cf15 -r 8825a01110a8 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 6e643ef8cf15 -r 8825a01110a8 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