@eurekadevsecops/radar 1.4.2 → 1.4.4
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/radar.yaml +47 -0
- package/depscan/depscan-universal.json +1 -0
- package/depscan/depscan.html +31 -0
- package/depscan/depscan.sarif +70 -0
- package/depscan/sbom-universal.json +1 -0
- package/depscan/sbom-universal.vdr.json +20938 -0
- package/depscan.sarif +70 -0
- package/package.json +1 -1
- package/scanners/depscan/run.sh +0 -2
- package/src/commands/scan.js +1 -1
- package/src/util/sarif/visualizations/display_totals.js +2 -2
package/depscan.sarif
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.1.0",
|
|
3
|
+
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
|
|
4
|
+
"runs": [
|
|
5
|
+
{
|
|
6
|
+
"tool": {
|
|
7
|
+
"driver": {
|
|
8
|
+
"name": "owasp-depscan",
|
|
9
|
+
"semanticVersion": "5.5.0",
|
|
10
|
+
"informationUri": "https://github.com/owasp-dep-scan/dep-scan",
|
|
11
|
+
"properties": {
|
|
12
|
+
"protocol_version": "v1.0.0",
|
|
13
|
+
"scanner_name": "owasp-depscan",
|
|
14
|
+
"scanner_version": "5.5.0",
|
|
15
|
+
"db": "https://github.com/AppThreat/vulnerability-db",
|
|
16
|
+
"scan_mode": "source"
|
|
17
|
+
},
|
|
18
|
+
"rules": [
|
|
19
|
+
{
|
|
20
|
+
"id": "CVE-2022-33987/pkg:npm/got@9.6.0",
|
|
21
|
+
"shortDescription": {
|
|
22
|
+
"text": "Vulnerable pkg: npm/got@9.6.0\nCVE: CVE-2022-33987\nFix: Update to 11.8.5 or later\n\ndepscan:insights: Indirect dependency\ndepscan:prioritized: false\naffectedVersionRange: got@<11.8.5\n"
|
|
23
|
+
},
|
|
24
|
+
"fullDescription": {
|
|
25
|
+
"text": "# Got allows a redirect to a UNIX socket\nThe got package before 11.8.5 and 12.1.0 for Node.js allows a redirect to a UNIX socket.\nUpgrade to version 11.8.5 or later"
|
|
26
|
+
},
|
|
27
|
+
"help": {
|
|
28
|
+
"text": "Update to 11.8.5 or later"
|
|
29
|
+
},
|
|
30
|
+
"helpUri": "https://nvd.nist.gov/vuln/detail/CVE-2022-33987",
|
|
31
|
+
"properties": {
|
|
32
|
+
"tags": [
|
|
33
|
+
"CVE-2022-33987"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"results": [
|
|
42
|
+
{
|
|
43
|
+
"ruleId": "CVE-2022-33987/pkg:npm/got@9.6.0",
|
|
44
|
+
"level": "warning",
|
|
45
|
+
"message": {
|
|
46
|
+
"text": "Vulnerability CVE-2022-33987 in pkg npm/got@9.6.0"
|
|
47
|
+
},
|
|
48
|
+
"locations": [
|
|
49
|
+
{
|
|
50
|
+
"physicalLocation": {
|
|
51
|
+
"artifactLocation": {
|
|
52
|
+
"uri": "lockfile",
|
|
53
|
+
"uriBaseId": "%SRCROOT%"
|
|
54
|
+
},
|
|
55
|
+
"region": {
|
|
56
|
+
"startLine": 1
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"message": {
|
|
60
|
+
"text": "Vulnerability CVE-2022-33987 in pkg npm/got@9.6.0"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
package/package.json
CHANGED
package/scanners/depscan/run.sh
CHANGED
package/src/commands/scan.js
CHANGED
|
@@ -196,7 +196,7 @@ module.exports = {
|
|
|
196
196
|
log()
|
|
197
197
|
SARIF.visualizations.display_findings(summary, args.FORMAT, log)
|
|
198
198
|
if (outfile) log(`Findings exported to ${outfile}`)
|
|
199
|
-
SARIF.visualizations.display_totals(summary, args.FORMAT, log)
|
|
199
|
+
SARIF.visualizations.display_totals(summary, args.FORMAT, log, telemetry.enabled && scanID)
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
// Determine the correct exit code.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const levels = require('../../localization/levels')
|
|
2
|
-
module.exports = async (summary, format, log) => {
|
|
2
|
+
module.exports = async (summary, format, log, baselined) => {
|
|
3
3
|
const total = summary.errors.length + summary.warnings.length + summary.notes.length
|
|
4
|
-
log(`${total}
|
|
4
|
+
log(`${total} ` + `${baselined ? 'new ' : ''}`.bold + `${total === 1 ? levels[format].total.issue : levels[format].total.issues}: ${summary.errors.length} ` + `${levels[format].total.error}`.red.bold + `, ${summary.warnings.length} ` + `${levels[format].total.warning}`.yellow.bold + `, ${summary.notes.length} ` + `${levels[format].total.note}` + '.')
|
|
5
5
|
}
|