Skip to content

Conversation

@heri16
Copy link
Contributor

@heri16 heri16 commented Jul 25, 2016

We must never create atoms in Erlang based on external input, as this might cause the VM to crash.

This patch preloads known atoms and uses String.to_existing_atom/2 to avoid memory leaks, which mitigates risk of Denial of Service attack.

heri16 added 3 commits July 25, 2016 23:00
Should never allow external input from creating atoms in Erlang.
Because, it allows Denial Of Service using mime headers, causing the VM to crash.
Should never allow external input from creating atoms in Erlang.
Because, it allows Denial Of Service using mime headers, causing the VM to crash.
Bump version as API has changed.
Keys for header are now either string or atom.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant