CVE-2020-7787
Last modified
CVE-2020-7787 is a high-severity vulnerability rated 8.2/10 on the CVSS scale. 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. EPSS estimates a 1.27% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| React-Adal Project | React-Adal | All versions |
References
- https://github.com/salvoravida/react-adal/pull/115Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907Exploit, Third Party Advisory
- https://github.com/salvoravida/react-adal/pull/115Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-7787?
How severe is CVE-2020-7787?
How do I fix CVE-2020-7787?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-7780This affects the package com.softwaremill.akka-http-session:…8.8
- CVE-2020-7781This affects the package connection-tester before 0.2.1. The…9.8
- CVE-2020-7782This affects all versions of package spritesheet-js. It depe…9.8
- CVE-2020-7784This affects all versions of package ts-process-promises. Th…9.8
- CVE-2020-7785This affects all versions of package node-ps. The injection …9.8
- CVE-2020-7786This affects all versions of package macfromip. The injectio…9.8
- CVE-2020-7788This affects the package ini before 1.3.6. If an attacker su…9.8
- CVE-2020-7789This affects the package node-notifier before 9.0.0. It allo…5.6
- CVE-2020-7790This affects the package spatie/browsershot from 0.0.0. By s…5.3
- CVE-2020-7791This affects the package i18n before 2.1.15. Vulnerability a…7.5
- CVE-2020-7792This affects all versions of package mout. The deepFillIn fu…7.5
- CVE-2020-7793The package ua-parser-js before 0.7.23 are vulnerable to Reg…7.5
Are you affected by CVE-2020-7787?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
