clindseywsdemo / DotNET-eShop-Core

MIT License
0 stars 0 forks source link

PublicApi-1.0.0: 2 vulnerabilities (highest severity is: 7.5) #50

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

mend-for-github-com[bot] commented 2 years ago
Vulnerable Library - PublicApi-1.0.0

Path to dependency file: /tests/FunctionalTests/FunctionalTests.csproj

Path to vulnerable library: /home/wss-scanner/.nuget/packages/microsoft.aspnetcore.http/2.1.0/microsoft.aspnetcore.http.2.1.0.nupkg

Found in HEAD commit: 9fd8dea5c0669a85391baba4982053cfe87d6485

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (PublicApi version) Remediation Possible**
CVE-2024-21907 High 7.5 microsoft.extensions.apidescription.server.3.0.0.nupkg Transitive N/A*
CVE-2020-1045 High 7.5 microsoft.aspnetcore.http.2.1.0.nupkg Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

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

Details

CVE-2024-21907 ### Vulnerable Library - microsoft.extensions.apidescription.server.3.0.0.nupkg

MSBuild tasks and targets for build-time Swagger and OpenApi document generation This package was b...

Library home page: https://api.nuget.org/packages/microsoft.extensions.apidescription.server.3.0.0.nupkg

Path to dependency file: /tests/PublicApiIntegrationTests/PublicApiIntegrationTests.csproj

Path to vulnerable library: /home/wss-scanner/.nuget/packages/microsoft.extensions.apidescription.server/3.0.0/microsoft.extensions.apidescription.server.3.0.0.nupkg

Dependency Hierarchy: - PublicApi-1.0.0 (Root Library) - swashbuckle.aspnetcore.6.3.0.nupkg - :x: **microsoft.extensions.apidescription.server.3.0.0.nupkg** (Vulnerable Library)

Found in HEAD commit: 9fd8dea5c0669a85391baba4982053cfe87d6485

Found in base branch: main

### Vulnerability Details

Newtonsoft.Json before version 13.0.1 is affected by a mishandling of exceptional conditions vulnerability. Crafted data that is passed to the JsonConvert.DeserializeObject method may trigger a StackOverflow exception resulting in denial of service. Depending on the usage of the library, an unauthenticated and remote attacker may be able to cause the denial of service condition.

Publish Date: 2024-01-03

URL: CVE-2024-21907

### CVSS 3 Score Details (7.5)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-5crp-9r3c-p9vr

Release Date: 2024-01-03

Fix Resolution: Newtonsoft.Json - 13.0.1

CVE-2020-1045 ### Vulnerable Library - microsoft.aspnetcore.http.2.1.0.nupkg

ASP.NET Core default HTTP feature implementations.

Library home page: https://api.nuget.org/packages/microsoft.aspnetcore.http.2.1.0.nupkg

Path to dependency file: /tests/PublicApiIntegrationTests/PublicApiIntegrationTests.csproj

Path to vulnerable library: /home/wss-scanner/.nuget/packages/microsoft.aspnetcore.http/2.1.0/microsoft.aspnetcore.http.2.1.0.nupkg

Dependency Hierarchy: - PublicApi-1.0.0 (Root Library) - ardalis.apiendpoints.4.0.1.nupkg - microsoft.aspnetcore.mvc.core.2.1.0.nupkg - microsoft.aspnetcore.authentication.core.2.1.0.nupkg - :x: **microsoft.aspnetcore.http.2.1.0.nupkg** (Vulnerable Library)

Found in HEAD commit: 9fd8dea5c0669a85391baba4982053cfe87d6485

Found in base branch: main

### Vulnerability Details

A security feature bypass vulnerability exists in the way Microsoft ASP.NET Core parses encoded cookie names.

The ASP.NET Core cookie parser decodes entire cookie strings which could allow a malicious attacker to set a second cookie with the name being percent encoded.

The security update addresses the vulnerability by fixing the way the ASP.NET Core cookie parser handles encoded names.

Publish Date: 2020-09-11

URL: CVE-2020-1045

### CVSS 3 Score Details (7.5)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Release Date: 2020-09-11

Fix Resolution: Microsoft.AspNetCore.App - 2.1.22, Microsoft.AspNetCore.All - 2.1.22,Microsoft.NETCore.App - 2.1.22, Microsoft.AspNetCore.Http - 2.1.22