GHSA-5653-437f-5hmc

Suggest an improvement
Source
https://github.com/advisories/GHSA-5653-437f-5hmc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-5653-437f-5hmc/GHSA-5653-437f-5hmc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5653-437f-5hmc
Aliases
Published
2022-04-12T21:29:30Z
Modified
2024-09-03T03:11:47.567896Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Denial of service
Details

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.

Database specific
{
    "nvd_published_at": null,
    "github_reviewed_at": "2022-04-12T21:29:30Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-400"
    ]
}
References

Affected packages

Hex / pow_assent

Package

Name
pow_assent
Purl
pkg:hex/pow_assent

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.4