details: https://code.tryton.org/tryton/commit/ed1b2a33e809
branch: 7.8
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 af1c647dd7f6 -r ed1b2a33e809 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 7.8.2 - 2026-07-15
diff -r af1c647dd7f6 -r ed1b2a33e809 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
@@ -116,6 +116,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 af1c647dd7f6 -r ed1b2a33e809 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 af1c647dd7f6 -r ed1b2a33e809 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
@@ -239,6 +239,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