GHSA-5653-437F-5HMC
Vulnerability from github – Published: 2022-04-12 21:29 – Updated: 2022-04-12 21:29
VLAI?
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.
Severity ?
6.5 (Medium)
{
"affected": [
{
"package": {
"ecosystem": "Hex",
"name": "pow_assent"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.4.4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2019-16764"
],
"database_specific": {
"cwe_ids": [
"CWE-400"
],
"github_reviewed": true,
"github_reviewed_at": "2022-04-12T21:29:30Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"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.",
"id": "GHSA-5653-437f-5hmc",
"modified": "2022-04-12T21:29:30Z",
"published": "2022-04-12T21:29:30Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/pow-auth/pow_assent/security/advisories/GHSA-368c-xvrv-x986"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-16764"
},
{
"type": "WEB",
"url": "https://github.com/pow-auth/pow_assent/commit/026105eeecc0e3c2f807e7109e745ea93c0fd9cf"
},
{
"type": "PACKAGE",
"url": "https://github.com/pow-auth/pow_assent"
},
{
"type": "WEB",
"url": "https://hex.pm/packages/pow_assent"
},
{
"type": "WEB",
"url": "http://erlang.org/doc/efficiency_guide/commoncaveats.html#list_to_atom-1"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "Denial of service"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…