UpendoVentures / Gamification-Module-Suite

A suite of modules that help to create and foster a community on your DNN-based website.
https://upendoventures.com/What/CMS/DNN
MIT License
0 stars 0 forks source link

Newtonsoft.Json-10.0.1.20720.dll: 1 vulnerabilities (highest severity is: 7.5) #21

Open mend-bolt-for-github[bot] opened 1 year ago

mend-bolt-for-github[bot] commented 1 year ago
Vulnerable Library - Newtonsoft.Json-10.0.1.20720.dll

Json.NET .NET 4.0

Library home page: https://api.nuget.org/packages/newtonsoft.json.10.0.1.nupkg

Path to vulnerable library: /Modules/CommunityMetrics/packages/Newtonsoft.Json.10.0.1/lib/net40/Newtonsoft.Json.dll,/Modules/WebAnalytics/packages/Newtonsoft.Json.10.0.1/lib/net40/Newtonsoft.Json.dll

Found in HEAD commit: 0bc8705a3c3524a4b4a75d9f6120502aab4494d6

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (Newtonsoft.Json version) Remediation Possible**
WS-2022-0161 High 7.5 detected in multiple dependencies Direct Newtonsoft.Json - 13.0.1;Microsoft.Extensions.ApiDescription.Server - 6.0.0

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

Details

WS-2022-0161 ### Vulnerable Libraries - Newtonsoft.Json-10.0.1.20720.dll, Newtonsoft.Json-10.0.1.20720.dll, Newtonsoft.Json-10.0.1.20720.dll, Newtonsoft.Json-10.0.1.20720.dll, Newtonsoft.Json-10.0.1.20720.dll, Newtonsoft.Json-10.0.1.20720.dll, Newtonsoft.Json-10.0.1.20720.dll

### Newtonsoft.Json-10.0.1.20720.dll

Json.NET .NET 4.0

Library home page: https://api.nuget.org/packages/newtonsoft.json.10.0.1.nupkg

Path to vulnerable library: /Modules/CommunityMetrics/packages/Newtonsoft.Json.10.0.1/lib/net40/Newtonsoft.Json.dll,/Modules/WebAnalytics/packages/Newtonsoft.Json.10.0.1/lib/net40/Newtonsoft.Json.dll

Dependency Hierarchy: - :x: **Newtonsoft.Json-10.0.1.20720.dll** (Vulnerable Library) ### Newtonsoft.Json-10.0.1.20720.dll

Json.NET .NET Standard 1.3

Library home page: https://api.nuget.org/packages/newtonsoft.json.10.0.1.nupkg

Path to vulnerable library: /Modules/WebAnalytics/packages/Newtonsoft.Json.10.0.1/lib/netstandard1.3/Newtonsoft.Json.dll,/Modules/CommunityMetrics/packages/Newtonsoft.Json.10.0.1/lib/netstandard1.3/Newtonsoft.Json.dll

Dependency Hierarchy: - :x: **Newtonsoft.Json-10.0.1.20720.dll** (Vulnerable Library) ### Newtonsoft.Json-10.0.1.20720.dll

Json.NET

Library home page: https://api.nuget.org/packages/newtonsoft.json.10.0.1.nupkg

Path to vulnerable library: /Modules/WebAnalytics/packages/Newtonsoft.Json.10.0.1/lib/net45/Newtonsoft.Json.dll,/Modules/CommunityMetrics/packages/Newtonsoft.Json.10.0.1/lib/net45/Newtonsoft.Json.dll

Dependency Hierarchy: - :x: **Newtonsoft.Json-10.0.1.20720.dll** (Vulnerable Library) ### Newtonsoft.Json-10.0.1.20720.dll

Json.NET .NET Standard 1.0

Library home page: https://api.nuget.org/packages/newtonsoft.json.10.0.1.nupkg

Path to vulnerable library: /Modules/CommunityMetrics/packages/Newtonsoft.Json.10.0.1/lib/netstandard1.0/Newtonsoft.Json.dll,/Modules/WebAnalytics/packages/Newtonsoft.Json.10.0.1/lib/netstandard1.0/Newtonsoft.Json.dll

Dependency Hierarchy: - :x: **Newtonsoft.Json-10.0.1.20720.dll** (Vulnerable Library) ### Newtonsoft.Json-10.0.1.20720.dll

