@fabasoad/sarif-to-slack 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug_report.md +1 -1
- package/.github/pull_request_template.md +3 -3
- package/.github/workflows/linting.yml +14 -0
- package/.github/workflows/release.yml +5 -1
- package/.github/workflows/send-sarif-to-slack.yml +214 -0
- package/.github/workflows/unit-tests.yml +1 -0
- package/.pre-commit-config.yaml +3 -3
- package/.tool-versions +1 -1
- package/CONTRIBUTING.md +1 -1
- package/Makefile +10 -3
- package/README.md +36 -5
- package/biome.json +15 -12
- package/dist/Logger.js +17 -6
- package/dist/Processors.js +23 -22
- package/dist/SarifToSlackService.d.ts.map +1 -1
- package/dist/SarifToSlackService.js +6 -7
- package/dist/SlackMessageBuilder.js +51 -55
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -5
- package/dist/model/SarifModelPerRun.d.ts +17 -0
- package/dist/model/SarifModelPerRun.d.ts.map +1 -0
- package/dist/model/SarifModelPerRun.js +84 -0
- package/dist/model/SarifModelPerSarif.d.ts +20 -0
- package/dist/model/SarifModelPerSarif.d.ts.map +1 -0
- package/dist/model/SarifModelPerSarif.js +97 -0
- package/dist/model/types.d.ts +17 -0
- package/dist/model/types.d.ts.map +1 -0
- package/dist/model/types.js +31 -0
- package/dist/sarif-to-slack.d.ts +121 -18
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types.d.ts +107 -15
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +73 -7
- package/dist/utils/SarifUtils.d.ts +5 -0
- package/dist/utils/SarifUtils.d.ts.map +1 -0
- package/dist/utils/SarifUtils.js +32 -0
- package/dist/utils/SortUtils.d.ts +5 -0
- package/dist/utils/SortUtils.d.ts.map +1 -0
- package/dist/utils/SortUtils.js +8 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +4 -0
- package/etc/sarif-to-slack.api.md +47 -9
- package/jest.config.json +4 -4
- package/package.json +14 -10
- package/scripts/save-version.sh +6 -0
- package/src/Logger.ts +22 -17
- package/src/Processors.ts +22 -22
- package/src/SarifToSlackService.ts +6 -7
- package/src/SlackMessageBuilder.ts +85 -68
- package/src/index.ts +17 -6
- package/src/model/SarifModelPerRun.ts +114 -0
- package/src/model/SarifModelPerSarif.ts +116 -0
- package/src/model/types.ts +31 -0
- package/src/types.ts +113 -15
- package/src/utils/SarifUtils.ts +44 -0
- package/src/utils/SortUtils.ts +21 -0
- package/src/version.ts +3 -0
- package/test-data/sarif/codeql-csharp.sarif +1 -0
- package/test-data/sarif/codeql-go.sarif +1 -0
- package/test-data/sarif/codeql-python.sarif +1 -0
- package/test-data/sarif/codeql-ruby.sarif +1 -0
- package/test-data/sarif/codeql-typescript.sarif +1 -0
- package/test-data/sarif/grype-container.sarif +1774 -0
- package/test-data/sarif/runs-1-tools-1-results-0.sarif +18 -0
- package/test-data/sarif/runs-2-tools-1-results-0.sarif +30 -0
- package/test-data/sarif/runs-2-tools-1.sarif +656 -0
- package/test-data/sarif/runs-2-tools-2-results-0.sarif +44 -0
- package/test-data/sarif/runs-2-tools-2.sarif +686 -0
- package/test-data/sarif/runs-3-tools-2-results-0.sarif +48 -0
- package/test-data/sarif/runs-3-tools-2.sarif +278 -0
- package/test-data/sarif/snyk-composer.sarif +934 -0
- package/test-data/sarif/snyk-container.sarif +313 -0
- package/test-data/sarif/snyk-gomodules.sarif +388 -0
- package/test-data/sarif/snyk-gradle.sarif +274 -0
- package/test-data/sarif/snyk-hex.sarif +66 -0
- package/test-data/sarif/snyk-maven.sarif +274 -0
- package/test-data/sarif/snyk-npm.sarif +896 -0
- package/test-data/sarif/snyk-nuget.sarif +90 -0
- package/test-data/sarif/snyk-pip.sarif +66 -0
- package/test-data/sarif/snyk-pnpm.sarif +90 -0
- package/test-data/sarif/snyk-poetry.sarif +1952 -0
- package/test-data/sarif/snyk-rubygems.sarif +440 -0
- package/test-data/sarif/snyk-sbt.sarif +178 -0
- package/test-data/sarif/snyk-swift.sarif +112 -0
- package/test-data/sarif/snyk-yarn.sarif +2900 -0
- package/test-data/sarif/trivy-iac.sarif +134 -0
- package/test-data/sarif/wiz-container.sarif +30916 -0
- package/test-data/sarif/wiz-iac.sarif +558 -0
- package/tests/Processors.spec.ts +3 -3
- package/tests/integration/SendSarifToSlack.spec.ts +56 -0
- package/tsconfig.json +14 -14
- package/dist/Logger.js.map +0 -1
- package/dist/Processors.js.map +0 -1
- package/dist/SarifToSlackService.js.map +0 -1
- package/dist/SlackMessageBuilder.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types.js.map +0 -1
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"runs": [
|
|
5
|
+
{
|
|
6
|
+
"tool": {
|
|
7
|
+
"driver": {
|
|
8
|
+
"name": "Snyk Open Source",
|
|
9
|
+
"properties": {
|
|
10
|
+
"artifactsScanned": 10
|
|
11
|
+
},
|
|
12
|
+
"rules": [
|
|
13
|
+
{
|
|
14
|
+
"id": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736",
|
|
15
|
+
"shortDescription": {
|
|
16
|
+
"text": "High severity - HTTP Response Splitting vulnerability in github.com/gin-gonic/gin"
|
|
17
|
+
},
|
|
18
|
+
"fullDescription": {
|
|
19
|
+
"text": "(CVE-2020-28483) github.com/gin-gonic/gin@1.4.0"
|
|
20
|
+
},
|
|
21
|
+
"help": {
|
|
22
|
+
"text": "",
|
|
23
|
+
"markdown": "* Package Manager: gomodules\n* Vulnerable module: github.com/gin-gonic/gin\n* Introduced through: go-goof@0.0.0 and github.com/gin-gonic/gin@1.4.0\n### Detailed paths\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0\n# Overview\n[github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) is a package that implements a HTTP web framework called gin.\n\nAffected versions of this package are vulnerable to HTTP Response Splitting. When `gin` is exposed directly to the internet, a client's IP can be spoofed by setting the `X-Forwarded-For` header.\n# Remediation\nUpgrade `github.com/gin-gonic/gin` to version 1.7.7 or higher.\n# References\n- [GitHub Commit](https://github.com/gin-gonic/gin/commit/3b555a560534ca3114515c4b32737ba51b10392c)\n- [GitHub Issue](https://github.com/gin-gonic/gin/issues/2862)\n- [GitHub Release](https://github.com/gin-gonic/gin/releases/tag/v1.7.7)\n"
|
|
24
|
+
},
|
|
25
|
+
"properties": {
|
|
26
|
+
"tags": [
|
|
27
|
+
"security",
|
|
28
|
+
"CWE-113",
|
|
29
|
+
"gomodules"
|
|
30
|
+
],
|
|
31
|
+
"cvssv3_baseScore": 7.1,
|
|
32
|
+
"security-severity": "7.1"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-3121073",
|
|
37
|
+
"shortDescription": {
|
|
38
|
+
"text": "High severity - Improper Output Neutralization for Logs vulnerability in github.com/gin-gonic/gin"
|
|
39
|
+
},
|
|
40
|
+
"fullDescription": {
|
|
41
|
+
"text": "(CVE-2020-36567) github.com/gin-gonic/gin@1.4.0"
|
|
42
|
+
},
|
|
43
|
+
"help": {
|
|
44
|
+
"text": "",
|
|
45
|
+
"markdown": "* Package Manager: gomodules\n* Vulnerable module: github.com/gin-gonic/gin\n* Introduced through: go-goof@0.0.0 and github.com/gin-gonic/gin@1.4.0\n### Detailed paths\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0\n# Overview\n[github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) is a package that implements a HTTP web framework called gin.\n\nAffected versions of this package are vulnerable to Improper Output Neutralization for Logs such that the default Formatter for the Logger middleware (`LoggerConfig.Formatter`), which is included in the Default engine, allows attackers to inject arbitrary log entries by manipulating the request path.\n# Remediation\nUpgrade `github.com/gin-gonic/gin` to version 1.6.0 or higher.\n# References\n- [GitHub Commit](https://github.com/gin-gonic/gin/commit/a71af9c144f9579f6dbe945341c1df37aaf09c0d)\n- [GitHub PR](https://github.com/gin-gonic/gin/pull/2237)\n- [GitHub Release](https://github.com/gin-gonic/gin/releases/tag/v1.6.0)\n"
|
|
46
|
+
},
|
|
47
|
+
"properties": {
|
|
48
|
+
"tags": [
|
|
49
|
+
"security",
|
|
50
|
+
"CWE-117",
|
|
51
|
+
"gomodules"
|
|
52
|
+
],
|
|
53
|
+
"cvssv3_baseScore": 7.3,
|
|
54
|
+
"security-severity": "7.3"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285",
|
|
59
|
+
"shortDescription": {
|
|
60
|
+
"text": "Medium severity - Improper Input Validation vulnerability in github.com/gin-gonic/gin"
|
|
61
|
+
},
|
|
62
|
+
"fullDescription": {
|
|
63
|
+
"text": "(CVE-2023-26125) github.com/gin-gonic/gin@1.4.0"
|
|
64
|
+
},
|
|
65
|
+
"help": {
|
|
66
|
+
"text": "",
|
|
67
|
+
"markdown": "* Package Manager: gomodules\n* Vulnerable module: github.com/gin-gonic/gin\n* Introduced through: go-goof@0.0.0 and github.com/gin-gonic/gin@1.4.0\n### Detailed paths\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0\n# Overview\n[github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) is a package that implements a HTTP web framework called gin.\n\nAffected versions of this package are vulnerable to Improper Input Validation by allowing an attacker to use a specially crafted request via the `X-Forwarded-Prefix` header, potentially leading to cache poisoning.\r\n\r\n**Note:** Although this issue does not pose a significant threat on its own it can serve as an input vector for other more impactful vulnerabilities. However, successful exploitation may depend on the server configuration and whether the header is used in the application logic.\n# PoC\n```\r\npackage main\r\n\r\nimport (\r\n\t\"net/http\"\r\n\r\n\t\"github.com/gin-gonic/gin\"\r\n)\r\n\r\nfunc main() {\r\n\r\n\tr := gin.Default()\r\n\r\n\tr.GET(\"/bug\", func(c *gin.Context) {\r\n\t\tc.JSON(http.StatusBadRequest, gin.H{\"msg\": \"bug\"})\r\n\t})\r\n\r\n\tr.Run()\r\n}\r\n```\n# Remediation\nUpgrade `github.com/gin-gonic/gin` to version 1.9.0 or higher.\n# References\n- [GitHub Commit](https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b)\n- [GitHub PR](https://github.com/gin-gonic/gin/pull/3500)\n- [GitHub PR](https://github.com/gin-gonic/gin/pull/3503)\n- [GitHub Release](https://github.com/gin-gonic/gin/releases/tag/v1.9.0)\n"
|
|
68
|
+
},
|
|
69
|
+
"properties": {
|
|
70
|
+
"tags": [
|
|
71
|
+
"security",
|
|
72
|
+
"CWE-20",
|
|
73
|
+
"gomodules"
|
|
74
|
+
],
|
|
75
|
+
"cvssv3_baseScore": 5.6,
|
|
76
|
+
"security-severity": "5.6"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-5406508",
|
|
81
|
+
"shortDescription": {
|
|
82
|
+
"text": "High severity - Improper Input Validation vulnerability in github.com/gin-gonic/gin"
|
|
83
|
+
},
|
|
84
|
+
"fullDescription": {
|
|
85
|
+
"text": "(CVE-2023-29401) github.com/gin-gonic/gin@1.4.0"
|
|
86
|
+
},
|
|
87
|
+
"help": {
|
|
88
|
+
"text": "",
|
|
89
|
+
"markdown": "* Package Manager: gomodules\n* Vulnerable module: github.com/gin-gonic/gin\n* Introduced through: go-goof@0.0.0 and github.com/gin-gonic/gin@1.4.0\n### Detailed paths\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0\n# Overview\n[github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) is a package that implements a HTTP web framework called gin.\n\nAffected versions of this package are vulnerable to Improper Input Validation via the `FileAttachment` function, due to improper handling of the filename in the Content-Disposition response header.\r\n\r\nExploiting this vulnerability allows the extension/file name to be tampered with when downloading files.\n# Remediation\nUpgrade `github.com/gin-gonic/gin` to version 1.9.1 or higher.\n# References\n- [GitHub Commit](https://github.com/gin-gonic/gin/commit/2d4bbec941551479b1fdf1e54ece03e6e82a7e72)\n- [GitHub Issue](https://github.com/gin-gonic/gin/issues/3555)\n- [GitHub PR](https://github.com/gin-gonic/gin/pull/3556)\n"
|
|
90
|
+
},
|
|
91
|
+
"properties": {
|
|
92
|
+
"tags": [
|
|
93
|
+
"security",
|
|
94
|
+
"CWE-20",
|
|
95
|
+
"gomodules"
|
|
96
|
+
],
|
|
97
|
+
"cvssv3_baseScore": 7.5,
|
|
98
|
+
"security-severity": "7.5"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-550031",
|
|
103
|
+
"shortDescription": {
|
|
104
|
+
"text": "Medium severity - Log Injection vulnerability in github.com/gin-gonic/gin"
|
|
105
|
+
},
|
|
106
|
+
"fullDescription": {
|
|
107
|
+
"text": "github.com/gin-gonic/gin@1.4.0"
|
|
108
|
+
},
|
|
109
|
+
"help": {
|
|
110
|
+
"text": "",
|
|
111
|
+
"markdown": "* Package Manager: gomodules\n* Vulnerable module: github.com/gin-gonic/gin\n* Introduced through: go-goof@0.0.0 and github.com/gin-gonic/gin@1.4.0\n### Detailed paths\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0\n# Overview\n[github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) is a package that implements a HTTP web framework called gin.\n\nAffected versions of this package are vulnerable to Log Injection due to improper sanitisation of user-controlled log output.\n# Remediation\nUpgrade `github.com/gin-gonic/gin` to version 1.6.0 or higher.\n# References\n- [GitHub Fix PR](https://github.com/gin-gonic/gin/pull/2277)\n"
|
|
112
|
+
},
|
|
113
|
+
"properties": {
|
|
114
|
+
"tags": [
|
|
115
|
+
"security",
|
|
116
|
+
"CWE-117",
|
|
117
|
+
"gomodules"
|
|
118
|
+
],
|
|
119
|
+
"cvssv3_baseScore": 5.3,
|
|
120
|
+
"security-severity": "5.3"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "SNYK-GOLANG-GOPKGINYAMLV2-1083943",
|
|
125
|
+
"shortDescription": {
|
|
126
|
+
"text": "Medium severity - Denial of Service (DoS) vulnerability in gopkg.in/yaml.v2"
|
|
127
|
+
},
|
|
128
|
+
"fullDescription": {
|
|
129
|
+
"text": "(CVE-2019-11254) gopkg.in/yaml.v2@2.2.2"
|
|
130
|
+
},
|
|
131
|
+
"help": {
|
|
132
|
+
"text": "",
|
|
133
|
+
"markdown": "* Package Manager: gomodules\n* Vulnerable module: gopkg.in/yaml.v2\n* Introduced through: go-goof@0.0.0, github.com/gin-gonic/gin@1.4.0 and others\n### Detailed paths\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0 › github.com/gin-gonic/gin/render@1.4.0 › gopkg.in/yaml.v2@2.2.2\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0 › github.com/gin-gonic/gin/binding@1.4.0 › gopkg.in/yaml.v2@2.2.2\n# Overview\n[gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) is a YAML support package for the Go language.\n\nAffected versions of this package are vulnerable to Denial of Service (DoS). It is possible for authorized users to send malicious YAML payloads to cause kube-apiserver to consume excessive CPU cycles while parsing YAML.\n\n# Details\n\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\n\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\n\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\n\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\n\nTwo common types of DoS vulnerabilities:\n\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](https://security.snyk.io/vuln/SNYK-JAVA-COMMONSFILEUPLOAD-30082).\n\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example, [npm `ws` package](https://snyk.io/vuln/npm:ws:20171108)\n\n# Remediation\nUpgrade `gopkg.in/yaml.v2` to version 2.2.8 or higher.\n# References\n- [GitHub Commit](https://github.com/go-yaml/yaml/commit/53403b58ad1b561927d19068c655246f2db79d48)\n- [Kubernetes Issue](https://github.com/kubernetes/kubernetes/issues/89535)\n- [Kubernetes PR](https://github.com/kubernetes/kubernetes/pull/87467/commits/b86df2bec4f377afc0ca03482ffad2f0a49a83b8)\n"
|
|
134
|
+
},
|
|
135
|
+
"properties": {
|
|
136
|
+
"tags": [
|
|
137
|
+
"security",
|
|
138
|
+
"CWE-1050",
|
|
139
|
+
"gomodules"
|
|
140
|
+
],
|
|
141
|
+
"cvssv3_baseScore": 6.5,
|
|
142
|
+
"security-severity": "6.5"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "SNYK-GOLANG-GOPKGINYAMLV2-1533594",
|
|
147
|
+
"shortDescription": {
|
|
148
|
+
"text": "Medium severity - Denial of Service (DoS) vulnerability in gopkg.in/yaml.v2"
|
|
149
|
+
},
|
|
150
|
+
"fullDescription": {
|
|
151
|
+
"text": "(CVE-2021-4235) gopkg.in/yaml.v2@2.2.2"
|
|
152
|
+
},
|
|
153
|
+
"help": {
|
|
154
|
+
"text": "",
|
|
155
|
+
"markdown": "* Package Manager: gomodules\n* Vulnerable module: gopkg.in/yaml.v2\n* Introduced through: go-goof@0.0.0, github.com/gin-gonic/gin@1.4.0 and others\n### Detailed paths\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0 › github.com/gin-gonic/gin/render@1.4.0 › gopkg.in/yaml.v2@2.2.2\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0 › github.com/gin-gonic/gin/binding@1.4.0 › gopkg.in/yaml.v2@2.2.2\n# Overview\n[gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) is a YAML support package for the Go language.\n\nAffected versions of this package are vulnerable to Denial of Service (DoS) due to unbounded alias chasing, a maliciously crafted YAML file can cause the system to consume significant system resources. If parsing user input, this may be used as a denial of service vector.\n\n# Details\n\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\n\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\n\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\n\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\n\nTwo common types of DoS vulnerabilities:\n\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](https://security.snyk.io/vuln/SNYK-JAVA-COMMONSFILEUPLOAD-30082).\n\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example, [npm `ws` package](https://snyk.io/vuln/npm:ws:20171108)\n\n# Remediation\nUpgrade `gopkg.in/yaml.v2` to version 2.2.3 or higher.\n# References\n- [GitHub Commit](https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241)\n- [GitHub Compare](https://github.com/go-yaml/yaml/compare/v2.2.2...v2.2.3)\n- [GitHub PR](https://github.com/go-yaml/yaml/pull/375)\n- [GitHub Releases](https://github.com/go-yaml/yaml/releases/tag/v2.2.3)\n"
|
|
156
|
+
},
|
|
157
|
+
"properties": {
|
|
158
|
+
"tags": [
|
|
159
|
+
"security",
|
|
160
|
+
"CWE-400",
|
|
161
|
+
"gomodules"
|
|
162
|
+
],
|
|
163
|
+
"cvssv3_baseScore": 6.5,
|
|
164
|
+
"security-severity": "6.5"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "SNYK-GOLANG-GOPKGINYAMLV2-3315326",
|
|
169
|
+
"shortDescription": {
|
|
170
|
+
"text": "High severity - Denial of Service (DoS) vulnerability in gopkg.in/yaml.v2"
|
|
171
|
+
},
|
|
172
|
+
"fullDescription": {
|
|
173
|
+
"text": "(CVE-2022-3064) gopkg.in/yaml.v2@2.2.2"
|
|
174
|
+
},
|
|
175
|
+
"help": {
|
|
176
|
+
"text": "",
|
|
177
|
+
"markdown": "* Package Manager: gomodules\n* Vulnerable module: gopkg.in/yaml.v2\n* Introduced through: go-goof@0.0.0, github.com/gin-gonic/gin@1.4.0 and others\n### Detailed paths\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0 › github.com/gin-gonic/gin/render@1.4.0 › gopkg.in/yaml.v2@2.2.2\n* _Introduced through_: go-goof@0.0.0 › github.com/gin-gonic/gin@1.4.0 › github.com/gin-gonic/gin/binding@1.4.0 › gopkg.in/yaml.v2@2.2.2\n# Overview\n[gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) is a YAML support package for the Go language.\n\nAffected versions of this package are vulnerable to Denial of Service (DoS) when parsing malicious or large YAML documents, due to missing limitation for stack depth expansion\n\n# Details\n\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\n\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\n\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\n\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\n\nTwo common types of DoS vulnerabilities:\n\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](https://security.snyk.io/vuln/SNYK-JAVA-COMMONSFILEUPLOAD-30082).\n\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example, [npm `ws` package](https://snyk.io/vuln/npm:ws:20171108)\n\n# Remediation\nUpgrade `gopkg.in/yaml.v2` to version 2.2.4 or higher.\n# References\n- [GitHub Commit](https://github.com/go-yaml/yaml/commit/f221b8435cfb71e54062f6c6e99e9ade30b124d5)\n- [GitHub PR](https://github.com/go-yaml/yaml/pull/515)\n- [GitHub Release](https://github.com/go-yaml/yaml/releases/tag/v2.2.4)\n"
|
|
178
|
+
},
|
|
179
|
+
"properties": {
|
|
180
|
+
"tags": [
|
|
181
|
+
"security",
|
|
182
|
+
"CWE-400",
|
|
183
|
+
"gomodules"
|
|
184
|
+
],
|
|
185
|
+
"cvssv3_baseScore": 7.5,
|
|
186
|
+
"security-severity": "7.5"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"results": [
|
|
193
|
+
{
|
|
194
|
+
"ruleId": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736",
|
|
195
|
+
"level": "error",
|
|
196
|
+
"message": {
|
|
197
|
+
"text": "This file introduces a vulnerable github.com/gin-gonic/gin package with a high severity vulnerability."
|
|
198
|
+
},
|
|
199
|
+
"locations": [
|
|
200
|
+
{
|
|
201
|
+
"physicalLocation": {
|
|
202
|
+
"artifactLocation": {
|
|
203
|
+
"uri": "go.mod"
|
|
204
|
+
},
|
|
205
|
+
"region": {
|
|
206
|
+
"startLine": 1
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"logicalLocations": [
|
|
210
|
+
{
|
|
211
|
+
"fullyQualifiedName": "github.com/gin-gonic/gin@1.4.0"
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"ruleId": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-3121073",
|
|
219
|
+
"level": "error",
|
|
220
|
+
"message": {
|
|
221
|
+
"text": "This file introduces a vulnerable github.com/gin-gonic/gin package with a high severity vulnerability."
|
|
222
|
+
},
|
|
223
|
+
"locations": [
|
|
224
|
+
{
|
|
225
|
+
"physicalLocation": {
|
|
226
|
+
"artifactLocation": {
|
|
227
|
+
"uri": "go.mod"
|
|
228
|
+
},
|
|
229
|
+
"region": {
|
|
230
|
+
"startLine": 1
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"logicalLocations": [
|
|
234
|
+
{
|
|
235
|
+
"fullyQualifiedName": "github.com/gin-gonic/gin@1.4.0"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"ruleId": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285",
|
|
243
|
+
"level": "warning",
|
|
244
|
+
"message": {
|
|
245
|
+
"text": "This file introduces a vulnerable github.com/gin-gonic/gin package with a medium severity vulnerability."
|
|
246
|
+
},
|
|
247
|
+
"locations": [
|
|
248
|
+
{
|
|
249
|
+
"physicalLocation": {
|
|
250
|
+
"artifactLocation": {
|
|
251
|
+
"uri": "go.mod"
|
|
252
|
+
},
|
|
253
|
+
"region": {
|
|
254
|
+
"startLine": 1
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"logicalLocations": [
|
|
258
|
+
{
|
|
259
|
+
"fullyQualifiedName": "github.com/gin-gonic/gin@1.4.0"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"ruleId": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-5406508",
|
|
267
|
+
"level": "error",
|
|
268
|
+
"message": {
|
|
269
|
+
"text": "This file introduces a vulnerable github.com/gin-gonic/gin package with a high severity vulnerability."
|
|
270
|
+
},
|
|
271
|
+
"locations": [
|
|
272
|
+
{
|
|
273
|
+
"physicalLocation": {
|
|
274
|
+
"artifactLocation": {
|
|
275
|
+
"uri": "go.mod"
|
|
276
|
+
},
|
|
277
|
+
"region": {
|
|
278
|
+
"startLine": 1
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"logicalLocations": [
|
|
282
|
+
{
|
|
283
|
+
"fullyQualifiedName": "github.com/gin-gonic/gin@1.4.0"
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"ruleId": "SNYK-GOLANG-GITHUBCOMGINGONICGIN-550031",
|
|
291
|
+
"level": "warning",
|
|
292
|
+
"message": {
|
|
293
|
+
"text": "This file introduces a vulnerable github.com/gin-gonic/gin package with a medium severity vulnerability."
|
|
294
|
+
},
|
|
295
|
+
"locations": [
|
|
296
|
+
{
|
|
297
|
+
"physicalLocation": {
|
|
298
|
+
"artifactLocation": {
|
|
299
|
+
"uri": "go.mod"
|
|
300
|
+
},
|
|
301
|
+
"region": {
|
|
302
|
+
"startLine": 1
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"logicalLocations": [
|
|
306
|
+
{
|
|
307
|
+
"fullyQualifiedName": "github.com/gin-gonic/gin@1.4.0"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"ruleId": "SNYK-GOLANG-GOPKGINYAMLV2-1083943",
|
|
315
|
+
"level": "warning",
|
|
316
|
+
"message": {
|
|
317
|
+
"text": "This file introduces a vulnerable gopkg.in/yaml.v2 package with a medium severity vulnerability."
|
|
318
|
+
},
|
|
319
|
+
"locations": [
|
|
320
|
+
{
|
|
321
|
+
"physicalLocation": {
|
|
322
|
+
"artifactLocation": {
|
|
323
|
+
"uri": "go.mod"
|
|
324
|
+
},
|
|
325
|
+
"region": {
|
|
326
|
+
"startLine": 1
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"logicalLocations": [
|
|
330
|
+
{
|
|
331
|
+
"fullyQualifiedName": "gopkg.in/yaml.v2@2.2.2"
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"ruleId": "SNYK-GOLANG-GOPKGINYAMLV2-1533594",
|
|
339
|
+
"level": "warning",
|
|
340
|
+
"message": {
|
|
341
|
+
"text": "This file introduces a vulnerable gopkg.in/yaml.v2 package with a medium severity vulnerability."
|
|
342
|
+
},
|
|
343
|
+
"locations": [
|
|
344
|
+
{
|
|
345
|
+
"physicalLocation": {
|
|
346
|
+
"artifactLocation": {
|
|
347
|
+
"uri": "go.mod"
|
|
348
|
+
},
|
|
349
|
+
"region": {
|
|
350
|
+
"startLine": 1
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"logicalLocations": [
|
|
354
|
+
{
|
|
355
|
+
"fullyQualifiedName": "gopkg.in/yaml.v2@2.2.2"
|
|
356
|
+
}
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"ruleId": "SNYK-GOLANG-GOPKGINYAMLV2-3315326",
|
|
363
|
+
"level": "error",
|
|
364
|
+
"message": {
|
|
365
|
+
"text": "This file introduces a vulnerable gopkg.in/yaml.v2 package with a high severity vulnerability."
|
|
366
|
+
},
|
|
367
|
+
"locations": [
|
|
368
|
+
{
|
|
369
|
+
"physicalLocation": {
|
|
370
|
+
"artifactLocation": {
|
|
371
|
+
"uri": "go.mod"
|
|
372
|
+
},
|
|
373
|
+
"region": {
|
|
374
|
+
"startLine": 1
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"logicalLocations": [
|
|
378
|
+
{
|
|
379
|
+
"fullyQualifiedName": "gopkg.in/yaml.v2@2.2.2"
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
}
|