Improper Authentication
Published Dec 9, 2020
8.2
HIGHCVSS 3.1
EPSS 1.28%
Description
This affects all versions of package react-adal. It is possible for a specially crafted JWT token and request URL can cause the nonce, session and refresh values to be incorrectly validated, causing the application to treat an attacker-generated JWT token as authentic. The logical defect is caused by how the nonce, session and refresh values are stored in the browser local storage or session storage. Each key is automatically appended by ||. When the received nonce and session keys are generated, the list of values is stored in the browser storage, separated by ||, with || always appended to the end of the list. Since || will always be the last 2 characters of the stored values, an empty string ("") will always be in the list of the valid values. Therefore, if an empty session parameter is provided in the callback URL, and a specially-crafted JWT token contains an nonce value of "" (empty string), then adal.js will consider the JWT token as authentic.
Affected products
- Vendor n/a Product React-Adal Defaultn/a
- Version 0StatusaffectedConstraints<unspecified
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | React-Adal | n/a |
|
- n/a
No data.
No Red Hat product state for this CVE.
react-adal
npm
Introduced 0 Fixed 0.5.1
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | react-adal | 0 | 0.5.1 |
Remediation
No remediation recorded yet.
References (5)
- https://github.com/advisories/GHSA-7mpx-vg3c-cmr4 Advisory
- https://github.com/salvoravida/react-adal/commit/74158dba1647b12fe96fa401e306a6287fe9e2a9
- https://github.com/salvoravida/react-adal/pull/115 x_refsource_MISCExploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2020-7787
- https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907 x_refsource_MISCExploitThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-7mpx-vg3c-cmr4 | Advisory | |
| https://github.com/salvoravida/react-adal/commit/74158dba1647b12fe96fa401e306a6287fe9e2a9 | ||
| https://github.com/salvoravida/react-adal/pull/115 | x_refsource_MISCExploitThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-7787 | ||
| https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907 | x_refsource_MISCExploitThird Party Advisory |
Change history (0)
No recorded changes yet.