GHSA-363h-vj6q-3cmj
Rosetta-Flash JSONP Vulnerability in hapi
Quick fix
GHSA-363h-vj6q-3cmj — hapi: upgrade to the fixed version with the command below.
npm install hapi@6.1.0Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-4671[ADVISORY]
- https://github.com/spumko/hapi/pull/1766[WEB]
- https://github.com/hapijs/hapi/commit/d47f57abf23bdaa84f61aed2bac94ae5f358afb7[WEB]
- https://github.com/patrickkettner[WEB]
- https://github.com/spumko/hapi[PACKAGE]
- https://www.npmjs.com/advisories/12[WEB]
- http://helpx.adobe.com/security/products/flash-player/apsb14-17.html[WEB]
- http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash[WEB]
- http://rhn.redhat.com/errata/RHSA-2014-0860.html[WEB]
- http://secunia.com/advisories/59774[WEB]
- http://secunia.com/advisories/59837[WEB]
- http://security.gentoo.org/glsa/glsa-201407-02.xml[WEB]
- http://www.securityfocus.com/bid/68457[WEB]
- http://www.securitytracker.com/id/1030533[WEB]