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.
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Link | Tags |
---|---|
https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-Origin-Magic-iframe | third party advisory exploit |
https://github.com/ofirdagan/cross-domain-local-storage/issues/17 | third party advisory patch |
https://github.com/ofirdagan/cross-domain-local-storage/pull/19 | third party advisory patch |
https://github.com/ofirdagan/cross-domain-local-storage | third party advisory product |