-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
hashingrandomnessRandom number generation and the Random stdlibRandom number generation and the Random stdlibsecuritySystem security concerns and vulnerabilitiesSystem security concerns and vulnerabilities
Description
Other languages randomize their hash values per process to protect against DOS attacks on hash tables by intentionally causing hash table collisions. This also forces users not to rely on accidental dictionary ordering in their code. Even in languages where dictionaries are ordered, it's a good DOS prevention measure to randomize the hashing per process: the change becomes invisible (because of ordering), but since attackers can't predict hash collisions, they can't force them. Regardless of whether we go with ordered dicts or not, we may want to do this.
exaexa and PallHaraldsson
Metadata
Metadata
Assignees
Labels
hashingrandomnessRandom number generation and the Random stdlibRandom number generation and the Random stdlibsecuritySystem security concerns and vulnerabilitiesSystem security concerns and vulnerabilities