Advisory

GHSA-363h-vj6q-3cmj

Also known as: CVE-2014-4671

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-08-31 22:45 UTC
Modified
2023-11-08 03:57 UTC

Affected packages and fixes

hapi

npm · All systems

Affected

  • introduced 0, fixed 6.1.0 (semver)

Fixed versions

6.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences