cve-search / vulnerability-lookup

Vulnerability Lookup facilitates quick correlation of vulnerabilities from various sources, independent of vulnerability IDs, and streamlines the management of Coordinated Vulnerability Disclosure (CVD).
https://cve-search.github.io/vulnerability-lookup/
GNU Affero General Public License v3.0
71 stars 9 forks source link

Format for the comments, bundle for vulnerability-lookup #41

Closed adulau closed 2 weeks ago

adulau commented 2 months ago

Vulnerability-lookup will allow logged user (with validated account) and with type "commenter" or "admin" to create comment or bundle.

The format of the JSON foreseen (draft) is the following:

field name values type required description
uuid UUID uuid X UUIDv4 of the message
vulnerability-lookup-origin UUID uuid X UUIDv4 of the vulnerability lookup instance
creation_timestamp datetime datetime X When the message was created originally
timestamp datetime datetime X When the message was last updated
type comment, bundle string X Type of the message. Comment is a title, description text per vulnerability mentioned. Bundle is a bundle of vulnerabilities with title and a description text.
title free text (limit? 65K?) string X Title of the message
description free text string - Description of the message
description-format markdown, text string - Format of the description
vulnerability array of vulnerability references array X One or more vulnerability references for this message
meta array of fields (like MISP galaxy) array - Zero or more meta-fields
cedricbonhomme commented 2 months ago

Thank you for this !

As discussed here I focus on finishing the user management system (creation, management of accounts) with a simple case of submitting a new vulnerability. Just to not have a huge PR. It won't be small PR. But it will be ready soon. I'll make first a draft PR for it. And after we can add the comments in another PR.

cedricbonhomme commented 2 months ago

And since you raise the problem of 'type' of users, I would like to make clear the different roles we need for the moment.

To summarize, an authenticated user (not an admin) can have several roles/permissions ? For example:

Or a same type of authenticated user (not admin) is able to comment and report, without distinction ?

adulau commented 2 months ago

The roles seen are the following:

cedricbonhomme commented 2 months ago

Thanks for the information. I did the self-creation of accounts (creation by the admin was already done). The new user receives an email in order to verify the account. When the app is executed in debug mode, the email is simply written in a file. I will update the roles and permissions now.

cedricbonhomme commented 4 weeks ago

For the graphical interface I have something like this in mind.

Related vulnerabilities view, almost no change:

related

The new view for the comments/bundles:

comments

It's just a draft.

adulau commented 4 weeks ago

Looks great! Maybe another tab for the bundles listing the reference if the vulnerability is referenced in a bundle.

cedricbonhomme commented 4 weeks ago

yep, indeed it's better.

cedricbonhomme commented 4 weeks ago

Should the admin of the platform review the comments before they get published ?

adulau commented 4 weeks ago

@cedricbonhomme That would be ideal (maybe to have it optional).

cedricbonhomme commented 3 weeks ago

The last version of the JSON schema is available here, @adulau. There are minor changes to what you proposed. But maybe we need some more updates.

Some suggestions/ideas/questions:

don't hesitate if you have feedback.


if you want to see the result with the markdown editor:

image

adulau commented 3 weeks ago

@cedricbonhomme Good point. The description field should be indeed mandatory. For the array of vulnerabilities, it was just if we wanted to have the same descriptions for many vulnerabilities.