-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Parsing untrusted input with Code.string_to_quoted!/1
can create new atoms for identifiers, literal atoms, and keyword keys.
Since atoms are not garbage-collected in the BEAM, an attacker can send input that generates many unique atoms, eventually exhausting the atom table and crashing the VM.
Solution:
Use existing_atoms_only: true
and/or a strict static_atoms_encoder
to reject or whitelist allowed atoms.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request