gitlab-security_report_schemas 0.1.0.min15.0.0.max15.1.4 → 0.1.0.min15.1.0.max15.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -3
  3. data/README.md +10 -14
  4. data/Rakefile +1 -1
  5. data/gem_version +1 -1
  6. data/lib/gitlab/security_report_schemas/configuration.rb +2 -2
  7. data/lib/gitlab/security_report_schemas/version.rb +2 -0
  8. data/supported_versions +0 -11
  9. metadata +2 -81
  10. data/RUNBOOK.md +0 -28
  11. data/schemas/15.0.0/cluster-image-scanning-report-format.json +0 -946
  12. data/schemas/15.0.0/container-scanning-report-format.json +0 -880
  13. data/schemas/15.0.0/coverage-fuzzing-report-format.json +0 -836
  14. data/schemas/15.0.0/dast-report-format.json +0 -1241
  15. data/schemas/15.0.0/dependency-scanning-report-format.json +0 -944
  16. data/schemas/15.0.0/sast-report-format.json +0 -831
  17. data/schemas/15.0.0/secret-detection-report-format.json +0 -854
  18. data/schemas/15.0.1/cluster-image-scanning-report-format.json +0 -980
  19. data/schemas/15.0.1/container-scanning-report-format.json +0 -914
  20. data/schemas/15.0.1/coverage-fuzzing-report-format.json +0 -870
  21. data/schemas/15.0.1/dast-report-format.json +0 -1275
  22. data/schemas/15.0.1/dependency-scanning-report-format.json +0 -978
  23. data/schemas/15.0.1/sast-report-format.json +0 -865
  24. data/schemas/15.0.1/secret-detection-report-format.json +0 -888
  25. data/schemas/15.0.2/cluster-image-scanning-report-format.json +0 -980
  26. data/schemas/15.0.2/container-scanning-report-format.json +0 -912
  27. data/schemas/15.0.2/coverage-fuzzing-report-format.json +0 -870
  28. data/schemas/15.0.2/dast-report-format.json +0 -1275
  29. data/schemas/15.0.2/dependency-scanning-report-format.json +0 -978
  30. data/schemas/15.0.2/sast-report-format.json +0 -865
  31. data/schemas/15.0.2/secret-detection-report-format.json +0 -888
  32. data/schemas/15.0.4/cluster-image-scanning-report-format.json +0 -984
  33. data/schemas/15.0.4/container-scanning-report-format.json +0 -916
  34. data/schemas/15.0.4/coverage-fuzzing-report-format.json +0 -874
  35. data/schemas/15.0.4/dast-report-format.json +0 -1279
  36. data/schemas/15.0.4/dependency-scanning-report-format.json +0 -982
  37. data/schemas/15.0.4/sast-report-format.json +0 -869
  38. data/schemas/15.0.4/secret-detection-report-format.json +0 -893
  39. data/schemas/15.0.5/cluster-image-scanning-report-format.json +0 -1035
  40. data/schemas/15.0.5/container-scanning-report-format.json +0 -967
  41. data/schemas/15.0.5/coverage-fuzzing-report-format.json +0 -925
  42. data/schemas/15.0.5/dast-report-format.json +0 -1330
  43. data/schemas/15.0.5/dependency-scanning-report-format.json +0 -1033
  44. data/schemas/15.0.5/sast-report-format.json +0 -920
  45. data/schemas/15.0.5/secret-detection-report-format.json +0 -944
  46. data/schemas/15.0.6/cluster-image-scanning-report-format.json +0 -1035
  47. data/schemas/15.0.6/container-scanning-report-format.json +0 -967
  48. data/schemas/15.0.6/coverage-fuzzing-report-format.json +0 -925
  49. data/schemas/15.0.6/dast-report-format.json +0 -1330
  50. data/schemas/15.0.6/dependency-scanning-report-format.json +0 -1033
  51. data/schemas/15.0.6/sast-report-format.json +0 -920
  52. data/schemas/15.0.6/secret-detection-report-format.json +0 -944
  53. data/schemas/15.0.7/cluster-image-scanning-report-format.json +0 -1085
  54. data/schemas/15.0.7/container-scanning-report-format.json +0 -1017
  55. data/schemas/15.0.7/coverage-fuzzing-report-format.json +0 -975
  56. data/schemas/15.0.7/dast-report-format.json +0 -1380
  57. data/schemas/15.0.7/dependency-scanning-report-format.json +0 -1083
  58. data/schemas/15.0.7/sast-report-format.json +0 -970
  59. data/schemas/15.0.7/secret-detection-report-format.json +0 -994
  60. data/schemas/15.1.1/cluster-image-scanning-report-format.json +0 -1065
  61. data/schemas/15.1.1/container-scanning-for-registry-report-format.json +0 -0
  62. data/schemas/15.1.1/container-scanning-report-format.json +0 -998
  63. data/schemas/15.1.1/coverage-fuzzing-report-format.json +0 -975
  64. data/schemas/15.1.1/dast-report-format.json +0 -1380
  65. data/schemas/15.1.1/dependency-scanning-report-format.json +0 -986
  66. data/schemas/15.1.1/sast-report-format.json +0 -970
  67. data/schemas/15.1.1/secret-detection-report-format.json +0 -994
  68. data/schemas/15.1.2/cluster-image-scanning-report-format.json +0 -1190
  69. data/schemas/15.1.2/container-scanning-report-format.json +0 -1123
  70. data/schemas/15.1.2/coverage-fuzzing-report-format.json +0 -1100
  71. data/schemas/15.1.2/dast-report-format.json +0 -1505
  72. data/schemas/15.1.2/dependency-scanning-report-format.json +0 -1111
  73. data/schemas/15.1.2/sast-report-format.json +0 -1095
  74. data/schemas/15.1.2/secret-detection-report-format.json +0 -1119
  75. data/schemas/15.1.3/cluster-image-scanning-report-format.json +0 -1190
  76. data/schemas/15.1.3/container-scanning-report-format.json +0 -1123
  77. data/schemas/15.1.3/coverage-fuzzing-report-format.json +0 -1100
  78. data/schemas/15.1.3/dast-report-format.json +0 -1505
  79. data/schemas/15.1.3/dependency-scanning-report-format.json +0 -1111
  80. data/schemas/15.1.3/sast-report-format.json +0 -1095
  81. data/schemas/15.1.3/secret-detection-report-format.json +0 -1119
  82. data/schemas/15.1.4/cluster-image-scanning-report-format.json +0 -1190
  83. data/schemas/15.1.4/container-scanning-report-format.json +0 -1123
  84. data/schemas/15.1.4/coverage-fuzzing-report-format.json +0 -1100
  85. data/schemas/15.1.4/dast-report-format.json +0 -1505
  86. data/schemas/15.1.4/dependency-scanning-report-format.json +0 -1111
  87. data/schemas/15.1.4/sast-report-format.json +0 -1095
  88. data/schemas/15.1.4/secret-detection-report-format.json +0 -1119
