Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.89 KB

File metadata and controls

52 lines (36 loc) · 1.89 KB

Vulnerability

A Vulnerability represents a disclosed security vulnerability in the NVD repository.

Properties (to be completed)

  • id The unique ID for the Vulnerability.

  • desc The description for this Vulnerability.

  • severity The severity of the vulnerability.

  • disclosure The date the vulnerability was disclosed.

  • affectedProjects The IDs of projects affected by this vulnerability.

Making API Calls

These URLs allow you to access the search functionality of SE-GPS from any non-browser user agent. Note that the "wt" parameter present in every URL determines the format of the results. Setting "wt" equal to "json" will provide a JSON response, while setting "wt" equal to "xml" will provide the same response formatted as an XML document. Another common parameter is "rows," which limits the number of results returned by the server.

NOTE: Most of the URLs in this document have been URL-decoded for the sake of readability. They should work when pasted into a web browser, but you may have to URL-encode them to function when called programmatically

To get a list of Vulnerabilities:

https://aseg.cs.concordia.ca/segps-rest/vulnerability/list?rows={rows}&wt={wt}

To search vulnerabilities based on criteria:

Search by severity score (searching by score range will be included soon)
https://aseg.cs.concordia.ca/segps-rest/search/vulnerability/select?score={score}&rows={rows}&wt={wt}
Search by disclosure date range
https://aseg.cs.concordia.ca/segps-rest/search/vulnerability/select?ldate={ldate}&udate={udate}&rows={rows}&wt={wt}

NOTE: "ldate" represents the lower date range, while "udate" represents the upper date range. In all cases, at least one range value must be provided.

To get a single Vulnerability:

https://aseg.cs.concordia.ca/segps-rest/vulnerability/{id}&wt={wt}