-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dotnet): add support dependency location for dotnet-core files (#…
- Loading branch information
1 parent
30c8d75
commit 1ddd6d3
Showing
6 changed files
with
106 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"SchemaVersion": 2, | ||
"ArtifactName": "testdata/fixtures/fs/dotnet", | ||
"ArtifactType": "filesystem", | ||
"Metadata": { | ||
"ImageConfig": { | ||
"architecture": "", | ||
"created": "0001-01-01T00:00:00Z", | ||
"os": "", | ||
"rootfs": { | ||
"type": "", | ||
"diff_ids": null | ||
}, | ||
"config": {} | ||
} | ||
}, | ||
"Results": [ | ||
{ | ||
"Target": "datacollector.deps.json", | ||
"Class": "lang-pkgs", | ||
"Type": "dotnet-core", | ||
"Packages": [ | ||
{ | ||
"Name": "Newtonsoft.Json", | ||
"Version": "9.0.1", | ||
"Locations": [ | ||
{ | ||
"StartLine": 8, | ||
"EndLine": 14 | ||
} | ||
] | ||
} | ||
], | ||
"Vulnerabilities": [ | ||
{ | ||
"VulnerabilityID": "GHSA-5crp-9r3c-p9vr", | ||
"PkgName": "Newtonsoft.Json", | ||
"InstalledVersion": "9.0.1", | ||
"FixedVersion": "13.0.1", | ||
"Layer": {}, | ||
"SeveritySource": "ghsa", | ||
"PrimaryURL": "https://github.com/advisories/GHSA-5crp-9r3c-p9vr", | ||
"DataSource": { | ||
"ID": "ghsa", | ||
"Name": "GitHub Security Advisory Nuget", | ||
"URL": "https://github.com/advisories?query=type%3Areviewed+ecosystem%3Anuget" | ||
}, | ||
"Title": "Improper Handling of Exceptional Conditions in Newtonsoft.Json", | ||
"Description": "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.", | ||
"Severity": "HIGH", | ||
"CweIDs": [ | ||
"CWE-755" | ||
], | ||
"CVSS": { | ||
"ghsa": { | ||
"V3Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", | ||
"V3Score": 7.5 | ||
} | ||
}, | ||
"References": [ | ||
"https://alephsecurity.com/2018/10/22/StackOverflowException/", | ||
"https://alephsecurity.com/vulns/aleph-2018004" | ||
], | ||
"PublishedDate": "2022-06-22T15:08:47Z", | ||
"LastModifiedDate": "2022-06-27T18:37:23Z" | ||
} | ||
] | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
integration/testdata/fixtures/fs/dotnet/datacollector.deps.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"runtimeTarget": { | ||
"name": ".NETCoreApp,Version=v2.1", | ||
"signature": "" | ||
}, | ||
"compilationOptions": {}, | ||
"libraries": { | ||
"Newtonsoft.Json/9.0.1": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-U82mHQSKaIk+lpSVCbWYKNavmNH1i5xrExDEquU1i6I5pV6UMOqRnJRSlKO3cMPfcpp0RgDY+8jUXHdQ4IfXvw==", | ||
"path": "newtonsoft.json/9.0.1", | ||
"hashPath": "newtonsoft.json.9.0.1.nupkg.sha512" | ||
}, | ||
"Microsoft.VisualStudio.TestPlatform.Common/17.2.0-release-20220408-11": { | ||
"type": "project", | ||
"serviceable": false, | ||
"sha512": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters