[issue13703] Hash collision security issue
Martin v. Löwis
report at bugs.python.org
Fri Jan 27 00:03:35 CET 2012
Martin v. Löwis <martin at v.loewis.de> added the comment:
> But using non-__builtin__.str objects (such as UserString) would expose the
> user to an attack?
Not necessarily: only if they use these strings as dictionary keys, and only
if they do so in contexts where arbitrary user input is consumed. In these
cases, users need to rewrite their code to replace the keys. Using dictionary
wrappers (such as UserDict), this is possible using only local changes.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list