{"id":"GHSA-mr5m-2385-2vcp","summary":"xdlocalstorage does not verify request origin","details":"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.","aliases":["CVE-2020-11610"],"modified":"2023-11-01T04:51:32.488612Z","published":"2022-05-24T17:13:39Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-07-17T18:29:36Z","nvd_published_at":"2020-04-07T18:15:00Z","cwe_ids":["CWE-668"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11610"},{"type":"WEB","url":"https://github.com/ofirdagan/cross-domain-local-storage/issues/17"},{"type":"WEB","url":"https://github.com/ofirdagan/cross-domain-local-storage/pull/19"},{"type":"PACKAGE","url":"https://github.com/ofirdagan/cross-domain-local-storage"},{"type":"WEB","url":"https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-TargetOrigin-Magic-iframe"}],"affected":[{"package":{"name":"xdlocalstorage","ecosystem":"npm","purl":"pkg:npm/xdlocalstorage"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.0.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-mr5m-2385-2vcp/GHSA-mr5m-2385-2vcp.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}