logo

CVE-2019-16764 pow_assent

Package

Manager: erlang
Name: pow_assent
Vulnerable Version: >=0 <0.4.4

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00441 pctl0.62343

Details

Denial of service 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.

Metadata

Created: 2022-04-12T21:29:30Z
Modified: 2022-04-12T21:29:30Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-5653-437f-5hmc/GHSA-5653-437f-5hmc.json
CWE IDs: ["CWE-400"]
Alternative ID: GHSA-5653-437f-5hmc
Finding: F002
Auto approve: 1