alieint / aspnetcore-2.1.24

aspnetcore-2.1.24 source scab
Other
0 stars 0 forks source link

msgpack5-4.0.2.tgz: 2 vulnerabilities (highest severity is: 6.7) #217

Open mend-bolt-for-github[bot] opened 2 years ago

mend-bolt-for-github[bot] commented 2 years ago
Vulnerable Library - msgpack5-4.0.2.tgz

A msgpack v5 implementation for node.js and the browser, with extension points

Library home page: https://registry.npmjs.org/msgpack5/-/msgpack5-4.0.2.tgz

Path to dependency file: /src/SignalR/clients/ts/signalr-protocol-msgpack/package.json

Path to vulnerable library: /src/SignalR/clients/ts/signalr-protocol-msgpack/node_modules/msgpack5/package.json,/src/SignalR/clients/ts/FunctionalTests/node_modules/@aspnet/signalr-protocol-msgpack/node_modules/msgpack5/package.json

Found in HEAD commit: e512408cb0b9fc17164d22b08f507d2e41131490

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (msgpack5 version) Remediation Possible**
CVE-2021-21368 Medium 6.7 msgpack5-4.0.2.tgz Direct 4.5.1
CVE-2020-8244 Medium 6.5 bl-1.2.2.tgz Transitive 4.1.0

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2021-21368 ### Vulnerable Library - msgpack5-4.0.2.tgz

A msgpack v5 implementation for node.js and the browser, with extension points

Library home page: https://registry.npmjs.org/msgpack5/-/msgpack5-4.0.2.tgz

Path to dependency file: /src/SignalR/clients/ts/signalr-protocol-msgpack/package.json

Path to vulnerable library: /src/SignalR/clients/ts/signalr-protocol-msgpack/node_modules/msgpack5/package.json,/src/SignalR/clients/ts/FunctionalTests/node_modules/@aspnet/signalr-protocol-msgpack/node_modules/msgpack5/package.json

Dependency Hierarchy: - :x: **msgpack5-4.0.2.tgz** (Vulnerable Library)

Found in HEAD commit: e512408cb0b9fc17164d22b08f507d2e41131490

Found in base branch: main

### Vulnerability Details

msgpack5 is a msgpack v5 implementation for node.js and the browser. In msgpack5 before versions 3.6.1, 4.5.1, and 5.2.1 there is a "Prototype Poisoning" vulnerability. When msgpack5 decodes a map containing a key "__proto__", it assigns the decoded value to __proto__. Object.prototype.__proto__ is an accessor property for the receiver's prototype. If the value corresponding to the key __proto__ decodes to an object or null, msgpack5 sets the decoded object's prototype to that value. An attacker who can submit crafted MessagePack data to a service can use this to produce values that appear to be of other types; may have unexpected prototype properties and methods (for example length, numeric properties, and push et al if __proto__'s value decodes to an Array); and/or may throw unexpected exceptions when used (for example if the __proto__ value decodes to a Map or Date). Other unexpected behavior might be produced for other types. There is no effect on the global prototype. This "prototype poisoning" is sort of a very limited inversion of a prototype pollution attack. Only the decoded value's prototype is affected, and it can only be set to msgpack5 values (though if the victim makes use of custom codecs, anything could be a msgpack5 value). We have not found a way to escalate this to true prototype pollution (absent other bugs in the consumer's code). This has been fixed in msgpack5 version 3.6.1, 4.5.1, and 5.2.1. See the referenced GitHub Security Advisory for an example and more details.

Publish Date: 2021-03-12

URL: CVE-2021-21368

### CVSS 3 Score Details (6.7)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: Low - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/mcollina/msgpack5/security/advisories/GHSA-gmjw-49p4-pcfm

Release Date: 2021-03-12

Fix Resolution: 4.5.1

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2020-8244 ### Vulnerable Library - bl-1.2.2.tgz

Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!

Library home page: https://registry.npmjs.org/bl/-/bl-1.2.2.tgz

Dependency Hierarchy: - msgpack5-4.0.2.tgz (Root Library) - :x: **bl-1.2.2.tgz** (Vulnerable Library)

Found in HEAD commit: e512408cb0b9fc17164d22b08f507d2e41131490

Found in base branch: main

### Vulnerability Details

A buffer over-read vulnerability exists in bl <4.0.3, <3.0.1, <2.2.1, and <1.2.3 which could allow an attacker to supply user input (even typed) that if it ends up in consume() argument and can become negative, the BufferList state can be corrupted, tricking it into exposing uninitialized memory via regular .slice() calls.

Publish Date: 2020-08-30

URL: CVE-2020-8244

### CVSS 3 Score Details (6.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: None - Availability Impact: Low

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-pp7h-53gx-mx7r

Release Date: 2020-08-30

Fix Resolution (bl): 1.2.3

Direct dependency fix Resolution (msgpack5): 4.1.0

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
mend-bolt-for-github[bot] commented 1 day ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-bolt-for-github[bot] commented 1 day ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.