VDB
Sign up
MEDIUM6.5

GHSA-5653-437f-5hmc

Denial of service

Quick fix

GHSA-5653-437f-5hmc — pow_assent: upgrade to the fixed version with the command below.

mix deps.update pow_assent

Details

The use of `String.to_atom/1` in PowAssent is susceptible to denial of service attacks. In `PowAssent.Phoenix.AuthorizationController` a value is fetched from the user provided params, and `String.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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Hex/pow_assent
Introduced in: 0Fixed in: 0.4.4
Fixmix deps.update pow_assent

References