CVE-2020-7787

CVSS V2 Medium 5 CVSS V3 High 8.2
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.
Overview
  • CVE ID
  • CVE-2020-7787
  • Assigner
  • report@snyk.io
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2020-12-09T17:15:32
  • Last Modified Date
  • 2020-12-11T17:01:29
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:react-adal_project:react-adal:*:*:*:*:*:node.js:*:* 1 OR
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:N/AC:L/Au:N/C:N/I:P/A:N
  • Access Vector
  • NETWORK
  • Access Compatibility
  • LOW
  • Authentication
  • NONE
  • Confidentiality Impact
  • NONE
  • Integrity Impact
  • PARTIAL
  • Availability Impact
  • NONE
  • Base Score
  • 5
  • Severity
  • MEDIUM
  • Exploitability Score
  • 10
  • Impact Score
  • 2.9
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
  • Attack Vector
  • NETWORK
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • HIGH
  • Availability Impact
  • NONE
  • Base Score
  • 8.2
  • Base Severity
  • HIGH
  • Exploitability Score
  • 3.9
  • Impact Score
  • 4.2
References
Reference URL Reference Tags
https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907 Exploit Third Party Advisory
https://github.com/salvoravida/react-adal/pull/115 Exploit Third Party Advisory
History
Created Old Value New Value Data Type Notes
2022-05-10 07:30:38 Added to TrackCVE
2022-12-05 17:51:34 2020-12-09T17:15Z 2020-12-09T17:15:32 CVE Published Date updated
2022-12-05 17:51:34 2020-12-11T17:01:29 CVE Modified Date updated
2022-12-05 17:51:34 Analyzed Vulnerability Status updated