Lucene search

K
nodejsMichele SpagnuoloNODEJS:12
HistoryOct 17, 2015 - 7:41 p.m.

Rosetta-Flash JSONP Vulnerability

2015-10-1719:41:46
Michele Spagnuolo
www.npmjs.com
39

0.015 Low

EPSS

Percentile

87.2%

Overview

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.

References

Thanks to Patrick Kettner for submitting a pull request to address this in hapi.

CPENameOperatorVersion
hapilt 6.1.0