Skip to content

Commit

Permalink
Add missing vulnerability fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Ha Nguyen authored and tandr committed Sep 28, 2021
1 parent 2d7458a commit 99edb83
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions hubapi/vulnerabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,33 @@ type VulnerabilitiesList struct {
// /api/vulnerabilities/$vulnerability
type Vulnerability struct {
bdJsonVulnerabilityV4
Source string `json:"source"`
Name string `json:"name"`
Title string `json:"title"`
Description string `json:"description"`
TechnicalDescription string `json:"technicalDescription"`
PublishedDate *time.Time `json:"publishedDate"`
UpdatedDate *time.Time `json:"updatedDate"`
DisclosureDate *time.Time `json:"disclosureDate"`
ExploitPublishDate *time.Time `json:"exploitPublishDate"`
SolutionDate *time.Time `json:"solutionDate"`
Solution string `json:"solution"`
Severity string `json:"severity"` // [LOW, MEDIUM, HIGH, CRITICAL]
CVSS2 *CVSS `json:"cvss2,omitempty"`
CVSS3 *CVSS `json:"cvss3,omitempty"`
UseCVSS3 bool `json:"useCvss3"`
OverallScore float32 `json:"overallScore"`
Classifications []string `json:"classifications"`
Meta Meta `json:"_meta"`
Source string `json:"source"`
Name string `json:"name"`
Title string `json:"title"`
Description string `json:"description"`
TechnicalDescription string `json:"technicalDescription"`
PublishedDate *time.Time `json:"publishedDate"`
UpdatedDate *time.Time `json:"updatedDate"`
DisclosureDate *time.Time `json:"disclosureDate"`
ExploitPublishDate *time.Time `json:"exploitPublishDate"`
SolutionDate *time.Time `json:"solutionDate"`
Solution string `json:"solution"`
Severity string `json:"severity"` // [LOW, MEDIUM, HIGH, CRITICAL]
CVSS2 *CVSS `json:"cvss2,omitempty"`
CVSS3 *CVSS `json:"cvss3,omitempty"`
UseCVSS3 bool `json:"useCvss3"`
OverallScore float32 `json:"overallScore"`
Classifications []string `json:"classifications"`
Workaround string `json:"workaround,omitempty"`
VendorFixDate *time.Time `json:"vendorFixDate,omitempty"`
Credit string `json:"credit,omitempty"`
DiscoveryDate *time.Time `json:"discoveryDate,omitempty"`
VendorNotificationDate *time.Time `json:"vendorNotificationDate,omitempty"`
ZeroDay bool `json:"zeroDay,omitempty"`
UnderReview bool `json:"underReview,omitempty"`
ParentAdvisory bool `json:"parentAdvisory,omitempty"`
BDSATags []string `json:"bdsaTags,omitempty"`
Meta Meta `json:"_meta"`
}

type CVSS struct {
Expand Down

0 comments on commit 99edb83

Please sign in to comment.