Json.NET Portable

Library home page: https://api.nuget.org/packages/newtonsoft.json.10.0.1.nupkg

Path to vulnerable library: /Modules/CommunityMetrics/packages/Newtonsoft.Json.10.0.1/lib/portable-net45+win8+wpa81+wp8/Newtonsoft.Json.dll,/Modules/WebAnalytics/packages/Newtonsoft.Json.10.0.1/lib/portable-net45+win8+wpa81+wp8/Newtonsoft.Json.dll

Dependency Hierarchy: - :x: **Newtonsoft.Json-10.0.1.20720.dll** (Vulnerable Library) ### Newtonsoft.Json-10.0.1.20720.dll

Json.NET .NET 3.5

Library home page: https://api.nuget.org/packages/newtonsoft.json.10.0.1.nupkg

Path to vulnerable library: /Modules/WebAnalytics/packages/Newtonsoft.Json.10.0.1/lib/net35/Newtonsoft.Json.dll,/Modules/CommunityMetrics/packages/Newtonsoft.Json.10.0.1/lib/net35/Newtonsoft.Json.dll

Dependency Hierarchy: - :x: **Newtonsoft.Json-10.0.1.20720.dll** (Vulnerable Library) ### Newtonsoft.Json-10.0.1.20720.dll

Json.NET .NET 2.0

Library home page: https://api.nuget.org/packages/newtonsoft.json.10.0.1.nupkg

Path to vulnerable library: /Modules/CommunityMetrics/packages/Newtonsoft.Json.10.0.1/lib/net20/Newtonsoft.Json.dll,/Modules/WebAnalytics/packages/Newtonsoft.Json.10.0.1/lib/net20/Newtonsoft.Json.dll

Dependency Hierarchy: - :x: **Newtonsoft.Json-10.0.1.20720.dll** (Vulnerable Library)

Found in HEAD commit: 0bc8705a3c3524a4b4a75d9f6120502aab4494d6

Found in base branch: dev

### Vulnerability Details

Newtonsoft.Json prior to version 13.0.1 is vulnerable to Insecure Defaults due to improper handling of expressions with high nesting level that lead to StackOverFlow exception or high CPU and RAM usage. Exploiting this vulnerability results in Denial Of Service (DoS). \n\nThe serialization and deserialization path have different properties regarding the issue.\n\nDeserializing methods (like `JsonConvert.DeserializeObject`) will process the input that results in burning the CPU, allocating memory, and consuming a thread of execution. Quite high nesting level (>10kk, or 9.5MB of `{a:{a:{...` input) is needed to achieve the latency over 10 seconds, depending on the hardware.\n\nSerializing methods (like `JsonConvert.Serialize` or `JObject.ToString`) will throw StackOverFlow exception with the nesting level of around 20k.\n\nTo mitigate the issue one either need to update Newtonsoft.Json to 13.0.1 or set `MaxDepth` parameter in the `JsonSerializerSettings`. This can be done globally with the following statement. After that the parsing of the nested input will fail fast with `Newtonsoft.Json.JsonReaderException`:\n\n``` \nJsonConvert.DefaultSettings = () => new JsonSerializerSettings { MaxDepth = 128 };\n```\n\nRepro code:\n```\n//Create a string representation of an highly nested object (JSON serialized)\nint nRep = 25000;\nstring json = string.Concat(Enumerable.Repeat(\"{a:\", nRep)) + \"1\" +\n string.Concat(Enumerable.Repeat(\"}\", nRep));\n\n//Parse this object (leads to high CPU/RAM consumption)\nvar parsedJson = JsonConvert.DeserializeObject(json);\n\n// Methods below all throw stack overflow with nRep around 20k and higher\n// string a = parsedJson.ToString();\n// string b = JsonConvert.SerializeObject(parsedJson);\n```\n\n### Additional affected product and version information\n**The original statement about the problem only affecting IIS applications is misleading.** Any application is affected, however the IIS has a behavior that stops restarting the instance after some time resulting in a harder-to-fix DoS.**

Publish Date: 2022-06-22

URL: WS-2022-0161

### 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

Release Date: 2022-06-22

Fix Resolution: Newtonsoft.Json - 13.0.1;Microsoft.Extensions.ApiDescription.Server - 6.0.0

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)