CVE-2014-4671: Hapi Rosetta-Flash JSONP Vulnerability Vulnerability
MODERATECVE-2014-4671 is a MODERATE rosetta-flash jsonp vulnerability vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Hapi libraries in the npm ecosystem. The issue involves rosetta-flash jsonp vulnerability in hapi. Remediation is available by upgrading affected packages to version 6.1.0.
CVE-2014-4671 at a Glance
How to Fix CVE-2014-4671
To remediate this vulnerability, upgrade all affected Hapi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install hapi@6.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls hapi
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2014-4671, inspect your project dependencies using npm:
npm ls hapi
Analyze the terminal output to locate any version of Hapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.0), your application is affected.
Note: The npm ls hapi command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Hapi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2014-4671 Affected Hapi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
hapi
|
npm |
< 6.1.0
|
6.1.0
|
References
Frequently Asked Questions
What is CVE-2014-4671?
Which Hapi versions are affected?
What version fixes CVE-2014-4671?
Is hapi affected?
What CWE is associated with CVE-2014-4671?
How can I check npm dependencies for CVE-2014-4671?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-363h-vj6q-3cmj",
"modified" : "2021-09-23T19:28:27Z",
"published" : "2020-08-31T22:45:35Z",
"aliases" : [ "CVE-2014-4671" ],
"summary" : "Rosetta-Flash JSONP Vulnerability in hapi",
"details" : "This description taken from the pull request provided by Patrick Kettner.\n\n\n\nVersions 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.\n\n\n\n\n\n## Recommendation\n\n- Update hapi to version 6.1.1 or later.\n\nAlternatively, 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" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "hapi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-4671"
}, {
"type" : "WEB",
"url" : "https://github.com/spumko/hapi/pull/1766"
}, {
"type" : "WEB",
"url" : "https://github.com/hapijs/hapi/commit/d47f57abf23bdaa84f61aed2bac94ae5f358afb7"
}, {
"type" : "WEB",
"url" : "https://github.com/patrickkettner"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spumko/hapi"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/12"
}, {
"type" : "WEB",
"url" : "http://helpx.adobe.com/security/products/flash-player/apsb14-17.html"
}, {
"type" : "WEB",
"url" : "http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-0860.html"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59774"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/59837"
}, {
"type" : "WEB",
"url" : "http://security.gentoo.org/glsa/glsa-201407-02.xml"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/68457"
}, {
"type" : "WEB",
"url" : "http://www.securitytracker.com/id/1030533"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:07:45Z",
"nvd_published_at" : null
}
}