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

Get origin and date for VT severities from OSP #1359

Merged

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Nov 20, 2020

What:

When getting the VTs via OSP, the origin and date elements are now also
read and stored in the database.

Why:

This is part of our plan to add extended severity information.

How did you test it:

Tested by running gvmd --rebuild with an up to date scanner and NVTs feed and then checking the response to a get_info GMP command getting the details of an NVT that has the new fields, like 1.3.6.1.4.1.25623.1.0.117034.

Checklist:

When getting the VTs via OSP, the origin and date elements are now also
read and stored in the database.
This also covers some previous pull requests.
@timopollmeier timopollmeier marked this pull request as ready for review November 20, 2020 15:01
parsed_severity_date = strtol (entity_text (severity_date),
NULL, 10);
else
parsed_severity_date = nvti_modification_time (nvti);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use the nvti creation date.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed in aa5b0ed.

The severity is usually set fairly early in VT development so this is
often more accurate than the modification time.
@jjnicola jjnicola merged commit a20d893 into greenbone:master Nov 20, 2020
@timopollmeier timopollmeier deleted the vt-severities-origin-and-date branch October 15, 2021 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants