Weakness (CWE)
CWE-462: Duplicate Key in Associative List (Alist)
Variant Incomplete
Duplicate keys in associative lists can lead to non-unique keys being mistaken for an error.
How to prevent it (3 mitigations)
-
Implementation
Use a hash table instead of an alist.
-
Implementation
Use an alist which checks the uniqueness of hash keys with each entry before inserting the entry.
-
Implementation
Duplicate key entries in an association list are not recommended and should not be allowed.
Source: MITRE CWE-462
1 result · Feed
-
Low 2.1
PingFederate OAuth Grant attribute duplication may use excessive memory
PingFederate OAuth2 grant duplication in PostgreSQL persistent storage allows OAuth2 requests to use excessive memory utilization.