﻿id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 20078,Users with change-user permission in the admin can use filtering to reveal password hash,jacob,nobody,"{{{ ?password__startswith=p // the hash is startswith p ?password__startswith=pd // the hash is startswith pd ?password__startswith=pdk // the hash is startswith pdk ?password__startswith=pdka // the hash is not startswith pdka .... }}} I can get the password hash in auth_user database. We previously disallowed arbitrary lookups traversing to other models, but that was different because it bypassed the permissions system. In this case, only users who already have user-change perms (which already means they have full admin access, since they can set any user they want to superuser status and change their password) can potentially gain access to a user's current password hash (which itself is probably out of their capacity to break now that we use strong hashing). Anssi points out it would be easy to just do this on UserAdmin: def lookup_allowed(self, lookup, value): if lookup.startswith('password'): return False return super(UserAdmin, self).lookup_allowed(lookup, value) ",Bug,closed,contrib.auth,1.5,Release blocker,fixed,,,Accepted,0,0,0,0,0,0