CVE-2020-11610
HIGH8.8EPSS 0.23%xdlocalstorage does not verify request origin
Published: 5/24/2022Modified: 11/8/2023
Also known as:GHSA-mr5m-2385-2vcp
Description
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 (1)
- npm/xdlocalstoragefrom 0, <= 2.0.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2020-11610
- PATCHhttps://github.com/ofirdagan/cross-domain-local-storage
- WEBhttps://github.com/ofirdagan/cross-domain-local-storage/issues/17
- WEBhttps://github.com/ofirdagan/cross-domain-local-storage/pull/19
- WEBhttps://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-TargetOrigin-Magic-iframe