Repository navigation
Fix: exclude NASL include libraries from VT information - #2452
Closed
pcbeingused333 wants to merge 1 commit into
Closed
pcbeingused333 wants to merge 1 commit into
pcbeingused333 wants to merge 1 commit into
Conversation
GET /vts?information=1 read every plugin row, including the empty VTData records stored for NASL .inc integrity checks. Those records have no severity, so gvmd rejects them and retries the feed sync. Use the same oid filter as get_oids. The include rows stay stored. Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>
Contributor
|
Thanks, closing as already done in #2454 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2451
GET /vts?information=1loads every row from the plugin table. NASL.incfiles are stored there as emptyVTDatarecords so feed integrity checks can track them. They are not vulnerability tests: the tag is empty and there is no severity. gvmd reads those records as NVT metadata, logsSEVERITY missing value, and retries the direct-OpenVASD feed sync indefinitely.GET /vtsalready hides the same rows.get_oidsselectsoid NOT LIKE '%inc'.get_vtsdid not, soinformation=1still returned the include libraries.get_vtsnow uses that same filter. The include rows stay in the plugin table for the integrity check.database::sqlite::vts::tests::get_oidssyncs the example feed, requires that no returned oid or VT filename ends in.inc, and checks thatplugin_feed_info.incis still stored. That assertion fails on the unfiltered query and passes with the filter.api_tests::get_vts_with_informationmatches the updated response, which no longer containsplugin_feed_info.inc.This change was prepared with the assistance of an AI coding tool.