GHSA-c6c4-jmqx-3r33
Dashboard / Vulnerabilities / GHSA-c6c4-jmqx-3r33
Summary: Open Redirect in xdLocalStorage
Details: An issue was discovered in xdLocalStorage through 2.0.5. The buildMessage() function in xdLocalStorage.js specifies the wildcard (*) as the targetOrigin when calling the postMessage() function on the iframe object. Therefore any domain that is currently loaded within the iframe can receive the messages that the client sends.
References: https://nvd.nist.gov/vuln/detail/CVE-2020-11611, https://github.com/ofirdagan/cross-domain-local-storage, https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-TargetOrigin-Client
Affected packages
Package
Name: xdlocalstorage
Purl: pkg:npm/xdlocalstorage
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -None
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
