high8.8
CVE-2020-11610
xdlocalstorage does not verify request origin
Impact
An issue was discovered in xdLocalStorage through 2.0.5. 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 "magical iframe" and receive the messages that the "magical iframe" sends.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | xdlocalstorage | <= 2.0.5 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Cross Domain Local Storage Project | Cross Domain Local Storage | through 2.0.5 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/ofirdagan/cross-domain-local-storage
- https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-TargetOrigin-Magic-iframe
- https://github.com/advisories/GHSA-mr5m-2385-2vcp
- https://nvd.nist.gov/vuln/detail/CVE-2020-11610
- https://github.com/ofirdagan/cross-domain-local-storage/issues/17
- https://github.com/ofirdagan/cross-domain-local-storage/pull/19