GitHub Advisoryadvisory · Hex

GHSA-5653-437f-5hmc Denial of service

MEDIUM Published 2022-04-12 Modified 2022-04-12 Official page ↗
Aliases
CVE-2019-16764
Ecosystem
Hex
Packages
pow_assent
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-400
Reviewed
2022-04-12

Affected packages

• Hex pow_assent: < 0.4.4 → fixed in 0.4.4

Description

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.

Related

Alias · CVE (1)

  • CVE-2019-16764 The use of `String.to_atom/1` in PowAssent is susceptible to denial of service attacks. vulnerability

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References