Denial of service
Moderate severity
GitHub Reviewed
Published
Apr 12, 2022
to the GitHub Advisory Database
•
Updated Jan 11, 2023
Description
Published to the GitHub Advisory Database
Apr 12, 2022
Reviewed
Apr 12, 2022
Last updated
Jan 11, 2023
The use of
String.to_atom/1
in PowAssent is susceptible to denial of service attacks. InPowAssent.Phoenix.AuthorizationController
a value is fetched from the user provided params, andString.to_atom/1
is used to convert the binary value to an atom so it can be used to fetch the provider configuration value. This is unsafe as it is user provided data, and can be used to fill up the whole atom table of ~1M which will cause the app to crash.References