Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| React-Adal Project | React-Adal | All versions |
Related Weaknesses (CWE)
References
- https://github.com/salvoravida/react-adal/pull/115ExploitThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907ExploitThird Party Advisory
- https://github.com/salvoravida/react-adal/pull/115ExploitThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907ExploitThird Party Advisory
FAQ
What is CVE-2020-7787?
CVE-2020-7787 is a vulnerability with a CVSS score of 8.2 (HIGH). 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 t...
How severe is CVE-2020-7787?
CVE-2020-7787 has been rated HIGH with a CVSS base score of 8.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2020-7787?
Check the references section above for vendor advisories and patch information. Affected products include: React-Adal Project React-Adal.