CVE-2019-16764
Powauth Powassent vulnerability
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.
Affected products
Powassent. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Powauth Powassent runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/pow-auth/pow_assent/commit/026105eeecc0e3c2f807e7109e745ea93c0fd9cf · Patch
- github.com/pow-auth/pow_assent/security/advisories/GHSA-368c-xvrv-x986 · Third Party Advisory
- erlang.org/doc/efficiency_guide/commoncaveats.html#list_to_atom-1
- hex.pm/packages/pow_assent
- nvd.nist.gov/vuln/detail/CVE-2019-16764
- cve.org/CVERecord?id=CVE-2019-16764
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.