-
-
Notifications
You must be signed in to change notification settings - Fork 526
/
Vulnerability.java
740 lines (599 loc) · 22.2 KB
/
Vulnerability.java
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
/*
* This file is part of Dependency-Track.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
* Copyright (c) OWASP Foundation. All Rights Reserved.
*/
package org.dependencytrack.model;
import alpine.common.validation.RegexSequence;
import alpine.server.json.TrimmedStringDeserializer;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.dependencytrack.parser.common.resolver.CweResolver;
import org.dependencytrack.persistence.CollectionIntegerConverter;
import org.dependencytrack.resources.v1.serializers.CweDeserializer;
import org.dependencytrack.resources.v1.serializers.CweSerializer;
import org.dependencytrack.resources.v1.serializers.Iso8601DateSerializer;
import org.dependencytrack.resources.v1.vo.AffectedComponent;
import javax.jdo.annotations.Column;
import javax.jdo.annotations.Convert;
import javax.jdo.annotations.Extension;
import javax.jdo.annotations.FetchGroup;
import javax.jdo.annotations.FetchGroups;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Index;
import javax.jdo.annotations.Order;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.Unique;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
/**
* Model for tracking vulnerabilities.
*
* @author Steve Springett
* @since 3.0.0
*/
@PersistenceCapable
@FetchGroups({
@FetchGroup(name = "COMPONENTS", members = {
@Persistent(name = "components")
}),
@FetchGroup(name = "METRICS_UPDATE", members = {
@Persistent(name = "vulnId"),
@Persistent(name = "source"),
@Persistent(name = "severity"),
@Persistent(name = "cvssV2BaseScore"),
@Persistent(name = "cvssV3BaseScore")
}),
@FetchGroup(name = "VULNERABLE_SOFTWARE", members = {
@Persistent(name = "vulnerableSoftware")
})
})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Unique(members = {"vulnId", "source"})
public class Vulnerability implements Serializable {
private static final long serialVersionUID = -3002699553847728904L;
/**
* Defines the JDO fetch groups for this class.
*/
public enum FetchGroup {
COMPONENTS,
METRICS_UPDATE,
VULNERABLE_SOFTWARE,
}
/**
* Defines the sources of vulnerability data supported by Dependency-Track.
*/
public enum Source {
NVD, // National Vulnerability Database
NPM, // NPM Public Advisories - NEED TO KEEP FOR LEGACY PURPOSES
GITHUB, // GitHub Security Advisories
VULNDB, // VulnDB from Risk Based Security
OSSINDEX, // Sonatype OSS Index
RETIREJS, // Retire.js
INTERNAL, // Internally-managed (and manually entered) vulnerability
OSV, // Google OSV Advisories
SNYK, // Snyk
TRIVY, // Trivy
UNKNOWN; // Unknown vulnerability sources
public static boolean isKnownSource(String source) {
return Arrays.stream(values()).anyMatch(enumSource -> enumSource.name().equalsIgnoreCase(source));
}
public static Source resolve(String id) {
if (id.startsWith("CVE-")){
return NVD;
} else if (id.startsWith("GHSA-")){
return GITHUB;
} else if (id.startsWith("OSV-")){
return OSV;
} else if (id.startsWith("SNYK-")){
return SNYK;
}
return UNKNOWN;
}
}
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.NATIVE)
@JsonIgnore
private long id;
@Persistent
@Column(name = "VULNID", allowsNull = "false")
@Index(name = "VULNERABILITY_VULNID_IDX")
@NotBlank
@Size(min = 1, max = 255)
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS, message = "The vulnerability ID may only contain printable characters")
private String vulnId;
@Persistent
@Column(name = "SOURCE", allowsNull = "false")
@NotBlank
@Size(min = 1, max = 255)
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The source may only contain printable characters")
private String source;
@Persistent
@Column(name = "FRIENDLYVULNID")
@NotBlank
@Size(min = 1, max = 255)
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS, message = "The friendly vulnerability ID may only contain printable characters")
private String friendlyVulnId;
@Persistent
@Column(name = "TITLE")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The title may only contain printable characters")
private String title;
@Persistent
@Column(name = "SUBTITLE")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The subtitle may only contain printable characters")
private String subTitle;
@Persistent
@Column(name = "DESCRIPTION", jdbcType = "CLOB")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The description may only contain printable characters")
private String description;
@Persistent
@Column(name = "DETAIL", jdbcType = "CLOB")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The detail may only contain printable characters")
private String detail;
@Persistent
@Column(name = "RECOMMENDATION", jdbcType = "CLOB")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The recommendation may only contain printable characters")
private String recommendation;
@Persistent
@Column(name = "REFERENCES", jdbcType = "CLOB")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The references may only contain printable characters")
private String references;
@Persistent
@Column(name = "CREDITS", jdbcType = "CLOB")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The credits may only contain printable characters")
private String credits;
@Persistent
@Column(name = "CREATED")
@Index(name = "VULNERABILITY_CREATED_IDX")
@JsonSerialize(using = Iso8601DateSerializer.class)
private Date created;
@Persistent
@Column(name = "PUBLISHED")
@Index(name = "VULNERABILITY_PUBLISHED_IDX")
@JsonSerialize(using = Iso8601DateSerializer.class)
private Date published;
@Persistent
@Column(name = "UPDATED")
@Index(name = "VULNERABILITY_UPDATED_IDX")
@JsonSerialize(using = Iso8601DateSerializer.class)
private Date updated;
@Persistent(defaultFetchGroup = "true")
@Column(name = "CWES")
@Convert(CollectionIntegerConverter.class)
@JsonSerialize(using = CweSerializer.class)
@JsonDeserialize(using = CweDeserializer.class)
private List<Integer> cwes;
@Persistent
@Column(name = "CVSSV2BASESCORE", scale = 1)
private BigDecimal cvssV2BaseScore;
@Persistent
@Column(name = "CVSSV2IMPACTSCORE", scale = 1)
private BigDecimal cvssV2ImpactSubScore;
@Persistent
@Column(name = "CVSSV2EXPLOITSCORE", scale = 1)
private BigDecimal cvssV2ExploitabilitySubScore;
@Persistent
@Column(name = "CVSSV2VECTOR")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The CVSSv2 Vector may only contain printable characters")
private String cvssV2Vector;
@Persistent
@Column(name = "CVSSV3BASESCORE", scale = 1)
private BigDecimal cvssV3BaseScore;
@Persistent
@Column(name = "CVSSV3IMPACTSCORE", scale = 1)
private BigDecimal cvssV3ImpactSubScore;
@Persistent
@Column(name = "CVSSV3EXPLOITSCORE", scale = 1)
private BigDecimal cvssV3ExploitabilitySubScore;
@Persistent
@Column(name = "CVSSV3VECTOR")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The CVSSv3 Vector may only contain printable characters")
private String cvssV3Vector;
@Persistent
@Column(name = "OWASPRRLIKELIHOODSCORE", scale = 1)
private BigDecimal owaspRRLikelihoodScore;
@Persistent
@Column(name = "OWASPRRTECHNICALIMPACTSCORE", scale = 1)
private BigDecimal owaspRRTechnicalImpactScore;
@Persistent
@Column(name = "OWASPRRBUSINESSIMPACTSCORE", scale = 1)
private BigDecimal owaspRRBusinessImpactScore;
@Persistent
@Column(name = "OWASPRRVECTOR")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The OWASP RR Vector may only contain printable characters")
private String owaspRRVector;
@Persistent
@Column(name = "SEVERITY")
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS, message = "The severity may only contain printable characters")
private Severity severity;
@Persistent
@Column(name = "VULNERABLEVERSIONS")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The vulnerable versions may only contain printable characters")
private String vulnerableVersions;
@Persistent
@Column(name = "PATCHEDVERSIONS")
@JsonDeserialize(using = TrimmedStringDeserializer.class)
@Pattern(regexp = RegexSequence.Definition.PRINTABLE_CHARS_PLUS, message = "The patched versions may only contain printable characters")
private String patchedVersions;
@Persistent
@Order(extensions = @Extension(vendorName = "datanucleus", key = "list-ordering", value = "id ASC"))
@JsonIgnore
private List<VulnerableSoftware> vulnerableSoftware;
@Persistent
@Column(name = "EPSSSCORE", scale = 5)
private BigDecimal epssScore;
@Persistent
@Column(name = "EPSSPERCENTILE", scale = 5)
private BigDecimal epssPercentile;
@Persistent(mappedBy = "vulnerabilities")
@Order(extensions = @Extension(vendorName = "datanucleus", key = "list-ordering", value = "id ASC"))
private List<Component> components;
@Persistent(mappedBy = "vulnerabilities")
@Order(extensions = @Extension(vendorName = "datanucleus", key = "list-ordering", value = "id ASC"))
private List<ServiceComponent> serviceComponents;
@Persistent(customValueStrategy = "uuid")
@Unique(name = "VULNERABILITY_UUID_IDX")
@Column(name = "UUID", jdbcType = "VARCHAR", length = 36, allowsNull = "false")
@NotNull
private UUID uuid;
private transient int affectedProjectCount;
private transient int affectedActiveProjectCount;
private transient int affectedInactiveProjectCount;
private transient FindingAttribution findingAttribution;
private transient List<AffectedComponent> affectedComponents;
private transient List<VulnerabilityAlias> aliases;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public Severity getSeverity() {
return severity;
}
public void setSeverity(Severity severity) {
this.severity = severity;
}
public String getVulnId() {
return vulnId;
}
public void setVulnId(String vulnId) {
this.vulnId = vulnId;
}
public String getFriendlyVulnId() {
return friendlyVulnId;
}
public void setFriendlyVulnId(String friendlyVulnId) {
this.friendlyVulnId = friendlyVulnId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getRecommendation() {
return recommendation;
}
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
public void setRecommendation(String recommendation) {
this.recommendation = recommendation;
}
public String getReferences() {
return references;
}
public void setReferences(String references) {
this.references = references;
}
public String getCredits() {
return credits;
}
public void setCredits(String credits) {
this.credits = credits;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getPublished() {
return published;
}
public void setPublished(Date published) {
this.published = published;
}
public Date getUpdated() {
return updated;
}
public void setUpdated(Date updated) {
this.updated = updated;
}
public String getVulnerableVersions() {
return vulnerableVersions;
}
public void setVulnerableVersions(String vulnerableVersions) {
this.vulnerableVersions = vulnerableVersions;
}
public String getPatchedVersions() {
return patchedVersions;
}
public void setPatchedVersions(String patchedVersions) {
this.patchedVersions = patchedVersions;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public void setSource(Source source) {
this.source = source.name();
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSubTitle() {
return subTitle;
}
public void setSubTitle(String subTitle) {
this.subTitle = subTitle;
}
/**
* Setter for keeping the REST API backwards-compatible.
* Will be removed in v5.
*
* @deprecated Use {@link #getCwes()} instead
* @return The first {@link Cwe} returned by {@link #getCwes()}, or {@code null} if no {@link Cwe}s are set.
*/
@JsonGetter("cwe")
public Cwe getCwe() {
if (cwes == null || cwes.isEmpty()) {
return null;
}
return CweResolver.getInstance().lookup(cwes.get(0));
}
/**
* Setter for keeping the REST API backwards-compatible.
* Will be removed in v5.
*
* @deprecated Use {@link #setCwes(List)} instead
* @param cwe The {@link Cwe} to set
*/
@JsonSetter("cwe")
public void setCwe(final Cwe cwe) {
if (cwe != null) {
setCwes(List.of(cwe.getCweId()));
}
}
public List<Integer> getCwes() {
return cwes;
}
public void setCwes(List<Integer> cwes) {
if (cwes == null) {
this.cwes = null;
} else {
final List<Integer> nonNullCwes = cwes.stream()
.filter(Objects::nonNull)
.toList();
this.cwes = new ArrayList<>(nonNullCwes);
}
}
public void addCwe(Integer cweId) {
if (cweId == null) {
return;
}
if (this.cwes == null) {
this.cwes = new ArrayList<>();
}
this.cwes.add(cweId);
}
public void addCwe(Cwe cwe) {
if (cwe == null) {
return;
}
if (this.cwes == null) {
this.cwes = new ArrayList<>();
this.cwes.add(cwe.getCweId());
} else {
if (!this.cwes.contains(cwe.getCweId())) {
this.cwes.add(cwe.getCweId());
}
}
}
public BigDecimal getCvssV2BaseScore() {
return cvssV2BaseScore;
}
public void setCvssV2BaseScore(BigDecimal cvssV2BaseScore) {
this.cvssV2BaseScore = cvssV2BaseScore;
}
public BigDecimal getCvssV2ImpactSubScore() {
return cvssV2ImpactSubScore;
}
public void setCvssV2ImpactSubScore(BigDecimal cvssV2ImpactSubScore) {
this.cvssV2ImpactSubScore = cvssV2ImpactSubScore;
}
public BigDecimal getCvssV2ExploitabilitySubScore() {
return cvssV2ExploitabilitySubScore;
}
public void setCvssV2ExploitabilitySubScore(BigDecimal cvssV2ExploitabilitySubScore) {
this.cvssV2ExploitabilitySubScore = cvssV2ExploitabilitySubScore;
}
public String getCvssV2Vector() {
return cvssV2Vector;
}
public void setCvssV2Vector(String cvssV2Vector) {
this.cvssV2Vector = cvssV2Vector;
}
public BigDecimal getCvssV3BaseScore() {
return cvssV3BaseScore;
}
public void setCvssV3BaseScore(BigDecimal cvssV3BaseScore) {
this.cvssV3BaseScore = cvssV3BaseScore;
}
public BigDecimal getCvssV3ImpactSubScore() {
return cvssV3ImpactSubScore;
}
public void setCvssV3ImpactSubScore(BigDecimal cvssV3ImpactSubScore) {
this.cvssV3ImpactSubScore = cvssV3ImpactSubScore;
}
public BigDecimal getCvssV3ExploitabilitySubScore() {
return cvssV3ExploitabilitySubScore;
}
public void setCvssV3ExploitabilitySubScore(BigDecimal cvssV3ExploitabilitySubScore) {
this.cvssV3ExploitabilitySubScore = cvssV3ExploitabilitySubScore;
}
public String getCvssV3Vector() {
return cvssV3Vector;
}
public void setCvssV3Vector(String cvssV3Vector) {
this.cvssV3Vector = cvssV3Vector;
}
public BigDecimal getEpssScore() {
return epssScore;
}
public void setEpssScore(BigDecimal epssScore) {
this.epssScore = epssScore;
}
public BigDecimal getEpssPercentile() {
return epssPercentile;
}
public void setEpssPercentile(BigDecimal epssPercentile) {
this.epssPercentile = epssPercentile;
}
public List<VulnerableSoftware> getVulnerableSoftware() {
return vulnerableSoftware;
}
public void setVulnerableSoftware(List<VulnerableSoftware> vulnerableSoftware) {
this.vulnerableSoftware = vulnerableSoftware;
}
public List<Component> getComponents() {
return components;
}
public void setComponents(List<Component> components) {
this.components = components;
}
public List<ServiceComponent> getServiceComponents() {
return serviceComponents;
}
public void setServiceComponents(List<ServiceComponent> serviceComponents) {
this.serviceComponents = serviceComponents;
}
public UUID getUuid() {
return uuid;
}
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
public int getAffectedProjectCount() {
return affectedProjectCount;
}
public void setAffectedProjectCount(int affectedProjectCount) {
this.affectedProjectCount = affectedProjectCount;
}
public int getAffectedActiveProjectCount() {
return affectedActiveProjectCount;
}
public void setAffectedActiveProjectCount(int affectedActiveProjectCount) {
this.affectedActiveProjectCount = affectedActiveProjectCount;
}
public int getAffectedInactiveProjectCount() {
return affectedInactiveProjectCount;
}
public void setAffectedInactiveProjectCount(int affectedInactiveProjectCount) {
this.affectedInactiveProjectCount = affectedInactiveProjectCount;
}
public FindingAttribution getFindingAttribution() {
return findingAttribution;
}
public void setFindingAttribution(FindingAttribution findingAttribution) {
this.findingAttribution = findingAttribution;
}
public List<AffectedComponent> getAffectedComponents() {
return affectedComponents;
}
public void setAffectedComponents(List<AffectedComponent> affectedComponents) {
this.affectedComponents = affectedComponents;
}
public List<VulnerabilityAlias> getAliases() {
return aliases;
}
public void setAliases(List<VulnerabilityAlias> aliases) {
this.aliases = aliases;
}
public BigDecimal getOwaspRRLikelihoodScore() {
return owaspRRLikelihoodScore;
}
public void setOwaspRRLikelihoodScore(BigDecimal owaspRRLikelihoodScore) {
this.owaspRRLikelihoodScore = owaspRRLikelihoodScore;
}
public BigDecimal getOwaspRRTechnicalImpactScore() {
return owaspRRTechnicalImpactScore;
}
public void setOwaspRRTechnicalImpactScore(BigDecimal owaspRRTechnicalImpactScore) {
this.owaspRRTechnicalImpactScore = owaspRRTechnicalImpactScore;
}
public BigDecimal getOwaspRRBusinessImpactScore() {
return owaspRRBusinessImpactScore;
}
public void setOwaspRRBusinessImpactScore(BigDecimal owaspRRBusinessImpactScore) {
this.owaspRRBusinessImpactScore = owaspRRBusinessImpactScore;
}
public String getOwaspRRVector() {
return owaspRRVector;
}
public void setOwaspRRVector(String owaspRRVector) {
this.owaspRRVector = owaspRRVector;
}
}