Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Similar vulnerabilities to this one #1101

Open
3 tasks done
andymeneely opened this issue Apr 5, 2023 · 0 comments · May be fixed by #1154
Open
3 tasks done

API: Similar vulnerabilities to this one #1101

andymeneely opened this issue Apr 5, 2023 · 0 comments · May be fixed by #1154
Assignees
Labels
enhancement New functionality

Comments

@andymeneely
Copy link
Collaborator

andymeneely commented Apr 5, 2023

Motivation

On the vulnerabilities#show page, we'd like to have a tab that shows vulnerabilities similar to these:

image

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 Curator question: Related CVEs #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:

  • Sorted by upvotes, descending
  • Allow limit and offset
  • Return CVE, description, project, upvotes, and nickname
@andymeneely andymeneely added the enhancement New functionality label Apr 5, 2023
@diego-avila-358 diego-avila-358 self-assigned this Jun 12, 2023
@diego-avila-358 diego-avila-358 moved this from 📋 TODO to 🚧 In Progress in VHP Becomes a Thing Aug 2, 2023
@diego-avila-358 diego-avila-358 linked a pull request Aug 7, 2023 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New functionality
Projects
Status: 🚧 In Progress
Development

Successfully merging a pull request may close this issue.

2 participants