~ / search / GHSA-5653-437f-5hmc

GHSA-5653-437f-5hmc

Denial of service

Source: GitHub Advisory Database (reviewed) Moderate CVE-2019-16764

Packages

EcosystemPackageAffectedFixed in
Hex pow_assent < 0.4.4 0.4.4

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.