Exposure of Resource to Wrong Sphere Affecting xdlocalstorage package, versions >=0.0.0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-XDLOCALSTORAGE-5781191
- published 18 Jul 2023
- disclosed 24 May 2022
- credit Unknown
Introduced: 24 May 2022
CVE-2020-11610 Open this link in a new tabHow to fix?
A fix was pushed into the master
branch but not yet published.
Overview
xdlocalstorage is a lightweight js library which implements LocalStorage interface and support cross domain storage by using iframe post message communication.
Affected versions of this package are vulnerable to Exposure of Resource to Wrong Sphere. The postData()
function in xdLocalStoragePostMessageApi.js
specifies the wildcard (*
) as the targetOrigin when calling the postMessage()
function on the parent
object. Therefore any domain can load the application hosting the "magic iframe" and receive the messages that the "magic iframe" sends.