artkamote / examples

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.
https://www.serverless.com/examples/
Other
0 stars 0 forks source link

CVE-2020-8244 (Medium) detected in multiple libraries #77

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

mend-bolt-for-github[bot] commented 2 years ago

CVE-2020-8244 - Medium Severity Vulnerability

Vulnerable Libraries - bl-1.2.2.tgz, bl-4.0.2.tgz, bl-1.2.1.tgz, bl-0.9.5.tgz

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

Path to dependency file: /aws-node-github-check/package.json

Path to vulnerable library: /aws-node-github-check/node_modules/bl/package.json,/aws-node-oauth-dropbox-api/node_modules/bl/package.json,/aws-node-typescript-apollo-lambda/node_modules/bl/package.json,/aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Lambda/node_modules/bl/package.json,/aws-node-typescript-sqs-standard/node_modules/bl/package.json,/aws-node-typescript-kinesis/node_modules/bl/package.json

Dependency Hierarchy: - serverless-webpack-5.3.1.tgz (Root Library) - archiver-2.1.1.tgz - tar-stream-1.6.2.tgz - :x: **bl-1.2.2.tgz** (Vulnerable Library)

bl-4.0.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-4.0.2.tgz

Path to dependency file: /aws-node-typescript-apollo-lambda/package.json

Path to vulnerable library: /aws-node-typescript-apollo-lambda/node_modules/serverless/node_modules/bl/package.json,/aws-node-typescript-apollo-lambda/node_modules/@serverless/platform-client-china/node_modules/bl/package.json

Dependency Hierarchy: - serverless-1.79.0.tgz (Root Library) - archiver-3.1.1.tgz - tar-stream-2.1.3.tgz - :x: **bl-4.0.2.tgz** (Vulnerable Library)

bl-1.2.1.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.1.tgz

Path to dependency file: /aws-python-rest-api-with-pynamodb/package.json

Path to vulnerable library: /aws-python-rest-api-with-pynamodb/node_modules/bl/package.json

Dependency Hierarchy: - serverless-python-requirements-2.4.1.tgz (Root Library) - archiver-1.3.0.tgz - tar-stream-1.5.4.tgz - :x: **bl-1.2.1.tgz** (Vulnerable Library)

bl-0.9.5.tgz

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

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

Path to dependency file: /azure-node-typescript-servicebus-trigger-endpoint/package.json

Path to vulnerable library: /azure-node-typescript-servicebus-trigger-endpoint/node_modules/zip-folder/node_modules/bl/package.json,/azure-node-line-bot/node_modules/zip-folder/node_modules/bl/package.json,/azure-node-telegram-bot/node_modules/zip-folder/node_modules/bl/package.json

Dependency Hierarchy: - serverless-azure-functions-2.1.3.tgz (Root Library) - zip-folder-1.0.0.tgz - archiver-0.11.0.tgz - tar-stream-0.4.7.tgz - :x: **bl-0.9.5.tgz** (Vulnerable Library)

Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4

Found in base branch: master

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 (serverless-webpack): 5.3.2

Fix Resolution (bl): 1.2.3

Direct dependency fix Resolution (serverless): 1.80.0-06ed01b8

Fix Resolution (bl): 1.2.3

Direct dependency fix Resolution (serverless-python-requirements): 2.5.0


Step up your Open Source Security Game with Mend here

mend-bolt-for-github[bot] commented 1 month 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 month 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.