HIGH7.1
GHSA-vrc7-6g8w-jh56
Improper Input Validation in xdLocalStorage
Details
An issue was discovered in xdLocalStorage through 2.0.5. The receiveMessage() function in xdLocalStoragePostMessageApi.js does not implement any validation of the origin of web messages. Remote attackers who can entice a user to load a malicious site can exploit this issue to impact the confidentiality and integrity of data in the local storage of the vulnerable site via malicious web messages.
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/xdlocalstorage
Introduced in:
0No fixed version published yet for xdlocalstorage (npm). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-9544[ADVISORY]
- https://github.com/ofirdagan/cross-domain-local-storage/issues/17[WEB]
- https://github.com/ofirdagan/cross-domain-local-storage/pull/19[WEB]
- https://github.com/ofirdagan/cross-domain-local-storage[WEB]
- https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-Origin-Magic-iframe[WEB]