Skip to content

Open Redirect in xdLocalStorage

Moderate severity GitHub Reviewed Published Dec 9, 2021 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

npm xdLocalStorage (npm)

Affected versions

<= 2.0.5

Patched versions

None

Description

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

Published by the National Vulnerability Database Apr 7, 2020
Reviewed May 25, 2021
Published to the GitHub Advisory Database Dec 9, 2021
Last updated Feb 1, 2023

Severity

Moderate
6.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weaknesses

CVE ID

CVE-2020-11611

GHSA ID

GHSA-c6c4-jmqx-3r33

Source code

No known source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.