Vulnerability Details : CVE-2019-16764
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.
Vulnerability category: Denial of service
Products affected by CVE-2019-16764
- cpe:2.3:a:powauth:powassent:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2019-16764
0.44%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 60 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2019-16764
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
2.1
|
LOW | AV:L/AC:L/Au:N/C:N/I:N/A:P |
3.9
|
2.9
|
NIST | |
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
1.8
|
3.6
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
2.8
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2019-16764
-
The product does not properly control the allocation and maintenance of a limited resource.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2019-16764
-
https://github.com/pow-auth/pow_assent/commit/026105eeecc0e3c2f807e7109e745ea93c0fd9cf
Prevent `String.to_atom/1` calls · pow-auth/pow_assent@026105e · GitHubPatch
-
https://hex.pm/packages/pow_assent
pow_assent | HexRelease Notes
-
https://github.com/pow-auth/pow_assent/security/advisories/GHSA-368c-xvrv-x986
Denial of service · Advisory · pow-auth/pow_assent · GitHubThird Party Advisory
-
http://erlang.org/doc/efficiency_guide/commoncaveats.html#list_to_atom-1
Erlang -- Common CaveatsProduct
Jump to