GHSA-mr5m-2385-2vcp

Suggest an improvement
Source
https://github.com/advisories/GHSA-mr5m-2385-2vcp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-mr5m-2385-2vcp/GHSA-mr5m-2385-2vcp.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-mr5m-2385-2vcp
Aliases
Published
2022-05-24T17:13:39Z
Modified
2023-11-01T04:51:32.488612Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2020-04-07T18:15:00Z",
    "cwe_ids": [
        "CWE-668"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-07-17T18:29:36Z"
}
References

Affected packages

npm / xdlocalstorage

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
2.0.5