6.1medium
Open Redirect in xdLocalStorage
- Severity
- 6.1medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.94% (higher than 61% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-c6c4-jmqx-3r33
Description
An issue was discovered in xdLocalStorage through 2.0.5. The buildMessage() function in xdLocalStorage.js specifies the wildcard (*) as the targetOrigin when calling the postMessage() function on the iframe object. Therefore any domain that is currently loaded within the iframe can receive the messages that the client 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 | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
An issue was discovered in xdLocalStorage through 2.0.5. The buildMessage() function in xdLocalStorage.js specifies the wildcard (*) as the targetOrigin when calling the postMessage() function on the iframe object. Therefore any domain that is currently loaded within the iframe can receive the messages that the client sends.
NVD (es)
Se detectó un problema en xdLocalStorage versiones hasta 2.0.5. La función buildMessage() en el archivo xdLocalStorage.js especifica el comodín (*) como targetOrigin cuando se llama a la función postMessage () en el objeto iframe. Por lo tanto, cualquier dominio que esté cargado actualmente dentro del iframe puede recibir los mensajes que envía el cliente.
References
| https://github.com/ofirdagan/cross-domain-local-storage | product, third-party-advisory, web | |
| https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-TargetOrigin-Client | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-11611 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-11611 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c6c4-jmqx-3r33 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2020-11611 changed 2026-06-17 | Public domain |