8.8high
xdlocalstorage does not verify request origin
- Severity
- 8.8high CVSS:3.1 by NVD
- Exploit likelihood
- 1.41% (higher than 73% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| xdlocalstorage (npm) | up to 2.0.5 | GitHub Advisory Database |
| cross_domain_local_storage_project cross_domain_local_storage | up to 2.0.5 | NVD |
All scores
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Se detectó un problema en xdLocalStorage versiones hasta 2.0.5. La función postData() en el archivo xdLocalStoragePostMessageApi.js especifica el comodín (*) como targetOrigin cuando llama a la función postMessage() en el objeto primario. Por lo tanto, cualquier dominio puede cargar la aplicación que aloja el "magical iframe" y recibe los mensajes que envía el "magical iframe".
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-11610 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mr5m-2385-2vcp changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2020-11610 changed 2026-06-17 | Public domain |