Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

potential denial of service vector #16

Merged
merged 1 commit into from
Jul 11, 2018
Merged

Conversation

dbhobbs
Copy link
Contributor

@dbhobbs dbhobbs commented Jul 11, 2018

I've been testing this locally and have been able to bring down my local node by sending requests with cursors that decode into non-existent atoms.

Because these cursors are user-supplied, the library should switch to using :erlang.binary_to_term/2 with the [:safe] option during the decoding step.

@stevedomin
Copy link
Member

Good catch @dbhobbs, thanks for the PR!

@stevedomin stevedomin merged commit 01ed029 into duffelhq:master Jul 11, 2018
@stevedomin
Copy link
Member

@dbhobbs 0.4 is out with the fix.

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.

2 participants