@fabasoad/sarif-to-slack 0.2.0 → 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/workflows/release.yml +3 -1
- package/.github/workflows/send-sarif-to-slack.yml +214 -0
- package/.pre-commit-config.yaml +3 -3
- package/.tool-versions +1 -1
- package/Makefile +9 -2
- package/README.md +1 -1
- package/dist/Logger.js +15 -6
- package/dist/Processors.js +23 -22
- package/dist/SarifToSlackService.d.ts.map +1 -1
- package/dist/SarifToSlackService.js +5 -6
- package/dist/SlackMessageBuilder.js +46 -52
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- 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 +96 -12
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types.d.ts +87 -11
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +66 -9
- 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 +1 -1
- package/dist/version.js +1 -1
- package/etc/sarif-to-slack.api.md +32 -7
- package/jest.config.json +4 -4
- package/package.json +9 -7
- package/src/Logger.ts +20 -17
- package/src/Processors.ts +22 -22
- package/src/SarifToSlackService.ts +5 -6
- package/src/SlackMessageBuilder.ts +78 -63
- package/src/index.ts +10 -2
- 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 +91 -11
- package/src/utils/SarifUtils.ts +44 -0
- package/src/utils/SortUtils.ts +21 -0
- package/src/version.ts +1 -1
- 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
|
@@ -0,0 +1,440 @@
|
|
|
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": 1
|
|
11
|
+
},
|
|
12
|
+
"rules": [
|
|
13
|
+
{
|
|
14
|
+
"id": "SNYK-RUBY-REXML-6861566",
|
|
15
|
+
"shortDescription": {
|
|
16
|
+
"text": "Medium severity - Uncontrolled Resource Consumption vulnerability in rexml"
|
|
17
|
+
},
|
|
18
|
+
"fullDescription": {
|
|
19
|
+
"text": "(CVE-2024-35176) rexml@3.2.6"
|
|
20
|
+
},
|
|
21
|
+
"help": {
|
|
22
|
+
"text": "",
|
|
23
|
+
"markdown": "* Package Manager: rubygems\n* Vulnerable module: rexml\n* Introduced through: rubygems@* and rexml@3.2.6\n### Detailed paths\n* _Introduced through_: rubygems@* › rexml@3.2.6\n# Overview\n[rexml](https://github.com/ruby/rexml) is an An XML toolkit for Ruby.\n\nAffected versions of this package are vulnerable to Uncontrolled Resource Consumption when parsing an XML that has many `<`s in an attribute value. An attacker can cause a denial of service by exploiting this behavior.\n\n# Workaround \n\nThis vulnerability can be mitigated by not parsing untrusted XMLs.\n# Remediation\nUpgrade `rexml` to version 3.2.7 or higher.\n# References\n- [Advisory](https://www.ruby-lang.org/en/news/2024/05/16/dos-rexml-cve-2024-35176)\n- [GitHub Commit](https://github.com/ruby/rexml/commit/4325835f92f3f142ebd91a3fdba4e1f1ab7f1cfb)\n"
|
|
24
|
+
},
|
|
25
|
+
"properties": {
|
|
26
|
+
"tags": [
|
|
27
|
+
"security",
|
|
28
|
+
"CWE-400",
|
|
29
|
+
"rubygems"
|
|
30
|
+
],
|
|
31
|
+
"cvssv3_baseScore": 5.3,
|
|
32
|
+
"security-severity": "5.3"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "SNYK-RUBY-REXML-7462086",
|
|
37
|
+
"shortDescription": {
|
|
38
|
+
"text": "Medium severity - Denial of Service (DoS) vulnerability in rexml"
|
|
39
|
+
},
|
|
40
|
+
"fullDescription": {
|
|
41
|
+
"text": "(CVE-2024-39908) rexml@3.2.6"
|
|
42
|
+
},
|
|
43
|
+
"help": {
|
|
44
|
+
"text": "",
|
|
45
|
+
"markdown": "* Package Manager: rubygems\n* Vulnerable module: rexml\n* Introduced through: rubygems@* and rexml@3.2.6\n### Detailed paths\n* _Introduced through_: rubygems@* › rexml@3.2.6\n# Overview\n[rexml](https://github.com/ruby/rexml) is an An XML toolkit for Ruby.\n\nAffected versions of this package are vulnerable to Denial of Service (DoS) through the XML parsing process. An attacker can cause a denial of service by sending specially crafted XML documents that contain many specific characters such as `<`, `0`, and `%>`.\n\nThis vulnerability is exploitable if the application is configured to parse untrusted XML documents.\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 `rexml` to version 3.3.2 or higher.\n# References\n- [GitHub Commit](https://github.com/ruby/rexml/pull/169/commits/bb274bc1cbb9f35abb43f1d8a380e8d4dc9a3306)\n- [GitHub Release](https://github.com/ruby/rexml/releases/tag/v3.3.2)\n- [Security Advisory](https://www.ruby-lang.org/en/news/2024/07/16/dos-rexml-cve-2024-39908)\n"
|
|
46
|
+
},
|
|
47
|
+
"properties": {
|
|
48
|
+
"tags": [
|
|
49
|
+
"security",
|
|
50
|
+
"CWE-400",
|
|
51
|
+
"rubygems"
|
|
52
|
+
],
|
|
53
|
+
"cvssv3_baseScore": 5.3,
|
|
54
|
+
"security-severity": "5.3"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "SNYK-RUBY-REXML-7577227",
|
|
59
|
+
"shortDescription": {
|
|
60
|
+
"text": "Medium severity - Uncontrolled Resource Consumption ('Resource Exhaustion') vulnerability in rexml"
|
|
61
|
+
},
|
|
62
|
+
"fullDescription": {
|
|
63
|
+
"text": "(CVE-2024-41946) rexml@3.2.6"
|
|
64
|
+
},
|
|
65
|
+
"help": {
|
|
66
|
+
"text": "",
|
|
67
|
+
"markdown": "* Package Manager: rubygems\n* Vulnerable module: rexml\n* Introduced through: rubygems@* and rexml@3.2.6\n### Detailed paths\n* _Introduced through_: rubygems@* › rexml@3.2.6\n# Overview\n[rexml](https://github.com/ruby/rexml) is an An XML toolkit for Ruby.\n\nAffected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') via the SAX2 or pull parser API. An attacker can cause the application to consume excessive resources leading to a denial of service by submitting specially crafted XML documents that exploit entity expansions.\n# PoC\n```html\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!DOCTYPE member [\r\n <!ENTITY a \"&b;&b;&b;&b;&b;&b;&b;&b;&b;&b;\">\r\n <!ENTITY b \"&c;&c;&c;&c;&c;&c;&c;&c;&c;&c;\">\r\n <!ENTITY c \"&d;&d;&d;&d;&d;&d;&d;&d;&d;&d;\">\r\n <!ENTITY d \"&e;&e;&e;&e;&e;&e;&e;&e;&e;&e;\">\r\n <!ENTITY e \"&f;&f;&f;&f;&f;&f;&f;&f;&f;&f;\">\r\n <!ENTITY f \"&g;&g;&g;&g;&g;&g;&g;&g;&g;&g;\">\r\n <!ENTITY g \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\">\r\n]>\r\n<member>\r\n&a;\r\n</member>\r\n```\n# Remediation\nUpgrade `rexml` to version 3.3.3 or higher.\n# References\n- [GitHub Commit](https://github.com/ruby/rexml/commit/033d1909a8f259d5a7c53681bcaf14f13bcf0368)\n- [GitHub Release Notes](https://github.com/ruby/rexml/releases/tag/v3.3.3)\n- [Security Advisory](https://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml)\n- [Security Advisory](https://www.ruby-lang.org/en/news/2024/08/01/dos-rexml-cve-2024-41946)\n"
|
|
68
|
+
},
|
|
69
|
+
"properties": {
|
|
70
|
+
"tags": [
|
|
71
|
+
"security",
|
|
72
|
+
"CWE-400",
|
|
73
|
+
"rubygems"
|
|
74
|
+
],
|
|
75
|
+
"cvssv3_baseScore": 6.9,
|
|
76
|
+
"security-severity": "6.9"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "SNYK-RUBY-REXML-7577228",
|
|
81
|
+
"shortDescription": {
|
|
82
|
+
"text": "Medium severity - Denial of Service (DoS) vulnerability in rexml"
|
|
83
|
+
},
|
|
84
|
+
"fullDescription": {
|
|
85
|
+
"text": "(CVE-2024-41123) rexml@3.2.6"
|
|
86
|
+
},
|
|
87
|
+
"help": {
|
|
88
|
+
"text": "",
|
|
89
|
+
"markdown": "* Package Manager: rubygems\n* Vulnerable module: rexml\n* Introduced through: rubygems@* and rexml@3.2.6\n### Detailed paths\n* _Introduced through_: rubygems@* › rexml@3.2.6\n# Overview\n[rexml](https://github.com/ruby/rexml) is an An XML toolkit for Ruby.\n\nAffected versions of this package are vulnerable to Denial of Service (DoS) via the REXML gem, when parsing an `XML` document that has many specific characters such as whitespace character,`>]` and `]>`.\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 `rexml` to version 3.3.3 or higher.\n# References\n- [ruby-lang News](https://www.ruby-lang.org/en/news/2024/08/01/dos-rexml-cve-2024-41123)\n"
|
|
90
|
+
},
|
|
91
|
+
"properties": {
|
|
92
|
+
"tags": [
|
|
93
|
+
"security",
|
|
94
|
+
"CWE-400",
|
|
95
|
+
"rubygems"
|
|
96
|
+
],
|
|
97
|
+
"cvssv3_baseScore": 6.9,
|
|
98
|
+
"security-severity": "6.9"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "SNYK-RUBY-REXML-7814166",
|
|
103
|
+
"shortDescription": {
|
|
104
|
+
"text": "High severity - Improper Restriction of XML External Entity Reference ('XXE') vulnerability in rexml"
|
|
105
|
+
},
|
|
106
|
+
"fullDescription": {
|
|
107
|
+
"text": "(CVE-2024-43398) rexml@3.2.6"
|
|
108
|
+
},
|
|
109
|
+
"help": {
|
|
110
|
+
"text": "",
|
|
111
|
+
"markdown": "* Package Manager: rubygems\n* Vulnerable module: rexml\n* Introduced through: rubygems@* and rexml@3.2.6\n### Detailed paths\n* _Introduced through_: rubygems@* › rexml@3.2.6\n# Overview\n[rexml](https://github.com/ruby/rexml) is an An XML toolkit for Ruby.\n\nAffected versions of this package are vulnerable to Improper Restriction of XML External Entity Reference ('XXE') via tree parser APIs like `REXML::Document.new` function. An attacker can cause the application to consume excessive resources by submitting specially crafted XML documents with many deep elements that have the same local name attributes.\n\n**Note:**\n\nThis is only exploitable if a tree parser API is used to parse untrusted XMLs.\n# Remediation\nUpgrade `rexml` to version 3.3.6 or higher.\n# References\n- [GitHub Commit](https://github.com/ruby/rexml/commit/7cb5eaeb221c322b9912f724183294d8ce96bae3)\n- [GitHub Release](https://github.com/ruby/rexml/releases/tag/v3.3.6)\n"
|
|
112
|
+
},
|
|
113
|
+
"properties": {
|
|
114
|
+
"tags": [
|
|
115
|
+
"security",
|
|
116
|
+
"CWE-776",
|
|
117
|
+
"rubygems"
|
|
118
|
+
],
|
|
119
|
+
"cvssv3_baseScore": 8.2,
|
|
120
|
+
"security-severity": "8.2"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "SNYK-RUBY-REXML-8309365",
|
|
125
|
+
"shortDescription": {
|
|
126
|
+
"text": "Medium severity - Regular Expression Denial of Service (ReDoS) vulnerability in rexml"
|
|
127
|
+
},
|
|
128
|
+
"fullDescription": {
|
|
129
|
+
"text": "(CVE-2024-49761) rexml@3.2.6"
|
|
130
|
+
},
|
|
131
|
+
"help": {
|
|
132
|
+
"text": "",
|
|
133
|
+
"markdown": "* Package Manager: rubygems\n* Vulnerable module: rexml\n* Introduced through: rubygems@* and rexml@3.2.6\n### Detailed paths\n* _Introduced through_: rubygems@* › rexml@3.2.6\n# Overview\n[rexml](https://github.com/ruby/rexml) is an An XML toolkit for Ruby.\n\nAffected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of insecure regular expressions in `CHARACTER_REFERENCES`. This vulnerability can be exploited when parsing XML content containing numerous digits between `&#` and `x...;` in a hex numeric character reference (`&#x...;`).\r\n\r\nBy supplying specially crafted XML documents, an attacker can cause the application to consume excessive resources. \r\n\r\n**Note:**\r\n\r\nThis vulnerability doesn't affect Ruby 3.2 or later.\n\n# Details\n\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.\n\nThe Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.\n\nLet’s take the following regular expression as an example:\n```js\nregex = /A(B|C+)+D/\n```\n\nThis regular expression accomplishes the following:\n- `A` The string must start with the letter 'A'\n- `(B|C+)+` The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the `+` matches one or more times). The `+` at the end of this section states that we can look for one or more matches of this section.\n- `D` Finally, we ensure this section of the string ends with a 'D'\n\nThe expression would match inputs such as `ABBD`, `ABCCCCD`, `ABCBCCCD` and `ACCCCCD`\n\nIt most cases, it doesn't take very long for a regex engine to find a match:\n\n```bash\n$ time node -e '/A(B|C+)+D/.test(\"ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD\")'\n0.04s user 0.01s system 95% cpu 0.052 total\n\n$ time node -e '/A(B|C+)+D/.test(\"ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX\")'\n1.79s user 0.02s system 99% cpu 1.812 total\n```\n\nThe entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.\n\nMost Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as _catastrophic backtracking_.\n\nLet's look at how our expression runs into this problem, using a shorter string: \"ACCCX\". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:\n1. CCC\n2. CC+C\n3. C+CC\n4. C+C+C.\n\nThe engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use [RegEx 101 debugger](https://regex101.com/debugger) to see the engine has to take a total of 38 steps before it can determine the string doesn't match.\n\nFrom there, the number of steps the engine must use to validate a string just continues to grow.\n\n| String | Number of C's | Number of steps |\n| -------|-------------:| -----:|\n| ACCCX | 3 | 38\n| ACCCCX | 4 | 71\n| ACCCCCX | 5 | 136\n| ACCCCCCCCCCCCCCX | 14 | 65,553\n\n\nBy the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.\n\n# Remediation\nUpgrade `rexml` to version 3.3.9 or higher.\n# References\n- [GitHub Commit](https://github.com/ruby/rexml/commit/ce59f2eb1aeb371fe1643414f06618dbe031979f)\n"
|
|
134
|
+
},
|
|
135
|
+
"properties": {
|
|
136
|
+
"tags": [
|
|
137
|
+
"security",
|
|
138
|
+
"CWE-1333",
|
|
139
|
+
"rubygems"
|
|
140
|
+
],
|
|
141
|
+
"cvssv3_baseScore": 6.9,
|
|
142
|
+
"security-severity": "6.9"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"results": [
|
|
149
|
+
{
|
|
150
|
+
"ruleId": "SNYK-RUBY-REXML-6861566",
|
|
151
|
+
"level": "warning",
|
|
152
|
+
"message": {
|
|
153
|
+
"text": "This file introduces a vulnerable rexml package with a medium severity vulnerability."
|
|
154
|
+
},
|
|
155
|
+
"locations": [
|
|
156
|
+
{
|
|
157
|
+
"physicalLocation": {
|
|
158
|
+
"artifactLocation": {
|
|
159
|
+
"uri": "Gemfile"
|
|
160
|
+
},
|
|
161
|
+
"region": {
|
|
162
|
+
"startLine": 1
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"logicalLocations": [
|
|
166
|
+
{
|
|
167
|
+
"fullyQualifiedName": "rexml@3.2.6"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"fixes": [
|
|
173
|
+
{
|
|
174
|
+
"description": {
|
|
175
|
+
"text": "Upgrade to rexml@3.2.7"
|
|
176
|
+
},
|
|
177
|
+
"artifactChanges": [
|
|
178
|
+
{
|
|
179
|
+
"artifactLocation": {
|
|
180
|
+
"uri": "Gemfile"
|
|
181
|
+
},
|
|
182
|
+
"replacements": [
|
|
183
|
+
{
|
|
184
|
+
"deletedRegion": {
|
|
185
|
+
"startLine": 1
|
|
186
|
+
},
|
|
187
|
+
"insertedContent": {
|
|
188
|
+
"text": "rexml@3.2.7"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"ruleId": "SNYK-RUBY-REXML-7462086",
|
|
199
|
+
"level": "warning",
|
|
200
|
+
"message": {
|
|
201
|
+
"text": "This file introduces a vulnerable rexml package with a medium severity vulnerability."
|
|
202
|
+
},
|
|
203
|
+
"locations": [
|
|
204
|
+
{
|
|
205
|
+
"physicalLocation": {
|
|
206
|
+
"artifactLocation": {
|
|
207
|
+
"uri": "Gemfile"
|
|
208
|
+
},
|
|
209
|
+
"region": {
|
|
210
|
+
"startLine": 1
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"logicalLocations": [
|
|
214
|
+
{
|
|
215
|
+
"fullyQualifiedName": "rexml@3.2.6"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"fixes": [
|
|
221
|
+
{
|
|
222
|
+
"description": {
|
|
223
|
+
"text": "Upgrade to rexml@3.3.2"
|
|
224
|
+
},
|
|
225
|
+
"artifactChanges": [
|
|
226
|
+
{
|
|
227
|
+
"artifactLocation": {
|
|
228
|
+
"uri": "Gemfile"
|
|
229
|
+
},
|
|
230
|
+
"replacements": [
|
|
231
|
+
{
|
|
232
|
+
"deletedRegion": {
|
|
233
|
+
"startLine": 1
|
|
234
|
+
},
|
|
235
|
+
"insertedContent": {
|
|
236
|
+
"text": "rexml@3.3.2"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"ruleId": "SNYK-RUBY-REXML-7577227",
|
|
247
|
+
"level": "warning",
|
|
248
|
+
"message": {
|
|
249
|
+
"text": "This file introduces a vulnerable rexml package with a medium severity vulnerability."
|
|
250
|
+
},
|
|
251
|
+
"locations": [
|
|
252
|
+
{
|
|
253
|
+
"physicalLocation": {
|
|
254
|
+
"artifactLocation": {
|
|
255
|
+
"uri": "Gemfile"
|
|
256
|
+
},
|
|
257
|
+
"region": {
|
|
258
|
+
"startLine": 1
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"logicalLocations": [
|
|
262
|
+
{
|
|
263
|
+
"fullyQualifiedName": "rexml@3.2.6"
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"fixes": [
|
|
269
|
+
{
|
|
270
|
+
"description": {
|
|
271
|
+
"text": "Upgrade to rexml@3.3.3"
|
|
272
|
+
},
|
|
273
|
+
"artifactChanges": [
|
|
274
|
+
{
|
|
275
|
+
"artifactLocation": {
|
|
276
|
+
"uri": "Gemfile"
|
|
277
|
+
},
|
|
278
|
+
"replacements": [
|
|
279
|
+
{
|
|
280
|
+
"deletedRegion": {
|
|
281
|
+
"startLine": 1
|
|
282
|
+
},
|
|
283
|
+
"insertedContent": {
|
|
284
|
+
"text": "rexml@3.3.3"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"ruleId": "SNYK-RUBY-REXML-7577228",
|
|
295
|
+
"level": "warning",
|
|
296
|
+
"message": {
|
|
297
|
+
"text": "This file introduces a vulnerable rexml package with a medium severity vulnerability."
|
|
298
|
+
},
|
|
299
|
+
"locations": [
|
|
300
|
+
{
|
|
301
|
+
"physicalLocation": {
|
|
302
|
+
"artifactLocation": {
|
|
303
|
+
"uri": "Gemfile"
|
|
304
|
+
},
|
|
305
|
+
"region": {
|
|
306
|
+
"startLine": 1
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"logicalLocations": [
|
|
310
|
+
{
|
|
311
|
+
"fullyQualifiedName": "rexml@3.2.6"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"fixes": [
|
|
317
|
+
{
|
|
318
|
+
"description": {
|
|
319
|
+
"text": "Upgrade to rexml@3.3.3"
|
|
320
|
+
},
|
|
321
|
+
"artifactChanges": [
|
|
322
|
+
{
|
|
323
|
+
"artifactLocation": {
|
|
324
|
+
"uri": "Gemfile"
|
|
325
|
+
},
|
|
326
|
+
"replacements": [
|
|
327
|
+
{
|
|
328
|
+
"deletedRegion": {
|
|
329
|
+
"startLine": 1
|
|
330
|
+
},
|
|
331
|
+
"insertedContent": {
|
|
332
|
+
"text": "rexml@3.3.3"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"ruleId": "SNYK-RUBY-REXML-7814166",
|
|
343
|
+
"level": "error",
|
|
344
|
+
"message": {
|
|
345
|
+
"text": "This file introduces a vulnerable rexml package with a high severity vulnerability."
|
|
346
|
+
},
|
|
347
|
+
"locations": [
|
|
348
|
+
{
|
|
349
|
+
"physicalLocation": {
|
|
350
|
+
"artifactLocation": {
|
|
351
|
+
"uri": "Gemfile"
|
|
352
|
+
},
|
|
353
|
+
"region": {
|
|
354
|
+
"startLine": 1
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"logicalLocations": [
|
|
358
|
+
{
|
|
359
|
+
"fullyQualifiedName": "rexml@3.2.6"
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"fixes": [
|
|
365
|
+
{
|
|
366
|
+
"description": {
|
|
367
|
+
"text": "Upgrade to rexml@3.3.6"
|
|
368
|
+
},
|
|
369
|
+
"artifactChanges": [
|
|
370
|
+
{
|
|
371
|
+
"artifactLocation": {
|
|
372
|
+
"uri": "Gemfile"
|
|
373
|
+
},
|
|
374
|
+
"replacements": [
|
|
375
|
+
{
|
|
376
|
+
"deletedRegion": {
|
|
377
|
+
"startLine": 1
|
|
378
|
+
},
|
|
379
|
+
"insertedContent": {
|
|
380
|
+
"text": "rexml@3.3.6"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"ruleId": "SNYK-RUBY-REXML-8309365",
|
|
391
|
+
"level": "warning",
|
|
392
|
+
"message": {
|
|
393
|
+
"text": "This file introduces a vulnerable rexml package with a medium severity vulnerability."
|
|
394
|
+
},
|
|
395
|
+
"locations": [
|
|
396
|
+
{
|
|
397
|
+
"physicalLocation": {
|
|
398
|
+
"artifactLocation": {
|
|
399
|
+
"uri": "Gemfile"
|
|
400
|
+
},
|
|
401
|
+
"region": {
|
|
402
|
+
"startLine": 1
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"logicalLocations": [
|
|
406
|
+
{
|
|
407
|
+
"fullyQualifiedName": "rexml@3.2.6"
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
"fixes": [
|
|
413
|
+
{
|
|
414
|
+
"description": {
|
|
415
|
+
"text": "Upgrade to rexml@3.3.9"
|
|
416
|
+
},
|
|
417
|
+
"artifactChanges": [
|
|
418
|
+
{
|
|
419
|
+
"artifactLocation": {
|
|
420
|
+
"uri": "Gemfile"
|
|
421
|
+
},
|
|
422
|
+
"replacements": [
|
|
423
|
+
{
|
|
424
|
+
"deletedRegion": {
|
|
425
|
+
"startLine": 1
|
|
426
|
+
},
|
|
427
|
+
"insertedContent": {
|
|
428
|
+
"text": "rexml@3.3.9"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
}
|
|
439
|
+
]
|
|
440
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
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": 2
|
|
11
|
+
},
|
|
12
|
+
"rules": [
|
|
13
|
+
{
|
|
14
|
+
"id": "SNYK-JAVA-COMMONSIO-8161190",
|
|
15
|
+
"shortDescription": {
|
|
16
|
+
"text": "Medium severity - Uncontrolled Resource Consumption vulnerability in commons-io:commons-io"
|
|
17
|
+
},
|
|
18
|
+
"fullDescription": {
|
|
19
|
+
"text": "(CVE-2024-47554) commons-io:commons-io@2.11.0"
|
|
20
|
+
},
|
|
21
|
+
"help": {
|
|
22
|
+
"text": "",
|
|
23
|
+
"markdown": "* Package Manager: sbt\n* Vulnerable module: commons-io:commons-io\n* Introduced through: scalademoapp:scalademoapp_3@0.1.0-SNAPSHOT and commons-io:commons-io@2.11.0\n### Detailed paths\n* _Introduced through_: scalademoapp:scalademoapp_3@0.1.0-SNAPSHOT › commons-io:commons-io@2.11.0\n# Overview\n[commons-io:commons-io](https://search.maven.org/artifact/commons-io/commons-io) is a The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.\n\nAffected versions of this package are vulnerable to Uncontrolled Resource Consumption through the `XmlStreamReader` class. An attacker can cause the application to consume excessive CPU resources by sending specially crafted XML content.\n# Remediation\nUpgrade `commons-io:commons-io` to version 2.14.0 or higher.\n# References\n- [Apache Advisory](https://lists.apache.org/thread/6ozr91rr9cj5lm0zyhv30bsp317hk5z1)\n- [GitHub Commit](https://github.com/apache/commons-io/commit/06fde31494c279ad940149e1a3d4944040c73c0d)\n"
|
|
24
|
+
},
|
|
25
|
+
"properties": {
|
|
26
|
+
"tags": [
|
|
27
|
+
"security",
|
|
28
|
+
"CWE-400",
|
|
29
|
+
"sbt"
|
|
30
|
+
],
|
|
31
|
+
"cvssv3_baseScore": 6.9,
|
|
32
|
+
"security-severity": "6.9"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "snyk:lic:maven:commons-io:commons-io:Apache-2.0",
|
|
37
|
+
"shortDescription": {
|
|
38
|
+
"text": "High severity - Apache-2.0 license vulnerability in commons-io:commons-io"
|
|
39
|
+
},
|
|
40
|
+
"fullDescription": {
|
|
41
|
+
"text": "commons-io:commons-io@2.11.0"
|
|
42
|
+
},
|
|
43
|
+
"help": {
|
|
44
|
+
"text": "",
|
|
45
|
+
"markdown": "* Package Manager: sbt\n* Module: commons-io:commons-io\n* Introduced through: scalademoapp:scalademoapp_3@0.1.0-SNAPSHOT and commons-io:commons-io@2.11.0\n### Detailed paths\n* _Introduced through_: scalademoapp:scalademoapp_3@0.1.0-SNAPSHOT › commons-io:commons-io@2.11.0\nApache-2.0 license"
|
|
46
|
+
},
|
|
47
|
+
"properties": {
|
|
48
|
+
"tags": [
|
|
49
|
+
"security",
|
|
50
|
+
"sbt"
|
|
51
|
+
],
|
|
52
|
+
"security-severity": "undefined"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "snyk:lic:maven:org.scala-lang:scala3-library_3:Apache-2.0",
|
|
57
|
+
"shortDescription": {
|
|
58
|
+
"text": "High severity - Apache-2.0 license vulnerability in org.scala-lang:scala3-library_3"
|
|
59
|
+
},
|
|
60
|
+
"fullDescription": {
|
|
61
|
+
"text": "org.scala-lang:scala3-library_3@3.6.4"
|
|
62
|
+
},
|
|
63
|
+
"help": {
|
|
64
|
+
"text": "",
|
|
65
|
+
"markdown": "* Package Manager: sbt\n* Module: org.scala-lang:scala3-library_3\n* Introduced through: scalademoapp:scalademoapp_3@0.1.0-SNAPSHOT and org.scala-lang:scala3-library_3@3.6.4\n### Detailed paths\n* _Introduced through_: scalademoapp:scalademoapp_3@0.1.0-SNAPSHOT › org.scala-lang:scala3-library_3@3.6.4\nApache-2.0 license"
|
|
66
|
+
},
|
|
67
|
+
"properties": {
|
|
68
|
+
"tags": [
|
|
69
|
+
"security",
|
|
70
|
+
"sbt"
|
|
71
|
+
],
|
|
72
|
+
"security-severity": "undefined"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"results": [
|
|
79
|
+
{
|
|
80
|
+
"ruleId": "SNYK-JAVA-COMMONSIO-8161190",
|
|
81
|
+
"level": "warning",
|
|
82
|
+
"message": {
|
|
83
|
+
"text": "This file introduces a vulnerable commons-io:commons-io package with a medium severity vulnerability."
|
|
84
|
+
},
|
|
85
|
+
"locations": [
|
|
86
|
+
{
|
|
87
|
+
"physicalLocation": {
|
|
88
|
+
"artifactLocation": {
|
|
89
|
+
"uri": "build.sbt"
|
|
90
|
+
},
|
|
91
|
+
"region": {
|
|
92
|
+
"startLine": 1
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"logicalLocations": [
|
|
96
|
+
{
|
|
97
|
+
"fullyQualifiedName": "commons-io:commons-io@2.11.0"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"fixes": [
|
|
103
|
+
{
|
|
104
|
+
"description": {
|
|
105
|
+
"text": "Upgrade to commons-io:commons-io@2.14.0"
|
|
106
|
+
},
|
|
107
|
+
"artifactChanges": [
|
|
108
|
+
{
|
|
109
|
+
"artifactLocation": {
|
|
110
|
+
"uri": "build.sbt"
|
|
111
|
+
},
|
|
112
|
+
"replacements": [
|
|
113
|
+
{
|
|
114
|
+
"deletedRegion": {
|
|
115
|
+
"startLine": 1
|
|
116
|
+
},
|
|
117
|
+
"insertedContent": {
|
|
118
|
+
"text": "commons-io:commons-io@2.14.0"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"ruleId": "snyk:lic:maven:commons-io:commons-io:Apache-2.0",
|
|
129
|
+
"level": "error",
|
|
130
|
+
"message": {
|
|
131
|
+
"text": "This file introduces a vulnerable commons-io:commons-io package with a high severity vulnerability."
|
|
132
|
+
},
|
|
133
|
+
"locations": [
|
|
134
|
+
{
|
|
135
|
+
"physicalLocation": {
|
|
136
|
+
"artifactLocation": {
|
|
137
|
+
"uri": "build.sbt"
|
|
138
|
+
},
|
|
139
|
+
"region": {
|
|
140
|
+
"startLine": 1
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"logicalLocations": [
|
|
144
|
+
{
|
|
145
|
+
"fullyQualifiedName": "commons-io:commons-io@2.11.0"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"ruleId": "snyk:lic:maven:org.scala-lang:scala3-library_3:Apache-2.0",
|
|
153
|
+
"level": "error",
|
|
154
|
+
"message": {
|
|
155
|
+
"text": "This file introduces a vulnerable org.scala-lang:scala3-library_3 package with a high severity vulnerability."
|
|
156
|
+
},
|
|
157
|
+
"locations": [
|
|
158
|
+
{
|
|
159
|
+
"physicalLocation": {
|
|
160
|
+
"artifactLocation": {
|
|
161
|
+
"uri": "build.sbt"
|
|
162
|
+
},
|
|
163
|
+
"region": {
|
|
164
|
+
"startLine": 1
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"logicalLocations": [
|
|
168
|
+
{
|
|
169
|
+
"fullyQualifiedName": "org.scala-lang:scala3-library_3@3.6.4"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|