GHSA-363h-vj6q-3cmj

Suggest an improvement
Source
https://github.com/advisories/GHSA-363h-vj6q-3cmj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-363h-vj6q-3cmj/GHSA-363h-vj6q-3cmj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-363h-vj6q-3cmj
Aliases
  • CVE-2014-4671
Published
2020-08-31T22:45:35Z
Modified
2023-11-08T03:57:42.033038Z
Summary
Rosetta-Flash JSONP Vulnerability in hapi
Details

This description taken from the pull request provided by Patrick Kettner.

Versions 6.1.0 and earlier of hapi are vulnerable to a rosetta-flash attack, which can be used by attackers to send data across domains and break the browser same-origin-policy.

Recommendation

  • Update hapi to version 6.1.1 or later.

Alternatively, a solution previously implemented by Google, Facebook, and Github is to prepend callbacks with an empty inline comment. This will cause the flash parser to break on invalid inputs and prevent the issue, and how the issue has been resolved internally in hapi.

Database specific
{
    "github_reviewed": true,
    "severity": "MODERATE",
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-352"
    ],
    "github_reviewed_at": "2020-08-31T18:07:45Z"
}
References

Affected packages

npm / hapi

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-363h-vj6q-3cmj/GHSA-363h-vj6q-3cmj.json"