@@ -1,1241 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://gitlab.com/gitlab-org/security-products/security-report-schemas/-/raw/master/dist/dast-report-format.json",
4
- "title": "Report format for GitLab DAST",
5
- "description": "This schema provides the the report format for Dynamic Application Security Testing (https://docs.gitlab.com/ee/user/application_security/dast).",
6
- "definitions": {
7
- "detail_type": {
8
- "oneOf": [
9
- {
10
- "$ref": "#/definitions/named_list"
11
- },
12
- {
13
- "$ref": "#/definitions/list"
14
- },
15
- {
16
- "$ref": "#/definitions/table"
17
- },
18
- {
19
- "$ref": "#/definitions/text"
20
- },
21
- {
22
- "$ref": "#/definitions/url"
23
- },
24
- {
25
- "$ref": "#/definitions/code"
26
- },
27
- {
28
- "$ref": "#/definitions/value"
29
- },
30
- {
31
- "$ref": "#/definitions/diff"
32
- },
33
- {
34
- "$ref": "#/definitions/markdown"
35
- },
36
- {
37
- "$ref": "#/definitions/commit"
38
- },
39
- {
40
- "$ref": "#/definitions/file_location"
41
- },
42
- {
43
- "$ref": "#/definitions/module_location"
44
- }
45
- ]
46
- },
47
- "text_value": {
48
- "type": "string"
49
- },
50
- "named_field": {
51
- "type": "object",
52
- "required": [
53
- "name"
54
- ],
55
- "properties": {
56
- "name": {
57
- "$ref": "#/definitions/text_value",
58
- "minLength": 1
59
- },
60
- "description": {
61
- "$ref": "#/definitions/text_value"
62
- }
63
- }
64
- },
65
- "named_list": {
66
- "type": "object",
67
- "description": "An object with named and typed fields",
68
- "required": [
69
- "type",
70
- "items"
71
- ],
72
- "properties": {
73
- "type": {
74
- "const": "named-list"
75
- },
76
- "items": {
77
- "type": "object",
78
- "patternProperties": {
79
- "^.*$": {
80
- "allOf": [
81
- {
82
- "$ref": "#/definitions/named_field"
83
- },
84
- {
85
- "$ref": "#/definitions/detail_type"
86
- }
87
- ]
88
- }
89
- }
90
- }
91
- }
92
- },
93
- "list": {
94
- "type": "object",
95
- "description": "A list of typed fields",
96
- "required": [
97
- "type",
98
- "items"
99
- ],
100
- "properties": {
101
- "type": {
102
- "const": "list"
103
- },
104
- "items": {
105
- "type": "array",
106
- "items": {
107
- "$ref": "#/definitions/detail_type"
108
- }
109
- }
110
- }
111
- },
112
- "table": {
113
- "type": "object",
114
- "description": "A table of typed fields",
115
- "required": [
116
- "type",
117
- "rows"
118
- ],
119
- "properties": {
120
- "type": {
121
- "const": "table"
122
- },
123
- "header": {
124
- "type": "array",
125
- "items": {
126
- "$ref": "#/definitions/detail_type"
127
- }
128
- },
129
- "rows": {
130
- "type": "array",
131
- "items": {
132
- "type": "array",
133
- "items": {
134
- "$ref": "#/definitions/detail_type"
135
- }
136
- }
137
- }
138
- }
139
- },
140
- "text": {
141
- "type": "object",
142
- "description": "Raw text",
143
- "required": [
144
- "type",
145
- "value"
146
- ],
147
- "properties": {
148
- "type": {
149
- "const": "text"
150
- },
151
- "value": {
152
- "$ref": "#/definitions/text_value"
153
- }
154
- }
155
- },
156
- "url": {
157
- "type": "object",
158
- "description": "A single URL",
159
- "required": [
160
- "type",
161
- "href"
162
- ],
163
- "properties": {
164
- "type": {
165
- "const": "url"
166
- },
167
- "text": {
168
- "$ref": "#/definitions/text_value"
169
- },
170
- "href": {
171
- "type": "string",
172
- "minLength": 1,
173
- "examples": [
174
- "http://mysite.com"
175
- ]
176
- }
177
- }
178
- },
179
- "code": {
180
- "type": "object",
181
- "description": "A codeblock",
182
- "required": [
183
- "type",
184
- "value"
185
- ],
186
- "properties": {
187
- "type": {
188
- "const": "code"
189
- },
190
- "value": {
191
- "type": "string"
192
- },
193
- "lang": {
194
- "type": "string",
195
- "description": "A programming language"
196
- }
197
- }
198
- },
199
- "value": {
200
- "type": "object",
201
- "description": "A field that can store a range of types of value",
202
- "required": [
203
- "type",
204
- "value"
205
- ],
206
- "properties": {
207
- "type": {
208
- "const": "value"
209
- },
210
- "value": {
211
- "type": [
212
- "number",
213
- "string",
214
- "boolean"
215
- ]
216
- }
217
- }
218
- },
219
- "diff": {
220
- "type": "object",
221
- "description": "A diff",
222
- "required": [
223
- "type",
224
- "before",
225
- "after"
226
- ],
227
- "properties": {
228
- "type": {
229
- "const": "diff"
230
- },
231
- "before": {
232
- "type": "string"
233
- },
234
- "after": {
235
- "type": "string"
236
- }
237
- }
238
- },
239
- "markdown": {
240
- "type": "object",
241
- "description": "GitLab flavoured markdown, see https://docs.gitlab.com/ee/user/markdown.html",
242
- "required": [
243
- "type",
244
- "value"
245
- ],
246
- "properties": {
247
- "type": {
248
- "const": "markdown"
249
- },
250
- "value": {
251
- "$ref": "#/definitions/text_value",
252
- "examples": [
253
- "Here is markdown `inline code` #1 [test](gitlab.com)\n\n![GitLab Logo](https://about.gitlab.com/images/press/logo/preview/gitlab-logo-white-preview.png)"
254
- ]
255
- }
256
- }
257
- },
258
- "commit": {
259
- "type": "object",
260
- "description": "A commit/tag/branch within the GitLab project",
261
- "required": [
262
- "type",
263
- "value"
264
- ],
265
- "properties": {
266
- "type": {
267
- "const": "commit"
268
- },
269
- "value": {
270
- "type": "string",
271
- "description": "The commit SHA",
272
- "minLength": 1
273
- }
274
- }
275
- },
276
- "file_location": {
277
- "type": "object",
278
- "description": "A location within a file in the project",
279
- "required": [
280
- "type",
281
- "file_name",
282
- "line_start"
283
- ],
284
- "properties": {
285
- "type": {
286
- "const": "file-location"
287
- },
288
- "file_name": {
289
- "type": "string",
290
- "minLength": 1
291
- },
292
- "line_start": {
293
- "type": "integer"
294
- },
295
- "line_end": {
296
- "type": "integer"
297
- }
298
- }
299
- },
300
- "module_location": {
301
- "type": "object",
302
- "description": "A location within a binary module of the form module+relative_offset",
303
- "required": [
304
- "type",
305
- "module_name",
306
- "offset"
307
- ],
308
- "properties": {
309
- "type": {
310
- "const": "module-location"
311
- },
312
- "module_name": {
313
- "type": "string",
314
- "minLength": 1,
315
- "examples": [
316
- "compiled_binary"
317
- ]
318
- },
319
- "offset": {
320
- "type": "integer",
321
- "examples": [
322
- 100
323
- ]
324
- }
325
- }
326
- }
327
- },
328
- "self": {
329
- "version": "15.0.0"
330
- },
331
- "required": [
332
- "scan",
333
- "version",
334
- "vulnerabilities"
335
- ],
336
- "additionalProperties": true,
337
- "properties": {
338
- "scan": {
339
- "type": "object",
340
- "required": [
341
- "analyzer",
342
- "end_time",
343
- "scanned_resources",
344
- "scanner",
345
- "start_time",
346
- "status",
347
- "type"
348
- ],
349
- "properties": {
350
- "end_time": {
351
- "type": "string",
352
- "description": "ISO8601 UTC value with format yyyy-mm-ddThh:mm:ss, representing when the scan finished.",
353
- "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$",
354
- "examples": [
355
- "2020-01-28T03:26:02"
356
- ]
357
- },
358
- "messages": {
359
- "type": "array",
360
- "items": {
361
- "type": "object",
362
- "description": "Communication intended for the initiator of a scan.",
363
- "required": [
364
- "level",
365
- "value"
366
- ],
367
- "properties": {
368
- "level": {
369
- "type": "string",
370
- "description": "Describes the severity of the communication. Use info to communicate normal scan behaviour; warn to communicate a potentially recoverable problem, or a partial error; fatal to communicate an issue that causes the scan to halt.",
371
- "enum": [
372
- "info",
373
- "warn",
374
- "fatal"
375
- ],
376
- "examples": [
377
- "info"
378
- ]
379
- },
380
- "value": {
381
- "type": "string",
382
- "description": "The message to communicate.",
383
- "minLength": 1,
384
- "examples": [
385
- "Permission denied, scanning aborted"
386
- ]
387
- }
388
- }
389
- }
390
- },
391
- "analyzer": {
392
- "type": "object",
393
- "description": "Object defining the analyzer used to perform the scan. Analyzers typically delegate to an underlying scanner to run the scan.",
394
- "required": [
395
- "id",
396
- "name",
397
- "version",
398
- "vendor"
399
- ],
400
- "properties": {
401
- "id": {
402
- "type": "string",
403
- "description": "Unique id that identifies the analyzer.",
404
- "minLength": 1,
405
- "examples": [
406
- "gitlab-dast"
407
- ]
408
- },
409
- "name": {
410
- "type": "string",
411
- "description": "A human readable value that identifies the analyzer, not required to be unique.",
412
- "minLength": 1,
413
- "examples": [
414
- "GitLab DAST"
415
- ]
416
- },
417
- "url": {
418
- "type": "string",
419
- "pattern": "^https?://.+",
420
- "description": "A link to more information about the analyzer.",
421
- "examples": [
422
- "https://docs.gitlab.com/ee/user/application_security/dast"
423
- ]
424
- },
425
- "vendor": {
426
- "description": "The vendor/maintainer of the analyzer.",
427
- "type": "object",
428
- "required": [
429
- "name"
430
- ],
431
- "properties": {
432
- "name": {
433
- "type": "string",
434
- "description": "The name of the vendor.",
435
- "minLength": 1,
436
- "examples": [
437
- "GitLab"
438
- ]
439
- }
440
- }
441
- },
442
- "version": {
443
- "type": "string",
444
- "description": "The version of the analyzer.",
445
- "minLength": 1,
446
- "examples": [
447
- "1.0.2"
448
- ]
449
- }
450
- }
451
- },
452
- "scanner": {
453
- "type": "object",
454
- "description": "Object defining the scanner used to perform the scan.",
455
- "required": [
456
- "id",
457
- "name",
458
- "version",
459
- "vendor"
460
- ],
461
- "properties": {
462
- "id": {
463
- "type": "string",
464
- "description": "Unique id that identifies the scanner.",
465
- "minLength": 1,
466
- "examples": [
467
- "my-sast-scanner"
468
- ]
469
- },
470
- "name": {
471
- "type": "string",
472
- "description": "A human readable value that identifies the scanner, not required to be unique.",
473
- "minLength": 1,
474
- "examples": [
475
- "My SAST Scanner"
476
- ]
477
- },
478
- "url": {
479
- "type": "string",
480
- "description": "A link to more information about the scanner.",
481
- "examples": [
482
- "https://scanner.url"
483
- ]
484
- },
485
- "version": {
486
- "type": "string",
487
- "description": "The version of the scanner.",
488
- "minLength": 1,
489
- "examples": [
490
- "1.0.2"
491
- ]
492
- },
493
- "vendor": {
494
- "description": "The vendor/maintainer of the scanner.",
495
- "type": "object",
496
- "required": [
497
- "name"
498
- ],
499
- "properties": {
500
- "name": {
501
- "type": "string",
502
- "description": "The name of the vendor.",
503
- "minLength": 1,
504
- "examples": [
505
- "GitLab"
506
- ]
507
- }
508
- }
509
- }
510
- }
511
- },
512
- "start_time": {
513
- "type": "string",
514
- "description": "ISO8601 UTC value with format yyyy-mm-ddThh:mm:ss, representing when the scan started.",
515
- "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$",
516
- "examples": [
517
- "2020-02-14T16:01:59"
518
- ]
519
- },
520
- "status": {
521
- "type": "string",
522
- "description": "Result of the scan.",
523
- "enum": [
524
- "success",
525
- "failure"
526
- ]
527
- },
528
- "type": {
529
- "type": "string",
530
- "description": "Type of the scan.",
531
- "enum": [
532
- "dast",
533
- "api_fuzzing"
534
- ]
535
- },
536
- "scanned_resources": {
537
- "type": "array",
538
- "description": "The attack surface scanned by DAST.",
539
- "items": {
540
- "type": "object",
541
- "required": [
542
- "method",
543
- "url",
544
- "type"
545
- ],
546
- "properties": {
547
- "method": {
548
- "type": "string",
549
- "minLength": 1,
550
- "description": "HTTP method of the scanned resource.",
551
- "examples": [
552
- "GET",
553
- "POST",
554
- "HEAD"
555
- ]
556
- },
557
- "url": {
558
- "type": "string",
559
- "minLength": 1,
560
- "description": "URL of the scanned resource.",
561
- "examples": [
562
- "http://my.site.com/a-page"
563
- ]
564
- },
565
- "type": {
566
- "type": "string",
567
- "minLength": 1,
568
- "description": "Type of the scanned resource, for DAST, this must be 'url'.",
569
- "examples": [
570
- "url"
571
- ]
572
- }
573
- }
574
- }
575
- }
576
- }
577
- },
578
- "schema": {
579
- "type": "string",
580
- "description": "URI pointing to the validating security report schema.",
581
- "pattern": "^https?://.+"
582
- },
583
- "version": {
584
- "type": "string",
585
- "description": "The version of the schema to which the JSON report conforms.",
586
- "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
587
- },
588
- "vulnerabilities": {
589
- "type": "array",
590
- "description": "Array of vulnerability objects.",
591
- "items": {
592
- "type": "object",
593
- "description": "Describes the vulnerability using GitLab Flavored Markdown",
594
- "required": [
595
- "id",
596
- "identifiers",
597
- "location"
598
- ],
599
- "properties": {
600
- "id": {
601
- "type": "string",
602
- "minLength": 1,
603
- "description": "Unique identifier of the vulnerability. This is recommended to be a UUID.",
604
- "examples": [
605
- "642735a5-1425-428d-8d4e-3c854885a3c9"
606
- ]
607
- },
608
- "name": {
609
- "type": "string",
610
- "maxLength": 255,
611
- "description": "The name of the vulnerability. This must not include the finding's specific information."
612
- },
613
- "description": {
614
- "type": "string",
615
- "maxLength": 1048576,
616
- "description": "A long text section describing the vulnerability more fully."
617
- },
618
- "severity": {
619
- "type": "string",
620
- "description": "How much the vulnerability impacts the software. Possible values are Info, Unknown, Low, Medium, High, or Critical. Note that some analyzers may not report all these possible values.",
621
- "enum": [
622
- "Info",
623
- "Unknown",
624
- "Low",
625
- "Medium",
626
- "High",
627
- "Critical"
628
- ]
629
- },
630
- "solution": {
631
- "type": "string",
632
- "maxLength": 7000,
633
- "description": "Explanation of how to fix the vulnerability."
634
- },
635
- "identifiers": {
636
- "type": "array",
637
- "minItems": 1,
638
- "description": "An ordered array of references that identify a vulnerability on internal or external databases. The first identifier is the Primary Identifier, which has special meaning.",
639
- "items": {
640
- "type": "object",
641
- "required": [
642
- "type",
643
- "name",
644
- "value"
645
- ],
646
- "properties": {
647
- "type": {
648
- "type": "string",
649
- "description": "for example, cve, cwe, osvdb, usn, or an analyzer-dependent type such as gemnasium).",
650
- "minLength": 1
651
- },
652
- "name": {
653
- "type": "string",
654
- "description": "Human-readable name of the identifier.",
655
- "minLength": 1
656
- },
657
- "url": {
658
- "type": "string",
659
- "description": "URL of the identifier's documentation.",
660
- "pattern": "^https?://.+"
661
- },
662
- "value": {
663
- "type": "string",
664
- "description": "Value of the identifier, for matching purpose.",
665
- "minLength": 1
666
- }
667
- }
668
- }
669
- },
670
- "links": {
671
- "type": "array",
672
- "description": "An array of references to external documentation or articles that describe the vulnerability.",
673
- "items": {
674
- "type": "object",
675
- "required": [
676
- "url"
677
- ],
678
- "properties": {
679
- "name": {
680
- "type": "string",
681
- "description": "Name of the vulnerability details link."
682
- },
683
- "url": {
684
- "type": "string",
685
- "description": "URL of the vulnerability details document.",
686
- "pattern": "^https?://.+"
687
- }
688
- }
689
- }
690
- },
691
- "details": {
692
- "$ref": "#/definitions/named_list/properties/items"
693
- },
694
- "tracking": {
695
- "description": "Describes how this vulnerability should be tracked as the project changes.",
696
- "oneOf": [
697
- {
698
- "description": "Declares that a series of items should be tracked using source-specific tracking methods.",
699
- "required": [
700
- "items"
701
- ],
702
- "properties": {
703
- "type": {
704
- "const": "source"
705
- },
706
- "items": {
707
- "type": "array",
708
- "items": {
709
- "description": "An item that should be tracked using source-specific tracking methods.",
710
- "type": "object",
711
- "required": [
712
- "signatures"
713
- ],
714
- "properties": {
715
- "file": {
716
- "type": "string",
717
- "description": "Path to the file where the vulnerability is located."
718
- },
719
- "start_line": {
720
- "type": "number",
721
- "description": "The first line of the file that includes the vulnerability."
722
- },
723
- "end_line": {
724
- "type": "number",
725
- "description": "The last line of the file that includes the vulnerability."
726
- },
727
- "signatures": {
728
- "type": "array",
729
- "description": "An array of calculated tracking signatures for this tracking item.",
730
- "minItems": 1,
731
- "items": {
732
- "description": "A calculated tracking signature value and metadata.",
733
- "required": [
734
- "algorithm",
735
- "value"
736
- ],
737
- "properties": {
738
- "algorithm": {
739
- "type": "string",
740
- "description": "The algorithm used to generate the signature."
741
- },
742
- "value": {
743
- "type": "string",
744
- "description": "The result of this signature algorithm."
745
- }
746
- }
747
- }
748
- }
749
- }
750
- }
751
- }
752
- }
753
- }
754
- ],
755
- "properties": {
756
- "type": {
757
- "type": "string",
758
- "description": "Each tracking type must declare its own type."
759
- }
760
- }
761
- },
762
- "flags": {
763
- "description": "Flags that can be attached to vulnerabilities.",
764
- "type": "array",
765
- "items": {
766
- "type": "object",
767
- "description": "Informational flags identified and assigned to a vulnerability.",
768
- "required": [
769
- "type",
770
- "origin",
771
- "description"
772
- ],
773
- "properties": {
774
- "type": {
775
- "type": "string",
776
- "minLength": 1,
777
- "description": "Result of the scan.",
778
- "enum": [
779
- "flagged-as-likely-false-positive"
780
- ]
781
- },
782
- "origin": {
783
- "minLength": 1,
784
- "description": "Tool that issued the flag.",
785
- "type": "string"
786
- },
787
- "description": {
788
- "minLength": 1,
789
- "description": "What the flag is about.",
790
- "type": "string"
791
- }
792
- }
793
- }
794
- },
795
- "evidence": {
796
- "type": "object",
797
- "properties": {
798
- "source": {
799
- "type": "object",
800
- "description": "Source of evidence",
801
- "required": [
802
- "id",
803
- "name"
804
- ],
805
- "properties": {
806
- "id": {
807
- "type": "string",
808
- "minLength": 1,
809
- "description": "Unique source identifier",
810
- "examples": [
811
- "assert:LogAnalysis",
812
- "assert:StatusCode"
813
- ]
814
- },
815
- "name": {
816
- "type": "string",
817
- "minLength": 1,
818
- "description": "Source display name",
819
- "examples": [
820
- "Log Analysis",
821
- "Status Code"
822
- ]
823
- },
824
- "url": {
825
- "type": "string",
826
- "description": "Link to additional information",
827
- "examples": [
828
- "https://docs.gitlab.com/ee/development/integrations/secure.html"
829
- ]
830
- }
831
- }
832
- },
833
- "summary": {
834
- "type": "string",
835
- "description": "Human readable string containing evidence of the vulnerability.",
836
- "examples": [
837
- "Credit card 4111111111111111 found",
838
- "Server leaked information nginx/1.17.6"
839
- ]
840
- },
841
- "request": {
842
- "type": "object",
843
- "description": "An HTTP request.",
844
- "required": [
845
- "headers",
846
- "method",
847
- "url"
848
- ],
849
- "properties": {
850
- "headers": {
851
- "type": "array",
852
- "description": "HTTP headers present on the request.",
853
- "items": {
854
- "type": "object",
855
- "required": [
856
- "name",
857
- "value"
858
- ],
859
- "properties": {
860
- "name": {
861
- "type": "string",
862
- "minLength": 1,
863
- "description": "Name of the HTTP header.",
864
- "examples": [
865
- "Accept",
866
- "Content-Length",
867
- "Content-Type"
868
- ]
869
- },
870
- "value": {
871
- "type": "string",
872
- "description": "Value of the HTTP header.",
873
- "examples": [
874
- "*/*",
875
- "560",
876
- "application/json; charset=utf-8"
877
- ]
878
- }
879
- }
880
- }
881
- },
882
- "method": {
883
- "type": "string",
884
- "minLength": 1,
885
- "description": "HTTP method used in the request.",
886
- "examples": [
887
- "GET",
888
- "POST"
889
- ]
890
- },
891
- "url": {
892
- "type": "string",
893
- "minLength": 1,
894
- "description": "URL of the request.",
895
- "examples": [
896
- "http://my.site.com/vulnerable-endpoint?show-credit-card"
897
- ]
898
- },
899
- "body": {
900
- "type": "string",
901
- "description": "Body of the request for display purposes. Body must be suitable for display (not binary), and truncated to a reasonable size.",
902
- "examples": [
903
- "user=jsmith&first=%27&last=smith"
904
- ]
905
- }
906
- }
907
- },
908
- "response": {
909
- "type": "object",
910
- "description": "An HTTP response.",
911
- "required": [
912
- "headers",
913
- "reason_phrase",
914
- "status_code"
915
- ],
916
- "properties": {
917
- "headers": {
918
- "type": "array",
919
- "description": "HTTP headers present on the request.",
920
- "items": {
921
- "type": "object",
922
- "required": [
923
- "name",
924
- "value"
925
- ],
926
- "properties": {
927
- "name": {
928
- "type": "string",
929
- "minLength": 1,
930
- "description": "Name of the HTTP header.",
931
- "examples": [
932
- "Accept",
933
- "Content-Length",
934
- "Content-Type"
935
- ]
936
- },
937
- "value": {
938
- "type": "string",
939
- "description": "Value of the HTTP header.",
940
- "examples": [
941
- "*/*",
942
- "560",
943
- "application/json; charset=utf-8"
944
- ]
945
- }
946
- }
947
- }
948
- },
949
- "reason_phrase": {
950
- "type": "string",
951
- "description": "HTTP reason phrase of the response.",
952
- "examples": [
953
- "OK",
954
- "Internal Server Error"
955
- ]
956
- },
957
- "status_code": {
958
- "type": "integer",
959
- "description": "HTTP status code of the response.",
960
- "examples": [
961
- 200,
962
- 500
963
- ]
964
- },
965
- "body": {
966
- "type": "string",
967
- "description": "Body of the response for display purposes. Body must be suitable for display (not binary), and truncated to a reasonable size.",
968
- "examples": [
969
- "{\"user_id\": 2}"
970
- ]
971
- }
972
- }
973
- },
974
- "supporting_messages": {
975
- "type": "array",
976
- "description": "Array of supporting http messages.",
977
- "items": {
978
- "type": "object",
979
- "description": "A supporting http message.",
980
- "required": [
981
- "name"
982
- ],
983
- "properties": {
984
- "name": {
985
- "type": "string",
986
- "minLength": 1,
987
- "description": "Message display name.",
988
- "examples": [
989
- "Unmodified",
990
- "Recorded"
991
- ]
992
- },
993
- "request": {
994
- "type": "object",
995
- "description": "An HTTP request.",
996
- "required": [
997
- "headers",
998
- "method",
999
- "url"
1000
- ],
1001
- "properties": {
1002
- "headers": {
1003
- "type": "array",
1004
- "description": "HTTP headers present on the request.",
1005
- "items": {
1006
- "type": "object",
1007
- "required": [
1008
- "name",
1009
- "value"
1010
- ],
1011
- "properties": {
1012
- "name": {
1013
- "type": "string",
1014
- "minLength": 1,
1015
- "description": "Name of the HTTP header.",
1016
- "examples": [
1017
- "Accept",
1018
- "Content-Length",
1019
- "Content-Type"
1020
- ]
1021
- },
1022
- "value": {
1023
- "type": "string",
1024
- "description": "Value of the HTTP header.",
1025
- "examples": [
1026
- "*/*",
1027
- "560",
1028
- "application/json; charset=utf-8"
1029
- ]
1030
- }
1031
- }
1032
- }
1033
- },
1034
- "method": {
1035
- "type": "string",
1036
- "minLength": 1,
1037
- "description": "HTTP method used in the request.",
1038
- "examples": [
1039
- "GET",
1040
- "POST"
1041
- ]
1042
- },
1043
- "url": {
1044
- "type": "string",
1045
- "minLength": 1,
1046
- "description": "URL of the request.",
1047
- "examples": [
1048
- "http://my.site.com/vulnerable-endpoint?show-credit-card"
1049
- ]
1050
- },
1051
- "body": {
1052
- "type": "string",
1053
- "description": "Body of the request for display purposes. Body must be suitable for display (not binary), and truncated to a reasonable size.",
1054
- "examples": [
1055
- "user=jsmith&first=%27&last=smith"
1056
- ]
1057
- }
1058
- }
1059
- },
1060
- "response": {
1061
- "type": "object",
1062
- "description": "An HTTP response.",
1063
- "required": [
1064
- "headers",
1065
- "reason_phrase",
1066
- "status_code"
1067
- ],
1068
- "properties": {
1069
- "headers": {
1070
- "type": "array",
1071
- "description": "HTTP headers present on the request.",
1072
- "items": {
1073
- "type": "object",
1074
- "required": [
1075
- "name",
1076
- "value"
1077
- ],
1078
- "properties": {
1079
- "name": {
1080
- "type": "string",
1081
- "minLength": 1,
1082
- "description": "Name of the HTTP header.",
1083
- "examples": [
1084
- "Accept",
1085
- "Content-Length",
1086
- "Content-Type"
1087
- ]
1088
- },
1089
- "value": {
1090
- "type": "string",
1091
- "description": "Value of the HTTP header.",
1092
- "examples": [
1093
- "*/*",
1094
- "560",
1095
- "application/json; charset=utf-8"
1096
- ]
1097
- }
1098
- }
1099
- }
1100
- },
1101
- "reason_phrase": {
1102
- "type": "string",
1103
- "description": "HTTP reason phrase of the response.",
1104
- "examples": [
1105
- "OK",
1106
- "Internal Server Error"
1107
- ]
1108
- },
1109
- "status_code": {
1110
- "type": "integer",
1111
- "description": "HTTP status code of the response.",
1112
- "examples": [
1113
- 200,
1114
- 500
1115
- ]
1116
- },
1117
- "body": {
1118
- "type": "string",
1119
- "description": "Body of the response for display purposes. Body must be suitable for display (not binary), and truncated to a reasonable size.",
1120
- "examples": [
1121
- "{\"user_id\": 2}"
1122
- ]
1123
- }
1124
- }
1125
- }
1126
- }
1127
- }
1128
- }
1129
- }
1130
- },
1131
- "location": {
1132
- "type": "object",
1133
- "description": "Identifies the vulnerability's location.",
1134
- "properties": {
1135
- "hostname": {
1136
- "type": "string",
1137
- "description": "The protocol, domain, and port of the application where the vulnerability was found."
1138
- },
1139
- "method": {
1140
- "type": "string",
1141
- "description": "The HTTP method that was used to request the URL where the vulnerability was found."
1142
- },
1143
- "param": {
1144
- "type": "string",
1145
- "description": "A value provided by a vulnerability rule related to the found vulnerability. Examples include a header value, or a parameter used in a HTTP POST."
1146
- },
1147
- "path": {
1148
- "type": "string",
1149
- "description": "The path of the URL where the vulnerability was found. Typically, this would start with a forward slash."
1150
- }
1151
- }
1152
- },
1153
- "assets": {
1154
- "type": "array",
1155
- "description": "Array of build assets associated with vulnerability.",
1156
- "items": {
1157
- "type": "object",
1158
- "description": "Describes an asset associated with vulnerability.",
1159
- "required": [
1160
- "type",
1161
- "name",
1162
- "url"
1163
- ],
1164
- "properties": {
1165
- "type": {
1166
- "type": "string",
1167
- "description": "The type of asset",
1168
- "enum": [
1169
- "http_session",
1170
- "postman"
1171
- ]
1172
- },
1173
- "name": {
1174
- "type": "string",
1175
- "minLength": 1,
1176
- "description": "Display name for asset",
1177
- "examples": [
1178
- "HTTP Messages",
1179
- "Postman Collection"
1180
- ]
1181
- },
1182
- "url": {
1183
- "type": "string",
1184
- "minLength": 1,
1185
- "description": "Link to asset in build artifacts",
1186
- "examples": [
1187
- "https://gitlab.com/gitlab-org/security-products/dast/-/jobs/626397001/artifacts/file//output/zap_session.data"
1188
- ]
1189
- }
1190
- }
1191
- }
1192
- }
1193
- }
1194
- }
1195
- },
1196
- "remediations": {
1197
- "type": "array",
1198
- "description": "An array of objects containing information on available remediations, along with patch diffs to apply.",
1199
- "items": {
1200
- "type": "object",
1201
- "required": [
1202
- "fixes",
1203
- "summary",
1204
- "diff"
1205
- ],
1206
- "properties": {
1207
- "fixes": {
1208
- "type": "array",
1209
- "description": "An array of strings that represent references to vulnerabilities fixed by this remediation.",
1210
- "items": {
1211
- "type": "object",
1212
- "required": [
1213
- "id"
1214
- ],
1215
- "properties": {
1216
- "id": {
1217
- "type": "string",
1218
- "minLength": 1,
1219
- "description": "Unique identifier of the vulnerability. This is recommended to be a UUID.",
1220
- "examples": [
1221
- "642735a5-1425-428d-8d4e-3c854885a3c9"
1222
- ]
1223
- }
1224
- }
1225
- }
1226
- },
1227
- "summary": {
1228
- "type": "string",
1229
- "minLength": 1,
1230
- "description": "An overview of how the vulnerabilities were fixed."
1231
- },
1232
- "diff": {
1233
- "type": "string",
1234
- "minLength": 1,
1235
- "description": "A base64-encoded remediation code diff, compatible with git apply."
1236
- }
1237
- }
1238
- }
1239
- }
1240
- }
1241
- }