Open andymeneely opened 1 year ago
On the vulnerabilities#show page, we'd like to have a tab that shows vulnerabilities similar to these:
Let's make some endpoints that query for similar vulnerabilities:
/vulnerabilities/CVE-2023-0000/same-cwe
/vulnerabilities/CVE-2023-0000/same-lessons
/vulnerabilities/CVE-2023-0000/related
/vulnerabilities/CVE-2023-0000/same-directory
In each of these, return the results:
limit
offset
Motivation
On the vulnerabilities#show page, we'd like to have a tab that shows vulnerabilities similar to these:
Details
Let's make some endpoints that query for similar vulnerabilities:
/vulnerabilities/CVE-2023-0000/same-cwe
returns vulnerabilities that have the same CWE tag/vulnerabilities/CVE-2023-0000/same-lessons
returns all vulnerabilities that share a lesson as this one/vulnerabilities/CVE-2023-0000/related
returns vulnerabilities explicitly related, as in #1100/vulnerabilities/CVE-2023-0000/same-directory
are vulnerabilities in the same directory (this is hitting the events table instead of tags)In each of these, return the results:
limit
andoffset