forked from hawkeyesec/scanner-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresults.json
More file actions
283 lines (283 loc) · 12.4 KB
/
results.json
File metadata and controls
283 lines (283 loc) · 12.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
[
{
"module": {
"key": "contents",
"name": "File Contents",
"description": "Scans files for dangerous content",
"enabled": true
},
"results": {
"high": [],
"medium": [],
"low": [],
"critical": [
{
"name": "some_file_with_private_key_in.md",
"description": "Private key in file",
"extra": "Line number: 1",
"data": {
"extension": [
"js",
"json",
"xml",
"text",
"rb",
"py",
"sh",
"md"
],
"content": {},
"caption": "Private key in file",
"level": "critical"
}
}
]
}
},
{
"module": {
"key": "files",
"name": "Secret Files",
"description": "Scans for known secret files",
"enabled": true
},
"results": {
"high": [
{
"name": "keyring",
"description": "GNOME Keyring database file",
"extra": null,
"data": {
"part": "extension",
"type": "regex",
"pattern": {},
"caption": "GNOME Keyring database file",
"level": "high",
"description": null
}
}
],
"medium": [
{
"name": "gem/credentials",
"description": "Rubygems credentials file",
"extra": "Might contain API key for a rubygems.org account.",
"data": {
"part": "path",
"type": "regex",
"pattern": {},
"caption": "Rubygems credentials file",
"level": "medium",
"description": "Might contain API key for a rubygems.org account."
}
}
],
"low": [
{
"name": "some_file_with_private_key_in.md",
"description": "Contains words: private, key",
"extra": null,
"data": {
"part": "filename",
"type": "regex",
"pattern": {},
"caption": "Contains words: private, key",
"level": "low",
"description": null
}
}
],
"critical": [
{
"name": "cert.pem",
"description": "Potential cryptographic private key",
"extra": null,
"data": {
"part": "extension",
"type": "match",
"pattern": "pem",
"caption": "Potential cryptographic private key",
"level": "critical",
"description": null
}
},
{
"name": "id_rsa",
"description": "Private SSH key",
"extra": null,
"data": {
"part": "filename",
"type": "regex",
"pattern": {},
"caption": "Private SSH key",
"level": "critical",
"description": null
}
},
{
"name": "regex_rsa",
"description": "Private SSH key",
"extra": null,
"data": {
"part": "filename",
"type": "regex",
"pattern": {},
"caption": "Private SSH key",
"level": "critical",
"description": null
}
}
]
}
},
{
"module": {
"key": "ncu",
"name": "Node Check Updates",
"description": "Scans a package.json for out of date packages",
"enabled": true
},
"results": {
"high": [
{
"name": "nodemailer",
"description": "Module is one or more major versions out of date",
"extra": "Installed: 2.6.4, Available: 3.1.8",
"data": {}
}
],
"medium": [
{
"name": "body-parser",
"description": "Module is one or more minor versions out of date",
"extra": "Installed: 1.15.1, Available: 1.17.1",
"data": {}
},
{
"name": "debug",
"description": "Module is one or more minor versions out of date",
"extra": "Installed: 2.2.0, Available: 2.6.3",
"data": {}
},
{
"name": "express",
"description": "Module is one or more minor versions out of date",
"extra": "Installed: 4.13.4, Available: 4.15.2",
"data": {}
},
{
"name": "morgan",
"description": "Module is one or more minor versions out of date",
"extra": "Installed: 1.7.0, Available: 1.8.1",
"data": {}
},
{
"name": "serve-favicon",
"description": "Module is one or more minor versions out of date",
"extra": "Installed: 2.3.0, Available: 2.4.1",
"data": {}
}
],
"low": [],
"critical": []
}
},
{
"module": {
"key": "nsp",
"name": "Node Security Project",
"description": "Scans a package.json for known vulnerabilities from NSP",
"enabled": true
},
"results": {
"high": [
{
"name": "negotiator",
"description": "https://nodesecurity.io/advisories/106",
"extra": "vulnerable-app@0.0.0 > express@4.13.4 > accepts@1.2.13 > negotiator@0.5.3",
"data": {
"id": 106,
"updated_at": "2016-06-16T20:37:24.000Z",
"created_at": "2016-05-04T16:34:12.000Z",
"publish_date": "2016-06-16T17:36:06.000Z",
"overview": "negotiator is an HTTP content negotiator for Node.js and is used by many modules and frameworks including Express and Koa.\n\nThe header for \"Accept-Language\", when parsed by negotiator is vulnerable to Regular Expression Denial of Service via a specially crafted string. \n\nTimeline\n\n- April 29th 2016 - Initial report to maintainers\n- April 29th 2016 - Confirm receipt from maintainers\n- May 1st 2016 - Fix confirmed\n- May 5th 2016 - 0.6.1 published with fix\n- June 16th 2016 - Advisory published (delay was to coordinate fixes in upstream frameworks, Koa and Express)",
"recommendation": "Upgrade to at least version 0.6.1\n\nExpress users should update to Express 4.14.0 or greater. If you want to see if you are using a vulnerable call, a quick grep for the `acceptsLanguages` function call in your application will tell you if you are using this functionality.",
"cvss_vector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"cvss_score": 7.5,
"module": "negotiator",
"version": "0.5.3",
"vulnerable_versions": "<= 0.6.0",
"patched_versions": ">= 0.6.1",
"title": "Regular Expression Denial of Service",
"path": [
"vulnerable-app@0.0.0",
"express@4.13.4",
"accepts@1.2.13",
"negotiator@0.5.3"
],
"advisory": "https://nodesecurity.io/advisories/106"
}
}
],
"medium": [
{
"name": "uglify-js",
"description": "https://nodesecurity.io/advisories/48",
"extra": "vulnerable-app@0.0.0 > jade@1.11.0 > transformers@2.1.0 > uglify-js@2.2.5",
"data": {
"id": 48,
"updated_at": "2016-04-21T00:15:04.000Z",
"created_at": "2015-10-24T17:58:34.232Z",
"publish_date": "2015-10-24T21:01:32.155Z",
"overview": "uglify-js is vulnerable to regular expression denial of service (ReDoS) when certain types of input is passed into .parse().\n\n\"The Regular expression Denial of Service (ReDoS) is a Denial of Service attack, that exploits the fact that most Regular Expression implementations may reach extreme situations that cause them to work very slowly (exponentially related to input size). An attacker can then cause a program using a Regular Expression to enter these extreme situations and then hang for a very long time.\" [1]\n\n### Proof of Concept\n\n```\nvar u = require('uglify-js');\nvar genstr = function (len, chr) {\n var result = \"\";\n for (i=0; i<=len; i++) {\n result = result + chr;\n }\n\n return result;\n}\n\nu.parse(\"var a = \" + genstr(process.argv[2], \"1\") + \".1ee7;\");\n```\n\n### Results\n```\n$ time node test.js 10000\nreal\t0m1.091s\nuser\t0m1.047s\nsys\t0m0.039s\n\n$ time node test.js 80000\nreal\t0m6.486s\nuser\t0m6.229s\nsys\t0m0.094s\n```",
"recommendation": "Update to version 2.6.0 or later",
"cvss_vector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"cvss_score": 5.3,
"module": "uglify-js",
"version": "2.2.5",
"vulnerable_versions": "<2.6.0",
"patched_versions": ">=2.6.0",
"title": "Regular Expression Denial of Service",
"path": [
"vulnerable-app@0.0.0",
"jade@1.11.0",
"transformers@2.1.0",
"uglify-js@2.2.5"
],
"advisory": "https://nodesecurity.io/advisories/48"
}
}
],
"low": [],
"critical": [
{
"name": "uglify-js",
"description": "https://nodesecurity.io/advisories/39",
"extra": "vulnerable-app@0.0.0 > jade@1.11.0 > transformers@2.1.0 > uglify-js@2.2.5",
"data": {
"id": 39,
"updated_at": "2016-04-28T17:22:23.000Z",
"created_at": "2015-10-17T19:41:46.382Z",
"publish_date": "2015-08-24T19:29:10.000Z",
"overview": "[Tom MacWright](https://github.com/mishoo/UglifyJS2/issues/751) discovered that UglifyJS versions 2.4.23 and earlier are affected by a vulnerability which allows a specially crafted Javascript file to have altered functionality after minification. This bug was [demonstrated](https://zyan.scripts.mit.edu/blog/backdooring-js/) by [Yan](https://twitter.com/bcrypt) to allow potentially malicious code to be hidden within secure code, activated by minification.\n\n\n### Details:\n\nIn Boolean algebra, DeMorgan's laws describe the relationships between conjunctions ( && ), disjunctions ( || ) and negations ( ! ).\nIn Javascript form, they state that:\n !(a && b) === (!a) || (!b)\n !(a || b) === (!a) && (!b)\n\nThe law does not hold true when one of the values is not a boolean however.\n\nVulnerable versions of UglifyJS do not account for this restriction, and erroneously apply the laws to a statement if it can be reduced in length by it.\n\nConsider this authentication function:\n\n```\nfunction isTokenValid(user) {\n var timeLeft =\n !!config && // config object exists\n !!user.token && // user object has a token\n !user.token.invalidated && // token is not explicitly invalidated\n !config.uninitialized && // config is initialized\n !config.ignoreTimestamps && // don't ignore timestamps\n getTimeLeft(user.token.expiry); // > 0 if expiration is in the future\n\n // The token must not be expired\n return timeLeft > 0;\n}\n\nfunction getTimeLeft(expiry) {\n return expiry - getSystemTime();\n}\n```\nWhen minified with a vulnerable version of UglifyJS, it will produce the following insecure output, where a token will never expire:\n\n( Formatted for readability )\n\n```\nfunction isTokenValid(user) {\n var timeLeft = !( // negation\n !config // config object does not exist\n || !user.token // user object does not have a token\n || user.token.invalidated // token is explicitly invalidated\n || config.uninitialized // config isn't initialized\n || config.ignoreTimestamps // ignore timestamps\n || !getTimeLeft(user.token.expiry) // > 0 if expiration is in the future\n );\n return timeLeft > 0\n}\n\nfunction getTimeLeft(expiry) {\n return expiry - getSystemTime()\n}\n```",
"recommendation": "Upgrade UglifyJS to version >= 2.4.24.",
"cvss_vector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L",
"cvss_score": 8.3,
"module": "uglify-js",
"version": "2.2.5",
"vulnerable_versions": "<= 2.4.23",
"patched_versions": ">= 2.4.24",
"title": "Incorrect Handling of Non-Boolean Comparisons During Minification",
"path": [
"vulnerable-app@0.0.0",
"jade@1.11.0",
"transformers@2.1.0",
"uglify-js@2.2.5"
],
"advisory": "https://nodesecurity.io/advisories/39"
}
}
]
}
}
]