CVE-2019-16764
Last modified
CVE-2019-16764 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 1.08% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Powauth | Powassent | < 0.4.4 |
References
- https://github.com/pow-auth/pow_assent/security/advisories/GHSA-368c-xvrv-x986Third Party Advisory
- https://hex.pm/packages/pow_assentRelease Notes
- https://github.com/pow-auth/pow_assent/security/advisories/GHSA-368c-xvrv-x986Third Party Advisory
- https://hex.pm/packages/pow_assentRelease Notes
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2019-16764?
How severe is CVE-2019-16764?
How do I fix CVE-2019-16764?
Are you affected by CVE-2019-16764?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
